|
|
|||||||
Hello, I need to modify my script to set a default printer for ANYONE who logs into a specific PC -- what is the syntax for that? Most of our script sets printers based upon the group that a user belongs to but this is the first case where we need it set for a specific PC. Thanks, Dan |
||||||||
|
|
|||||||
something like Code: if @wksta $rc=setdefaultprinter() endif |
||||||||
|
|
|||||||
What does the $rc mean? |
||||||||
|
|
|||||||
See if this FAQ answers that for you: Why does the console display zeros and ones (amongst others)? http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81941#Post81941 Here are all of the FAQs. http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=5&page=1 |
||||||||
|
|
|||||||
Oops! In my first response I forgot one important element, the second part of the if statement where it checks for the computername. Code: if @wksta = "TheComputerName" $rc=setdefaultprinter() endif |
||||||||
|
|
|||||||
Thanks, I am going to test it now... |