Guest User

Untitled

a guest
Jan 10th, 2018
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $var = Get-WmiObject -Class Win32_ComputerSystem -ComputerName LocalHost |Select-Object -Property Model
  2. if ($var -like '*Virtual*' -Or $var -like '*VirtualBox*') {
  3. write-host 'HOVNO'
  4. }
Advertisement
Add Comment
Please, Sign In to add comment