Last active
December 16, 2015 14:59
-
-
Save factormystic/5452265 to your computer and use it in GitHub Desktop.
SLAT test via WMI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
wmi = WIN32OLE.connect('winmgmts://') | |
result = wmi.ExecQuery('select SecondLevelAddressTranslationExtensions from Win32_Processor').to_enum.first | |
if result && result.SecondLevelAddressTranslationExtensions | |
puts 'SLAT Available' | |
else | |
puts 'SLAT Not Available' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment