When i run the script by user its fine but not by computer?

When i run the script by user its fine but not by computer?
Can someone see any errrrs?
Many thanks

Set objNet = WScript.CreateObject("WScript.Network")
Set WshShell = CreateObject("WScript.Shell")
DesktopPath = WshShell.SpecialFolders("Desktop")

'map network drive
objNet.MapNetworkDrive "T:", "\\Bst-main\Student\_Reception\Yr R 2007 - 2008", "True"

'create a icon on the desktop
Set link = WshShell.CreateShortcut(DesktopPath & "\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
Who is Participating?
oBdAConnect With a Mentor Commented:
Simply because drive mappings are *user* specific, not machine specific.
You'll have to run this script indeed per user, not per machine.
whats the error?
AndyinJapanAuthor Commented:
All I have to do now is find a work around..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.