Wednesday 9 January 2019

PowerShell command for permanently deleting the AD objects

Or, Removing deleted AD objects from AD database
Or, Deleting AD objects from AD database permanently which are already marked as ‘isDeleted’

Descriptions: This approach is useful when you really want to permanently delete the AD object and you no more need these entries to available in ‘DeletedObject’ container of AD.

The most important point to note here is, you would not be able to recover any AD object from Active Directory Recycle Bin once you permanently delete the objects using this PowerShell command.

Steps:
Open Windows PowerShell (run as administrator) > run the below command
-----------------------------------------------------------------------------------------------------------------------
Get-ADObject -Filter 'isDeleted -eq $true -and Name -like "*DEL:*"' -IncludeDeletedObjects | Remove-ADObject -Confirm:$false
-----------------------------------------------------------------------------------------------------------------------

Reference screenshot:





Cheers, please write me back if you have any query or feedback.

How to check OS installation Date of Windows OS?

Or, Finding windows OS installation date using command line interface

Steps: To check Windows Operating System Installation Date, follow the steps given below:

Go to Run > Type CMD > Press Enter > Type systeminfo on the command prompt as shown in the reference screenshot below:











Original Installation Date (highlighted in the red mark): is the date when actually the windows OS was installed on the particular PC.

Cheers, Please write me back if you have any query or feedback on this.