AutoPilotデバイスの登録をPower Shellからコマンド1つで完了させる方法


AutoPilotデバイスの登録をPower Shellからコマンド1つで完了させる方法



install-script -Name Upload-WindowsAutopilotDeviceInfo

PATH Environment Variable Change
Your system has not been configured with a default script installation path yet, which means you can only run a script
by specifying the full path to the script file. This action places the script into the folder 'C:\Program
Files\WindowsPowerShell\Scripts', and adds that folder to your PATH environment variable. Do you want to add the script
 installation path 'C:\Program Files\WindowsPowerShell\Scripts' to the PATH environment variable?
[Y] はい(Y)  [N] いいえ(N)  [S] 中断(S)  [?] ヘルプ (既定値は "Y"): y

Untrusted repository
You are installing the scripts from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the scripts from
[Y] はい(Y)  [A] すべて続行(A)  [N] いいえ(N)  [L] すべて無視(L)  [S] 中断(S)  [?] ヘルプ (既定値は "N"): a
PS C:>


PS C:\WINDOWS\system32> Upload-WindowsAutopilotDeviceInfo.ps1 -TenantName "" -Verbose
詳細: Attempting to locate AzureAD module
詳細: AzureAD module detected, checking for latest version
詳細: Attempting to locate PSIntuneAuth module
詳細: Authentication module detected, checking for latest version
詳細: Checking for existing authentication token
詳細: Authentication token does not exist, requesting a new token
詳細: Gather device hash data from local machine
詳細: Constructing required JSON body based upon parameter input data for device hash upload
詳細: Attempting to post data for hardware hash upload

@odata.context            :$metadata#deviceManagement/importedWindowsAutopilotDeviceI
id                        : XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX4
orderIdentifier           :
groupTag                  :
serialNumber              : 5CXXXXXXX
productKey                : WXXXX-XXXX-XXXXX-XXXXX
importId                  : f9XXX-XXXX-XXXX-XXXXXXXXXXXX
hardwareIdentifier        :
assignedUserPrincipalName :
state                     : @{deviceImportStatus=unknown; deviceRegistrationId=; deviceErrorCode=0; deviceErrorName=}

詳細: Attempting to perform a sync action in Autopilot

しばらくするとWindows AutoPilotデバイスに表示されてきます






  • URLをコピーしました!
  • URLをコピーしました!