Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $var = Get-WmiObject -Class Win32_ComputerSystem -ComputerName LocalHost |Select-Object -Property Model
- if ($var -like '*Virtual*' -Or $var -like '*VirtualBox*') {
- write-host 'HOVNO'
- }
Advertisement
Add Comment
Please, Sign In to add comment