Advertisement

04.26.2008 at 01:28AM PDT, ID: 23355596
[x]
Attachment Details

AD, Logon Script, Windows XP, Windows 2003, Login Script, VBScript

Asked by ZooyorQ in VB Script, Windows 2003 Server

Tags: VBScript, Active Directory Logon Script

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
 
Loading Advertisement...
 
[+][-]04.26.2008 at 09:56AM PDT, ID: 21446088

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Script, Windows 2003 Server
Tags: VBScript, Active Directory Logon Script
Sign Up Now!
Solution Provided By: Shift-3
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.26.2008 at 10:09AM PDT, ID: 21446119

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628