Hi,
1) Your question about saving the registry
It would be a bad way to use the regread method from thw WSHShell as you would have to go through every node of the registry. Try this approach instead
http://searchwindowsserver.techtarget.com/tip/0,289483,sid68_gci1039573,00.html2) "Desktop" Syntax
I used your variable strUserID as you put the person name earlier in your script. Make you if you run mine that you put a value into it. Like this:
Const OverWriteFiles = True
Dim strUserID
Set WSHNetwork = WScript.CreateObject("WScr
ipt.Networ
k")
strUserID = WSHNetwork.UserName
Set objFSO = WScript.CreateObject("Scri
pting.File
SystemObje
ct")
objFSO.CopyFolder "C:\Documents and Settings\" & strUserID & "\Desktop", "D:\Backup\" & strUserID, OverWriteFiles
Bye