- In the host (real hardware), obtain the data to pass through:
function DMI { # Get DMI value and XML-escape it sudo sed \ 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g' \
"/sys/class/dmi/id/$1"
I hereby claim:
To claim this, I am signing this object:
@echo off | |
REM Check permissions | |
net session >nul 2>&1 || ( | |
echo Aborting: this script must be run elevated! | |
exit /b 1 | |
) | |
pushd "%UserProfile%\Downloads" |