Search code examples
vbscriptscriptingwindows-server-2003group-policy

Is this right Script?


Set objNetwork = CreateObject("WScript.Network") 
objNetwork.AddWindowsPrinterConnection "\\my_server_name\my_printer_name"

hello all,

i used the script written above in a windows server 2003 (group policy management) running in a virtual machine then i used the command "gpupdate /force", but when i go to the client machine nothing happend


Solution

  • I found it, what was wrong is I should put the script in Default logon folder in the server