Download WindowsAutoPilotInfo.ps1 to offline computer

Andreas 1,331 Reputation points
2020-09-03T07:38:42.04+00:00

Hi,

We have some machines that are at the time not connected to the internet. We want to get the hardware hash from these machines.
How can we download the WindowsAutoPilotInfo.ps1 script and its dependencies and run this on those machines ?

Thanks for reply

/Andreas

Microsoft Security | Intune | Other
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 53,986 Reputation points Microsoft External Staff
    2020-09-03T09:19:31.813+00:00

    @Andreas Based on my test, for the offline computer, we can try the following steps to export the computer Autopilot information:

    1. Copy the script in the following link and save it as ps1 file.
      https://www.powershellgallery.com/packages/Get-WindowsAutoPilotInfo/1.3/Content/Get-WindowsAutoPilotInfo.ps1
      Note: Non-Microsoft link, just for the reference.
    2. Right click PowerShell and run as administrator
    3. Run the following command to export the computer information:
      PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command <ps1 file> -ComputerName $env:computername -OutputFile <output file path> -append
      Note: Change the information as the one in your environment.
      22426-image.png

    We can see more details in the following link:
    https://techcommunity.microsoft.com/t5/windows-10-management/get-windowsautopilotinfo-a-quicker-way/m-p/212393

    Hope it can help.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    If the response is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.