Tag Archives: AD

How to identify list of inactive computers and move them to another OU

New task for IT: identity list of inactive computers and move them to another OU. As usual, PowerShell will help us. # Name : ListinActiveComputers.ps1 # Purpose: Get active computer accounts from active directory by # checking the last logon … Continue reading

Posted in Windows Server | Tagged , , , , | Leave a comment

Identify users in Groups by powershell

New task: list of users in Group (in ex. Domain Admins): #Script is writen by: Mykola Korkishko and Andryi Svintsitsky $array =@() $AllUsers=Get-ADUser -Properties * -Filter * foreach($user in $AllUsers){ #$Groups=$user |select -ExpandProperty Memberof if ($user.MemberOf.Contains(“CN=Domain Admins,CN=Users,DC=rcadv,DC=com”) -and $user.Enabled -eq … Continue reading

Posted in Windows Server | Tagged , , , , | Leave a comment

Review AD for active computers

Sometimes you need to generate a quick report from your Active Directory about active computers in your network. In case if you miss article in Google, below is listing from Original post Just save it to filename.ps1 and enjoy. # # Name … Continue reading

Posted in Windows Server | Tagged , , , | Leave a comment

Define last modification on userID

If you need to identify when was last changes on User in Active Directory. Run PowerShell PowerShell Management of Active Directory from Start button. OR run: %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command import-module ActiveDirectory Then you can copy/paste command and change userid to … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Delegate control in AD to update city and state/province

Due to my last request from customer I needed to delegate control for HR department to Active Directory. Main reason was: fill all fields in user profiles to has possibility to view them in Outlook. As all know for Delegate … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment