|
So here is my first update after testing the ideas put forth to me.
The first thing I tried was to add the code to remove all networked printers. $=delprinterconnection("") I change my test code to:
CASE $Location = "tech-dus" $=delprinterconnection("") ADDPRINTERCONNECTION ("\\turk-reader\SHS_Kitchen") ADDPRINTERCONNECTION ("\\turk-reader\SHS_P04") SETDEFAULTPRINTER ("\\turk-reader\SHS_P04")
I replaced the first printer that went to our lab printer to a printer at the SHS location. I only wanted to effect the one computer I am using for testing so I hope this is a correct way to use this code. But unfortunately, it did not delete the previously added lab printer or set the default printer to SHS_P04. Any ideas on that?
As I was writing this, I had a thought. I am RDP'ing into Server 2008 R2. Could that have something to do with why this portion of the code is not working?
|