-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGet-ADComputerSystemInfo.ps1
More file actions
20 lines (18 loc) · 1.07 KB
/
Copy pathGet-ADComputerSystemInfo.ps1
File metadata and controls
20 lines (18 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Get-ADComputerSystemInfo.ps1
# Pulls systeminfo from all AD computers and displays in a grid
# Requires AD rights and PowerShell remoting enabled on targets
(Get-ADComputer -Filter *).Name | ForEach-Object {
Invoke-Command -ComputerName $_ {
systeminfo /FO CSV
} -ErrorAction SilentlyContinue | Select-Object -Skip 1
} | ConvertFrom-Csv -Header `
"Host Name","OS","Version","Manufacturer","Configuration","Build Type",`
"Registered Owner","Registered Organization","Product ID","Install Date",`
"Boot Time","System Manufacturer","Model","Type","Processor","Bios",`
"Windows Directory","System Directory","Boot Device","Language","Keyboard",`
"Time Zone","Total Physical Memory","Available Physical Memory","Virtual Memory",`
"Virtual Memory Available","Virtual Memory in Use","Page File","Domain",`
"Logon Server","Hotfix","Network Card","Hyper-V" |
Out-GridView -Title "AD Computer System Information"
# To export to CSV after viewing in grid, use:
# | Out-GridView -PassThru | Export-Csv -Path 'C:\Temp\ADComputerInfo.csv' -NoTypeInformation