
How to add or remove extensionAttribute of an AD User object
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 […]
Microsoft .NET Framework 4.5.2 WSUS’da
Microsoft .NET Framework 4.5.2 13 Ocak 2015 tarihinde Windows Server Update Services’de yayınlanacak. .NET Framework 4.5.2 hakkında daha fazla bilgi için buraya basınız. Bu sürüm: Windows Vista SP2, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2008 SP2, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2, Windows RT* ve Windows 8.1 RT* […]
DFS Paylaşımında Bulunan WSUS Güncellemelerini İndirememe
Eğer SCCM 2012 de WSUS paylaşımınız DFS üzerinde ise ve güncellemeleri bu paylaşımdan indirirken sorun yaşıyorsanız. Ve patchdownloader.log dosyasında aşağıdaki hata mesajını görüyorsanız HttpSendRequest failed HTTP_STATUS_NOT_FOUND Software Updates Patch Downloader ERROR: DownloadContentFiles() failed with hr=0x80070194 Software Updates Patch Downloader Bunun sebebi indirme işlemini yapan hesabın yani Network Servis hesabının DFS paylaşımınıza erişim hakkı bulunmadığı için olabilir. […]

PowerShell – AD Kullanıcılarını ve Password Expiry tarihlerini listelemek
Aşağıdaki PowerShell scripti ile AD’de ki kullanıcıları Password Expiry Date bilgileri ile listeleyebilirsiniz.
1 |
Get-ADUser -filter {(Enabled -eq $True) -and (PasswordNeverExpires -eq $False)} -Properties DisplayName, msDS-UserPasswordExpiryTimeComputed | Where-Object {$_.DisplayName -ne $null} | Select DisplayName,@{Name="ExpiryDate";Expression={([datetime]::fromfiletime($_."msDS-UserPasswordExpiryTimeComputed"))}} |
Komut msDS-UserPasswordExpiryTimeComputed attribute bilgisinden faydalanmaktadır. Bu attribute ün AD LDS’de bulunmadığını belirtmek isterim. Windows Server 2008 operating system, Windows Server 2008 R2 operating system, Windows Server 2012 operating system, and Windows Server 2012 R2 operating system de kullanılabilir.
1 2 3 4 5 6 7 8 9 10 11 12 |
cn: ms-DS-User-Password-Expiry-Time-Computed ldapDisplayName: msDS-UserPasswordExpiryTimeComputed attributeId: 1.2.840.113556.1.4.1996 attributeSyntax: 2.5.5.16 omSyntax: 65 isSingleValued: TRUE schemaIdGuid: add5cf10-7b09-4449-9ae6-2534148f8a72 systemOnly: FALSE searchFlags: 0 attributeSecurityGuid: 4c164200-20c0-11d0-a768-00aa006e0529 systemFlags: FLAG_SCHEMA_BASE_OBJECT | FLAG_ATTR_IS_CONSTRUCTED schemaFlagsEx: FLAG_ATTR_IS_CRITICAL |

PowerShell – List AD Users Password Expiry Dates
The PowerShell script below will list you Display Name and Password Expiry Date of all AD users.
1 |
Get-ADUser -filter {(Enabled -eq $True) -and (PasswordNeverExpires -eq $False)} -Properties DisplayName, msDS-UserPasswordExpiryTimeComputed | Where-Object {$_.DisplayName -ne $null} | Select DisplayName,@{Name="ExpiryDate";Expression={([datetime]::fromfiletime($_."msDS-UserPasswordExpiryTimeComputed"))}} |
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 […]