The problem is I need to map a drive (shortcut) to a generic users desktop but only to specific machines in the domain. All the machines are the same build as well as hardware. All machines are XP Pro sp2 and fully patched. I had no problem with mapping by user so the GPs are working etc and I was told by user: oBdA that you can only map to user specific accounts and not to machine specific accounts. I do believe him but maybe someone has a work around?
Heres the script which works fine by user&
Set objNet = WScript.CreateObject("WScr
Set WshShell = CreateObject("WScript.Shel
DesktopPath = WshShell.SpecialFolders("D
'map network drive
objNet.MapNetworkDrive "T:", "\\Bst-main\Student\_Recep
tion\Yr R 2007 - 2008", "True"
'create a icon on the desktop
Set link = WshShell.CreateShortcut(De
sktopPath & "\Yr R 2007 - 2008.lnk")
link.Description = "User Share Drive"
link.HotKey = "CTRL+ALT+SHIFT+T"
link.IconLocation = "explorer.exe,0"
link.TargetPath = "T:"
link.WindowStyle = 3
So many thanks for your help here guys&.(Gals)