Jan 202008
 


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 —

Incoming search terms:

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>