Tag Archives: vbs

When do user passwords expire?

By | May 3, 2007

I had a user today ask, "Are we still doing the password security program?  It’s been over 90 days since we first implemented it and I haven’t been prompted to change my password.  Thanks!"
The next thing I said was, F$@%! Then I use most of a script I found at http://msdn2.microsoft.com/en-us/library/ms974598.aspx
This helped me to determin when user passwords expire in an OU.

BTW the user above had changed their password 43 days ago, they had just forgotten!

Map/UnMap Network Drive Based on Group Membership

By | January 17, 2007

We are migrating a file server over the weekend and need to remove all mapped drives from users computers.
Then we need to map the correct drives. You're thinking that this isn't a problem, just change the login script.
Wrong! What if some of the drives had been mapped manually?!?
So, I created this script to removed all mapped drives if they were not in a grouplist.csv file.
This script will retreive group membership from Active Directory and map/remove your drives and printers accordingly based on the information in the grouplist.csv file.
Note: The files should be located in the same folder. (e.g., \\fileserver\netlogon)
Also, This script incorperates the "LazyNetworkAdmin's" Map Network Drive and Printers Based on Group Membership script!


Note: The base of this script was created by James Currie. This was unbeknownst to me until today.

Clients Not Checking Into Symantec System Center

By | January 12, 2007

I installed a new AV server. It is runinng Symantec AV 10.1 and Symantec System Center
The clients (running Symantec 10.1) did not check into the new server after pushing out a new install of AV.
The problem was with the reg keys and the certificate not being updated.
This script will copy the new certificate to the target computer, update the regkeys
and then it will restart the symantec service. Then in a few seconds the clients will check into
the Symantec System Center on their own!


This script has been updated!

I placed the second script below the first one, just incase anyone wants to use the old script.
To operate the new script, create a txt file with the names of the machines you need to have log into the SSC.

Then just drop the .txt file onto the script… The rest is automatic!


Remove Printers Using Print Server Name

By | January 10, 2007

Two things keep me employed 1. Stupid People and 2. Printers!
Just after Christmas we had a server go down (This was our print server).
It cause all kinds of trouble reinstalling and such… but the biggest pain
were the printers (Their were so many of them). With all of the Terminal servers
using printer scripts and having users who cannot change their settings cause printers
to not be removed when the printserver is gone. To fix this issue I created this script
it will remove all printers from a specified "print server" (e.g., \\PSVR\colorlaser01).
This script can be run as a login script or added to an existing printer script.

Backup Favorites and the Outlook NK2 file

By | December 20, 2006

On our network we are redirecting some things but not all folders.
Users always start yelling about I am missing my favorites or when
I type in Outlook I do not get the "names" to popup.
So the script below will copy these important files to a backup location.
I made everything modular because this script does some good things.
1. It will detect who the currently logged on user is.
2. It performs a file copy using the %userprofile% variable.
3. Lastly, it checks to see if a folder exists. (I know this one is not that exciting)

Dell Wireless Ad-Hoc Fix

By | December 6, 2006

Recently, a friend of mine (who am I kidding I don't have friends)
who works for a large tier 1 automotive Axel supplier told me of an issue with over 2000 laptops.
He stated that their "NT" and "Desktop" groups could not fix an issue with their Broadcom wireless drivers.The problem was that the Broadcom utility used to change the built-in wireless devices from Ad-Hoc mode to Infrastructure mode was set to Ad-Hoc by default. Now users being what they are would not be able to do this for themselves, so the wireless division asked the aformentioned groups to try to solve the issue, but was told "sorry". They the wireless guys would have to fix all of the laptops by hand (using remote access). Well,first off this is crazy!
I told my buddy I could write a script to fix the issue.

The script below is for the following WLAN NICs and laptops:

Dell TrueMobile 1150 PCMCIA   Dell C800, C810
Dell TrueMobile 1150 Mini-PCI  Dell C840
Dell TrueMobile 14xx Mini-PCI  Dell D500, D505, D510, D800, & D810

The 14xx Series can be 1400, 1450, 1470, or 1490.

Advanced File Delete Script

By | October 27, 2006

I saw a Power Shell script recently and it showed how to delete all files recursively for a HD.
Well, I really don't know Power Script and I don't want to change from VBScript.
So, I figured that I should make a script in VBScript that could do the same thing.
This script could be useful to remove .mp3 files or the like from your file server.

So, go ahead and run this on you Domain Controller!!! Just Kidding!!!