DougInCanada
Technical User
Hello,
I'm working on a logon script to run in a GPO for users to redirect folders (ie: desktop, My Documents and Favorites) to a secure folder on a file server.
The desktop and My documents get redirected great from the GPO, but I've looked through the forum and found several references to running a reg file to redirect the Favorites.
I've incorporated this approach in my logon script as follows ("X" has already been mapped as a drive for the user earlier in the script):
Dim tempiepath
tempiepath = "HKCU\Software\Microsoft\Windows\"
' This code will redirect the user's IE Favorites
'=====================================
WSHShell.RegWrite tempiepath & "CurrentVersion\Explorer\Shell Folders\Favorites","X:\Favorites","REG_SZ"
Set tempiepath = nothing
When I run this script, "X" is mapped, but the reg entry didn't take effect.
Is there another way to redirect thye Favorites folder or am I missing something with my reg entry?
Any help is appreciated.
I'm working on a logon script to run in a GPO for users to redirect folders (ie: desktop, My Documents and Favorites) to a secure folder on a file server.
The desktop and My documents get redirected great from the GPO, but I've looked through the forum and found several references to running a reg file to redirect the Favorites.
I've incorporated this approach in my logon script as follows ("X" has already been mapped as a drive for the user earlier in the script):
Dim tempiepath
tempiepath = "HKCU\Software\Microsoft\Windows\"
' This code will redirect the user's IE Favorites
'=====================================
WSHShell.RegWrite tempiepath & "CurrentVersion\Explorer\Shell Folders\Favorites","X:\Favorites","REG_SZ"
Set tempiepath = nothing
When I run this script, "X" is mapped, but the reg entry didn't take effect.
Is there another way to redirect thye Favorites folder or am I missing something with my reg entry?
Any help is appreciated.