VBS printer script
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Hello,
Will the following script run via "Startup" script rather then a "logon"
script?
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\server\printer1"
WshNetwork.SetDefaultPrinter "\\server\printer1"
I have had succes with the logn script, but have not had succes with the
startup script. Any help will be greatly appreciated.
Thanks,
Vince
.
Relevant Pages
- Re: VBS printer script
... > Springside wrote: ... >> I have had succes with the logn script, but have not had succes with ... >> the startup script. ... (microsoft.public.windows.server.scripting) - Re: VBS printer script
... > Will the following script run via "Startup" script rather then a ... > I have had succes with the logn script, but have not had succes with ... > the startup script. ... (microsoft.public.windows.server.scripting) - Re: Xcopy not working in startup script
... This is a basic batch file script that I am ... deploying through group policy in the startup script to copy ... it works fine on it's own, but when deployed through group policy it ... the permissions of the computer object elsewhere in the domain. ... (microsoft.public.windows.server.general) - Re: Ooooopppps. Rights not right...
... Use a log in script to call a compiled file stored on a share. ... > because the classid is for per machine instead of per user. ... > you have create two user classes, one is called student; ... > Put this bat file to the computer startup script in the local group policy. ... (microsoft.public.windows.server.general) - Re: Power Management GPO?
... I suspect that the power management subsystem might not be started when the startup scripts runs or the SYSTEM context can't modify it, but I have some ideas about this and will do some testing later on today to work it out. ... I created a GPO and put the batch file in first as a startup script and when that didn't work I tried it as a logon script. ... A normal user can't change the power settings so a logon script like this won't work either. ... I can't remember if all power setting are per machine, but if some are per machine and some are per user then you could split it up into 2 scripts, one startup script and one logon script. ... (microsoft.public.windows.group_policy) |
|