Powershell script to get all computers last logon time

I wrote a script to get the last time each computer logged into the domain. ##============================================================================== ##============================================================================== ## SCRIPT………: Get-AllComputerLastLogon ## AUTHOR………: Clint McGuire ## EMAIL……….: ## VERSION……..: 1 ## DATE………..: 2011_05_26 ## COPYRIGHT……: 2011, Clint McGuire ## LICENSE……..: ## REQUIREMENTS…: Powershell v2.0, Quest AD Cmdlets ## DESCRIPTION….: Gets all computer accounts’ last logon times

Continue reading Powershell script to get all computers last logon time

Powershell script to get all AD users’ last logon time

I wanted to see when all users in a client’s domain last logged in.

Here is the script I wrote. ##============================================================================== ##============================================================================== ## SCRIPT………: Get-AllUserLastLogon ## AUTHOR………: Clint McGuire ## EMAIL……….: ## VERSION……..: 1 ## DATE………..: 2011_05_26 ## COPYRIGHT……: 2011, Clint McGuire ## LICENSE……..: ## REQUIREMENTS…: Powershell v2.0, Quest AD Cmdlets ## DESCRIPTION….: Gets all

Continue reading Powershell script to get all AD users’ last logon time

ESXi 4.1 U1 Host Configuration Script

Update: 2011-08-14 – I’ve corrected some issues that crop up when this script is run on the second and subsequent hosts.

It was time to upgrade to ESXi 4.1 U1 and I didn’t want to run through configuring all the VM Hosts manually.

This script will need to be customized for your environment.

It prompts

Continue reading ESXi 4.1 U1 Host Configuration Script

Restart BES 4.1.X services with PowerShell

One of my clients was having issues w/ BES after the Exchange server was rebooted. Aaron at work wrote a couple batch files to stop and start the services in the correct order. I’ve re-written the scripts in PowerShell below. I was hoping to use “Get-Service BES*” and piping it to Stop-Service and Start-Service, but

Continue reading Restart BES 4.1.X services with PowerShell

Add DHCP Reservations with a Script

It’s time to upgrade DHCP at one of my clients.   They have a lot of address reservations and we are setting up split-zone DHCP so I didn’t want to have to enter all the reservations by hand, twice.

There has to be a way to script this… PowerShell doesn’t manage DHCP, but I can

Continue reading Add DHCP Reservations with a Script

Profile Restore Script

Here is the script that will take the files backed up, via my Profile Copy Script, and restore them to where they belong.

This was written with AutoIt V3, most of the code belongs to ezzetabi

The script will work on XP, Vista or Win7.

Compile and execute with one command line parameter: the source (should

Continue reading Profile Restore Script

Profile Copy Script

I often find myself copying users’ profiles, so I thought I would make a script that would simplify it.

I wrote this with AutoIt V3, most of the code belongs to ezzetabi

The script will work on XP, Vista or Win7.

Compile and execute with one command line parameter: the destination.

Will copy files

Continue reading Profile Copy Script

AutoIT Scripting

AutoIT is for automating tasks and can create small applications.

I’ve come across two interesting programs written in AutoIT v3.

AutoClean and PC Decrapifier (up to Version 1.9.1)

Both tools are very interesting and worth downloading.