Get BIOS information for all domain computers
This queries Bios versions across all AD-joined machines
Get-ADComputer -Filter * -Property Name | ForEach-Object {
Get-WmiObject -Class Win32_BIOS -ComputerName $_.Name |
Select-Object PSComputerName, Manufacturer, SMBIOSBIOSVersion
}
2. List Services Set to Automatic but Not Running
This helps troubleshoot why some services fail at boot
Get-Service | Where-Object { $_.StartType -eq 'Automatic' -and $_.Status -ne 'Running' }
3. Reboot computers from a list
Reboot multiple machines from a list
Get-Content "C:\computers.txt" | ForEach-Object {
Restart-Computer -ComputerName $_ -Force -ErrorAction SilentlyContinue
}
Find Inactive Users in Active Directory
List Users who haven’t logged in for 90+ days.
Search-ADAccount -AccountInactive -UsersOnly -TimeSpan 90.00:00:00 |
Select-Object Name, SamAccountName, LastLogonDate