Modifying Security on Active Directory Objects using a script

I was working with a customer this week and we found some user objects in Active Directory had incorrect security settings.  I put together a list of commands for the customer to use.  I thought a few of the FOR command examples below were useful so here you go…  These command can also be used in a…

1

Windows Vista Resource Kit Has Been Released

The Windows Vista Resource Kit has been released:  http://www.microsoft.com/MSPress/books/9536.aspx?wt_svl=10125VHa1&mg_id=10125VHb1  If you are respponsible for deploying and supporting Vista then you should have a copy of the resource kit on your desk.  Mine is on the way…  

1

Send Email from a Script

Scripts are great for automating tasks that you need to perform on a regular basis.  With a few lines of code you add the ability to send an email from within your scripts to notify you of a particular event. From a programming standpoint, there are two ways to send a script programmatically.  The first involves using…

0

Controlling Virtual Machines with a Script

I discovered how easy it is to control virtual machines with a script this weekend.  I have one server that I use to run virtual machines that I keep running all the time.  When I patch this server, I need to shut down all VMs before it is restarted and then restart the VMs after the…

0

Scripting Resources

If you are interested in writing scripts to make your job easier the links below area good place to start. VBScript, JScript, WMI, WSH, ADSI  Scripting (MSDN Site VBScript, Jscript, WMI, WSH, ADSI)http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/scriptinga.asp Script Center (Technet)http://www.microsoft.com/technet/scriptcenter/default.mspx   PowerShell Windows PowerShellhttp://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx Scripting with Windows PowerShellhttp://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx How to Download Windows PowerShell 1.0http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx Windows PowerShell 1.0 Documentation Packhttp://www.microsoft.com/downloads/details.aspx?FamilyId=B4720B00-9A66-430F-BD56-EC48BFCA154F&displaylang=en…

0

Santa brought me an XBOX 360 this year…

My wife figured out what to get the geek who has everything this year.  An XBOX 360!  I can remember the first computer game I ever played, Telengard for the Commodore64.  It was primitive by todays standards.  When you “moved” your player, the player stayed in the middle of the screen and the map was…

0

Script Code Link Added

I have a link in the left navigation bar to a page where I will begin posting some scripts I have written.  I have written several useful scripts over the years and I’ll post them here as time permits.  The scripts will mostly be VBscript using WMI and ADSI scripting interfaces to retrieve information from…

0

Using the FOR Command

There are a number of useful command-line utilities that can be used to manage remote computers.  The FOR command enables you to run a command ageist several computers of files.  For example the command line below can be used to ping (DO ping) the first item on each line (tokens=1) in the file input.txt.   FOR /F “tokens=1” %i…

1

FileCopy

OverviewThis FileCopy.vbs script performs a very simple task – it copies a file to the same directory on a number of computers.  A list of computers is provided in a test file named by default INPUT.TXT and then performs the file copy to each computer listed.  The script also creates an output log file named…

3

Useful Scripts

I like to write scripts.  I really enjoy automating some boring task and then walking away from it.  Who knows, maybe deep down I secretly desire to be a programmer…  Over the years I have written a number of scripts for customers from simple batch files to more complicated scripts to manage Active Directory.  For example a few…

1