Now that we have captured both the account information when the account was just created and after the account was restored we can use this information to have a look at which attributes if any have changed. To make this comparison the Compare-Object Cmdlet can be used. To be able to compare these AD Object, the variable is first piped into Out-String and then split up into an array of strings.
Lately I have been playing around with the AD Recycle Bin on Windows Server 2012. It is a useful feature that was introduced in Server 2008 R2 and has been improved in Server 2012. New features include:
AD Object restore from GUI
Restore of a entire OU
To enable this feature using PowerShell the following line of code should be executed:
Enable-ADOptionalFeature -Identity 'Recycle Bin Feature' `
Note that this feature can never be disabled after it has been enabled. To test its functionality we will create a user:
This command creates a new account named Jaap with $ecret01 as the password. To be able to set a password this string is first converted into a SecureString. To verify that this account was created we can query it using Get-ADobject:
Get-ADobject -Filter'samaccountname -eq "jaap"'
An alternative, and my personal preference is to utilize [adsisearcher] to query for AD object. It has the advantage that it is available natively in PowerShell, in any version. Here is the syntax to query for the account that was just created:
We have now established that the account can be found and, so let’s remove the account so it moves to the Active Directory Recycle Bin:
Get-ADobject will return an error and [adsisearcher] will not return any results. This is because the user account is Tombstoned and placed in the Deleted objects container. To get the desired results, the -IncludeDeletedObjects switch should be used:
Today Microsoft has released four new IT Pro exams leading up to two new MCSE certifications. As both Windows Server 2012 and Windows 8 have been released to manufacturing (Source: Windows Server Blog) the accompanying certifications have been released as well. The exams will be available as Beta exams from the 6th of August until the 20th of August with registration commencing at the 1st of August. For more information regarding Beta exams please have a look at the official FAQ by Microsoft here.
It is official, Microsoft has announced the release date for Windows 8. After some speculation earlier this month, it has been confirmed on the Windows Server Team blog. After the earlier announcement that Windows Server 2012 would be available in September, a release date for Windows 8 was expected to be announced as well. Windows 8 is set to be released on the 26th of October.
The official announcements are available on the Windows Server Team Blog: