One other thing that I can't seem to find good direction on is a user selected environment varible. In the first part of the script a "PP_PRINT" user variable is set for each user. In my environment this is determined by your location, I have a handfull of users who could be working in a...
Thanks a bunch guys! That seems to have done the trick. In case anybody happens accross this and finds it usefull, its important that the printer name and share name are the same. Current working code:
Set oShell = WScript.createObject("WScript.Shell")
Set oEnv = oShell.Environment("USER")...
I can follow the logic of your code, and I added your typo change but the script errors on Line 6, Char 1:
Error Object required 'objNetwork'
Code 800A01A8
Could it be the version of Server? I'm running Server 2003 R2.
Set oShell = WScript.createObject("WScript.Shell")
Set oEnv =...
That fixed the drive mapping issue, but I guess I should have realized that the printer add would create the same problem since it exists on the server as well. I have commented the printer code out:
Set oShell = WScript.createObject("WScript.Shell")
Set oEnv = oShell.Environment("USER")...
I have a script that performs 3 things for a user on their workstation:
1) maps a printer
2) sets an environment variable
3) maps a drive letter "P:"
This "P:" drive is mapped from a TS server that the user also has the ability to log into when they are away remotely. On the TS server there is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.