Bize Ulaşın / Contact Us

powershell logo

How to add or remove extensionAttribute of an AD User object

11 / 08 / 2015 by Active Directory, PowerShell 1 Yorum / Comment

I would like to share some simple PowerShell commands, to show how to add or remove extensionAttribute of an AD User object Import AD Module First [PS] C:\>import-module ActiveDirectory To get current value [PS] C:\>Get-ADUser -Identity firstuser -Properties extensionAttribute12 DistinguishedName : CN=First User,OU=TempTest,DC=infralib,DC=com Enabled : False GivenName : First Name : First User ObjectClass : user […]


powershell logo

PowerShell – List AD Users Password Expiry Dates

12 / 07 / 2014 by Active Directory, PowerShell 1 Yorum / Comment

The PowerShell script below will list you Display Name and  Password Expiry Date of all AD users.

It uses the msDS-UserPasswordExpiryTimeComputed attribute, be aware of that attribute is not exists on AD LDS. It is implemented on Windows Server 2008 operating system, Windows Server 2008 R2 operating system, Windows Server 2012 operating system, and Windows Server 2012 R2 […]

How to install AD DS and create forest via PS?

29 / 11 / 2013 by Active Directory, PowerShell Yorum yok / No Comments

Here is another small tip to create a new forest on a clean Windows Server 2012 R2, it installs AD DS, DNS and necessary administrative tools, and creates your forest, DNS entries etc.

Very useful information about AD DS Deployment Cmdlets can be found at http://technet.microsoft.com/en-us/library/hh974720.aspx / http://technet.microsoft.com/en-us/library/hh472162.aspx

Purging WDS database and clearing prestaging values from AD computers

Purging Auto-Add Database in WDS WDS purges approved computers from Auto-Add database every 30 days by default. You can also change the retention period for approved computers record by running WDSUTIL /Set-Server /AutoAddPolicy /RetentionPeriod /Approved:Days command. (http://technet.microsoft.com/en-us/library/cc754289(WS.10).aspx) To change the length of time approved computers are held in the Auto-Add database to 7 days. WDSUTIL /Set-Server […]