![]() Source folder: Specify the UNC network path that contains the AutopilotConfigurationFile.json fileįor more information, see Packages and programs in Configuration Manager.įor the program, select the Program Type: Don't create a program.Select This package contains source files.Name: Autopilot for existing devices config.In the Create Package and Program Wizard, enter the following details for the package: In the Configuration Manager console, go to the Software Library workspace, expand Application Management, and select the Packages node. Create a package containing the JSON file If you save the file with Unicode or UTF-8 encoding, or save it with a different file name, the Windows OOBE won't follow the Autopilot experience. To use more than one Autopilot profile, create separate Configuration Manager packages. This requirement is for OOBE to follow the Autopilot experience. You can use multiple JSON profile files, but each one must be named AutopilotConfigurationFile.json. The configuration file can only contain one profile. $_ | ConvertTo-AutopilotConfigurationJSON | Set-Content -Encoding Ascii "$targetDirectory\$($_.displayName)\AutopilotConfigurationFile.json" New-Item -ItemType Directory -Path "$targetDirectory\$($_.displayName)" In each folder, there's a JSON file named AutopilotConfigurationFile.json Connect-MgGraph -Scopes "", "", "", "", "", "", "User.Read" If there are multiple Autopilot profiles, each profile has its own subfolder. The subfolder has the name of the Autopilot profile from Intune. By default, the $targetDirectory variable is C:\AutoPilot, but it can be changed to another location if desired. ![]() The Autopilot profile(s) appears in a subfolder under the folder specified by the $targetDirectory variable. The following PowerShell example saves the file in ASCII format. So, if you redirect output of the commands to a file, also specify the file format. ![]() Windows PowerShell defaults to Unicode format. Save the Autopilot profile as a JSON file in ASCII or ANSI format. You can also specify an explicit name to use. This name follows the naming pattern convention configured in the Intune Autopilot profile. The name that's automatically assigned to the computer. "CloudAssignedAadServerData": " CloudAssignedDeviceName "Comment_File": "Profile Autopilot Profile", See the following sample output: PS C:\> Get-AutopilotProfile | ConvertTo-AutopilotConfigurationJSON Get all the Autopilot profiles available in your Intune tenant, and display them in JSON format: Get-AutopilotProfile | ConvertTo-AutopilotConfigurationJSON Get Autopilot profiles for existing devices To enable these permissions, select Consent on behalf or your organization and then Accept. The first time Intune Graph APIs are used on a device, it prompts to enable Microsoft Intune PowerShell read and write permissions. Type your username and password, and then select Sign in. Windows requests the user and password for your account with a standard Azure AD form. Make sure the user account you specify has sufficient administrative rights. Import-Module Įnter the following commands and provide Intune administrative credentials: Import-Module WindowsAutopilotIntune -MinimumVersion 5.4 Install-Module WindowsAutopilotIntune -MinimumVersion 5.4.0 -Force On an internet-connected Windows PC or server, open an elevated Windows PowerShell command window.Įnter the following commands to install and import the necessary modules: Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force For more information, see AzureAD and Important: Azure AD Graph Retirement and PowerShell Module Deprecation. It was also updated to force using an updated version of the WindowsAutoPilot module. The Microsoft Graph PowerShell modules may require approval of additional permissions in Azure AD when they're first used. The PowerShell code snippets in this section were updated in July of 2023 to use the Microsoft Graph PowerShell modules instead of the deprecated AzureAD Graph PowerShell modules.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |