How to redirect favorites through logon script
If you're new here, you may want to subscribe to Windows Reference RSS feed Thanks for visiting!
This tutorial is step by step instructions on how to redirect a user’s “Favorites” folder to a location on the network by using logon script.
Open notepad and copy the following code Click File>Save As and change the filename to SetFavorites.vbs
You may change the “t:\Favorites” to what you like.Now you have to configure this Logon Script in Group Policy to do the job.
—code start—
Option Explicit
Dim RegLocate, objShell
Set objShell = WScript.CreateObject(”WScript.Shell”)
RegLocate = “HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Favorites”
objShell.RegWrite RegLocate,”t:\Favorites”,”REG_SZ”
RegLocate = “HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Favorites”
objShell.RegWrite RegLocate,”t:\Favorites”,”REG_SZ”
—code end —
Random Posts
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.





No comments yet.
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>