| |
allowishes
Posts: 9
Score: 0
Joined: 7/26/2005
Status: offline
|
Hello- I need to write a script that when ran will: 1) Remove certain printers from user's printer folder 2) Install other printers 3) Check to see if they have a default printer set up and if they don't... 4) Make one of the printers that was installed the default. I have step 1, 2 and 4. My problem is trying to get the scrpit to find the default printer if there is one. I know that that info is stored in the HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device key. I just can't seem to extract it so I can put it in an if...then...else statement. Some background... We have a bout 40 to 50 users moving to another floor. They will need to be set up with new networked printers. So we need to remove their "old" printers and install "new" ones. However some of the users have local printers as well set as their default. We don't want to mess this up. So all users will get network printers but only some of them will have one of those network printers set to their default printer.
_____________________________
Thanks! Justin
|
|