Tag Archives: powershell

Workstation force WSUS check

New task – how to force the workstation to check updates on WSUS, open Powershell: PS C:\Users\nick.korkishko> Enter-PSSession workstation12 [workstation12]: PS C:\Users\TEMP.DERMATOLOGY.014\Documents>  wuauclt /detectnow Advertisements

Posted in Windows Server | Tagged , | Leave a comment

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

IE version collection with PowerShell

Task for IT: collect statistic about IE versions in your environment without inventory system. What you need to enable: Remote registry on computers Run PowerShell script: #Script is writen by: Mykola Korkishko and Andryi Svintsitsky $array =@() $keyname = ‘SOFTWARE\\Microsoft\\Internet … 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