''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' This script will change the name of "My Documents" on the desktop ' to the username of the person logged in. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Set WshNetwork = WScript.CreateObject("WScript.Network") Set WshShell = WScript.CreateObject("WScript.Shell") ' Error checking & get user on error resume next UserName=WshNetwork.UserName if err.number <> 0 then UserName="NOBODY" end if err.clear on error goto 0 ' This next line rewrites the (Default) value ' This will need to be changed depending on what version of windows you have (currently XP) WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\", UserName & "'s Documents" 'Refreshed desktop WshShell.AppActivate "Program Manager" WshShell.Sendkeys "{F5}"