
May 12th, 2006, 04:19 PM
|
|
Registered User
|
|
Join Date: May 2006
Posts: 1
Time spent in forums: 14 m 40 sec
Reputation Power: 0
|
|
|
Redirecting Favorites
Hello all,
I would like to move my users Favorites from their PC’s to their prospective server. Then point the Registry to the server. I have been working on this on and off but yet to get it to work. Here's what I have so far but just need to get it fully scripted and working. I am now at a loss.
I would like to see it in a .bat, .vbs or .exe; this should also run silent to the users.
I have also questioned running it as an if then statement.
If P:\Favorites=yes then end.
C:\Documents and Settings>xcopy %username%\Favorites P:\Favorites2 /s /e /q /v /y /i
Dim WSHShell
Set WSHShell = CreateObject ("WScript.Shell")
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\User Shell Folders\Favorites", \\%servername%\users$\%username%Favorites,"REG_EXPAND_SZ"
I know %servername% doesn’t work I just put that in for the post. It will also change with each Dept or location.
I appreciate any insight to this. I have debated Banging my head off the desk. LOL but that wont work….. I think.
|