S
Steve Cummings
Hi -
I work for a non profit organization and we are trying to find a way to run
a Batch File that Installs a Local TCP/IP Printer with a specific IP address
with NO user interaction.
I have code that works for a BATCH file but it has to be run as a local
administrator. I am trying to have this batch file run as a login script on
our network to a bunch of laptop users on our domain.
Here is what I have -
-----------
cd c:\windows\system32
cscript prnport.vbs -a -r IP_192.168.1.115 -h 192.168.1.115 -o raw -n 9100
cscript prnmngr.vbs -a -p "Xerox Printer" -m "Xerox 4510" -r
"IP_192.168.1.115"
pause
------------
Ive tried this using a Run-As with the same code from above - but that
requires entering in a Password and we need this done automattically.
Also - the 2nd command does not work using Run as but the First command
does - i find that strange as well.
------------
cd c:\windows\system32
runas /profile /useromain\Account "cscript prnport.vbs -a -r
IP_192.168.1.115 -h 192.168.1.115 -o raw -n 9100"
runas /profile /useromain\Account "cscript prnmngr.vbs -a -p "Xerox
Printer" -m "Xerox 4510" -r "IP_192.168.1.115""
pause
-------------
If you can assist with another way of doing this or a way of doing this
using the same code would be really helpful.
I've done alot of research online and there seems to be no real way of doing
this.
I have tried many 3rd party applications that is suppposed to make this work
easily but I have not had any luck with getting it to work.
Let me know.
Thanks,
Steve
I work for a non profit organization and we are trying to find a way to run
a Batch File that Installs a Local TCP/IP Printer with a specific IP address
with NO user interaction.
I have code that works for a BATCH file but it has to be run as a local
administrator. I am trying to have this batch file run as a login script on
our network to a bunch of laptop users on our domain.
Here is what I have -
-----------
cd c:\windows\system32
cscript prnport.vbs -a -r IP_192.168.1.115 -h 192.168.1.115 -o raw -n 9100
cscript prnmngr.vbs -a -p "Xerox Printer" -m "Xerox 4510" -r
"IP_192.168.1.115"
pause
------------
Ive tried this using a Run-As with the same code from above - but that
requires entering in a Password and we need this done automattically.
Also - the 2nd command does not work using Run as but the First command
does - i find that strange as well.
------------
cd c:\windows\system32
runas /profile /useromain\Account "cscript prnport.vbs -a -r
IP_192.168.1.115 -h 192.168.1.115 -o raw -n 9100"
runas /profile /useromain\Account "cscript prnmngr.vbs -a -p "Xerox
Printer" -m "Xerox 4510" -r "IP_192.168.1.115""
pause
-------------
If you can assist with another way of doing this or a way of doing this
using the same code would be really helpful.
I've done alot of research online and there seems to be no real way of doing
this.
I have tried many 3rd party applications that is suppposed to make this work
easily but I have not had any luck with getting it to work.
Let me know.
Thanks,
Steve