SHARE
TWEET

Untitled

a guest Mar 20th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This powershell script gatters computer information
  2.  
  3. $uncServer = "\\192.168.50.2"
  4. $uncFullPath = "$uncServer\Bitlocker_Check"
  5.  
  6. $computerinfo = get-wmiobject -computername $computersystem Win32_ComputerSystem
  7. $computerBIOS = get-wmiobject -computername $computerSystem Win32_BIOS
  8. $computerOS = get-wmiobject -computername $computerSystem Win32_OperatingSystem
  9. $CPU_Type = get-wmiobject -computername $computerSystem win32_Processor
  10. $tpmP = get-tpm
  11.  
  12. "System Information for: " + $computerinfo.Name
  13. "User logged In: " + $computerinfo.UserName
  14. "Manufacturer: " + $computerinfo.Manufacturer
  15. "Model: " + $computerinfo.Model
  16. "Serial Number: " + $computerBIOS.SerialNumber
  17. "BIOS Version: " + $computerBIOS.Version
  18. "CPU: " + $CPU_Type.Name
  19. "Memory (GB): " + $computerinfo.TotalPhysicalMemory/1gb
  20. "OS: " + $computerOS.caption + ", Service Pack: " + $computerOS.ServicePackMajorVersion + ", Build: " + $computerOS.BuildNumber
  21. "Last Reboot: " + $computerinfo.ConvertToDateTime($computerOS.LastBootUpTime)
  22.  
  23. #Export to TXT-file
  24. Out-File -FilePath $uncFullPath\"$env:computername.txt" -InputObject $tpmP
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top