Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This powershell script gatters computer information
- $uncServer = "\\192.168.50.2"
- $uncFullPath = "$uncServer\Bitlocker_Check"
- $computerinfo = get-wmiobject -computername $computersystem Win32_ComputerSystem
- $computerBIOS = get-wmiobject -computername $computerSystem Win32_BIOS
- $computerOS = get-wmiobject -computername $computerSystem Win32_OperatingSystem
- $CPU_Type = get-wmiobject -computername $computerSystem win32_Processor
- $tpmP = get-tpm
- "System Information for: " + $computerinfo.Name
- "User logged In: " + $computerinfo.UserName
- "Manufacturer: " + $computerinfo.Manufacturer
- "Model: " + $computerinfo.Model
- "Serial Number: " + $computerBIOS.SerialNumber
- "BIOS Version: " + $computerBIOS.Version
- "CPU: " + $CPU_Type.Name
- "Memory (GB): " + $computerinfo.TotalPhysicalMemory/1gb
- "OS: " + $computerOS.caption + ", Service Pack: " + $computerOS.ServicePackMajorVersion + ", Build: " + $computerOS.BuildNumber
- "Last Reboot: " + $computerinfo.ConvertToDateTime($computerOS.LastBootUpTime)
- #Export to TXT-file
- Out-File -FilePath $uncFullPath\"$env:computername.txt" -InputObject $tpmP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement