PowerShell Script to Retrieve Basic User Stats

This is a quick and dirty PowerShell script to retrieve the user statistics that I need most frequently. It works great for my help desk too. # Filename : get_status.ps1 # Purpose : Queries basic account status info. # # Requires the following applications to be installed: # Quest ActiveRoles AD Management Snapin # # Modified : 2013.03.05 Jay Carper; Created # Param([string]$Username) # If […]

Read Me Leave comment

Moving Computer Accounts Using PowerShell

In this article, I posted a script that I use for generating a monthly report of inactive computer accounts in Active Directory. Once I have reviewed that report and decided which computer accounts I want to get rid of, I like to move them to a “holding cell” OU for a week or so before finally deleting them. I copy the list of inactive computers […]

Read Me Leave comment

Get a Report of All (Inactive) Computer Accounts

As an Active Directory domain matures, it tends to accumulate junk. (It’s a lot like me in that way.) This script will scan your domain for computer accounts that haven’t been used in at least 90 days and output the results to an Excel spreadsheet. Since I included the operating system, service packs, manager’s name, and creator SID, you can use this same script for […]

Read Me 3 Comments

Conflicting with Default Formatting??

The other day I was writing a script to get the distribution group memberships of a given user and output the names to the EMS console. If I type these commands into the shell line by line, it works fine: $UserGroups = (get-qadmemberof -Identity $UserName | where-object {$_.EmailAddresses ` -like “*domain.com*”} | ft Name -HideTableHeaders) write-host “$UserName is a member of the following Distribution Groups:” […]

Read Me Leave comment