document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # Code Snippet from aperturescience.su
  2.  
  3. $computers = <array of computer names>
  4.  
  5. foreach ($computer in $computers)
  6. {
  7.     $timezoneisbrisbane = (Get-WmiObject -query "Select * from Win32_TimeZone" -computer $computer).caption.contains("Brisbane")
  8.  
  9.     if ($timezoneisbrisbane -eq $false)
  10.     {
  11.         Write-Host "$computer $timezoneisbrisbane"
  12.         "$computer $timezoneisbrisbane" | Out-File "incorrecttimezone.txt" -Append
  13.     }
  14. }
  15.  
  16. # Code Snippet from aperturescience.su
');