I have just built a new File/Printer server. Currently we do not have any logon scripts in place. I would like to create a new logon script that does the following. I have found bits n' pieces that do different portions of this across the net but none that really cover all the bases. I know very little about VBScript but i'm not a complete moron when it comes to programming (more of a php guy). So even a shell of the script necessary should point me in the right direction.
1. Check if old shared printer(s) exists.
a. If they do.. remove them. If not continue...
2. Check if new shared printer(s) exist
a. If they do.. skip.. If not, add them.
3. Check if G: and I: currently map to \\OLDSERVER\Shared and \\OLDSERVER\Users
a. If they do, remap them to \\NEWSERVER\Shared and \\NEWSERVER\Users
b. If the drive letter G: or I: do not exist at all map them to \\NEWSERVER\Shared and \\NEWSERVER\Users.
and lastly.. but not necessary.. more of acuriousity thing.. is there anyway to uninstall software via a logon script vs a gpo? I'd like to uninstall the current version of AntiVirus (McAfee) on each users logon as later on in the week i'll be installing (by hand most likely.. or maybe silent install via logon script) the new version. Like I said.. this question isn't really necessary as its not exactly on topic, but more out of curriousity.
Thanks!
Start Free Trial