You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

838 B

PS Commands

Note: unless otherwise stated, replace any variable such as $ComputerName with the appropriate data.

Fetch (some) Installed Programs

Get-WmiObject win32_product -ComputerName $ComputerName | select Name, version

Fetch AD Groups with $SearchTerm in them

Get-ADGroup -Filter 'name -like "*$SearchTerm*"' | Sort-Object | select Name

Fetch Boot Time

Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName $ComputerName | slect csname, lastbootuptime

Fetch Computer Group Membership

Get-ADPrincipalGroupMembership (Get-ADComputer $ComputerName) | select-object name

Fetch User Group Membership

Get-ADPrincipalGroupMembership (Get-ADUser $Username) | select-object name