Dec 08 2021 07:39 PM
Dear all,
Does anyone know how to combine the below command as a bat file?
Type in PowerShell
Type in Set-ExecutionPolicy bypass
Type in Install-Script -Name get-WindowsAutoPilotInfo -Force
Type in Y hit enter
Type in Get-WindowsAutoPilotInfo.ps1 -Online
Will be grateful for any help you can provide.
Thank you.
Sk-73
Dec 16 2021 06:44 AM
SolutionDec 27 2021 01:12 AM
Thank you for the command, it works! You're awesome!
How I do is I save the command as .ps1 > put the ps1 file into the C:\\ Temp folder > open PowerShell run as admin > type in cd C:\Temp\ hit enter then type in the file-name.ps1
Dec 16 2021 06:44 AM
Solution