7 lines
352 B
Batchfile
7 lines
352 B
Batchfile
@ECHO OFF
|
|
echo Enabling WinRM
|
|
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command Enable-PSRemoting -SkipNetworkProfileCheck -Force
|
|
echo Gathering AutoPilot Hash
|
|
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command %~dp0Get-WindowsAutoPilotInfo.ps1 -ComputerName $env:computername -OutputFile %~dp0compHash.csv -append
|
|
echo Done!
|
|
pause |