Enabling Active Directory Recycle Bin on Windows 2008 R2

Well I have been a bit lazy recently in terms of my certification and in particular refreshing my MCSA (2003). So, I have decided to make a start, which will ultimately be disrupted by my summer holidays (or should I say honeymoon!). First up I am going to prepare for the 70-640: Windows Server 2008 … More Enabling Active Directory Recycle Bin on Windows 2008 R2

Set Extension Attribute value for bulk users in Active Directory

I was recently reminded of a powershell script I compiled many months ago, to set a specified extension attribute to the location of JPEG a on a network share which would be used as the users profile picture within Sharepoint. The script was dependant on two items. Firstly,  the cmdlet’s require ActiveRoles Management Shell for … More Set Extension Attribute value for bulk users in Active Directory

Automate systemstate backup using Windows Server Backup feature

I was recently tasked with automating the backup of the systemstate of  several Windows 2008 R2 domain controllers using the Windows Server Backup feature. Firstly, the Windows Server Backup feature is required to be installed; 1) Run Windows Powershell 2) From the command line type the below to import the Server Manager module into the … More Automate systemstate backup using Windows Server Backup feature

Quest Active Roles: Perform action on expiring passwords

Add-PSSnapin Quest.ActiveRoles.ADManagement $maxPassAge = (Get-QADObject (Get-QADRootDSE).defaultNamingContextDN).MaximumPasswordAge.days $enabledUsers = Get-QADUser  -Enabled -PasswordNeverExpires:$false -size 0 -ldap “(mailNickName=*)” $expiredUsers = $enabledUsers | where {$_.passwordAge -gt 0 -AND ($maxPassAge-$_.passwordAge.days) -lt 7} $expiredUsers | foreach { Insert Action Here}