Get-WindowsAutoPilotInfo.ps1 integration

gogeek

New Member
Messages
6
Reaction score
0
I have built a custom Win 11 ISO with all of the updates etc, however to make life a little easier on the machines i have to capture for Intune/AutoPilot, I'd like to integrate the Get-WindowsAutoPilotInfo script and modules into my image.

Is there any way of doing that by mounting the image and adding them?

I'd prefer not to have to install and re-capture the WIM file if i can avoid it.
 
If you prefer to do it yourself, the normal way of copying folder or file content from the ISO is to use $OEM$ folders.
https://learn.microsoft.com/en-us/w...s-and-configuration-sets-overview#oem-folders

1. Extract your ISO to a local folder.
2. Add the local folder to NTLite as an Image directory.
3. Create \sources\$OEM$ folder inside the local folder.

\sources\$OEM$\$1 -> C:\​
\sources\$OEM$\$2 -> D:\​
\sources\$OEM$\$$ -> C:\Windows​
\sources\$OEM$\$1\Local\Folder -> C:\Local\Folder​

4. When you use NTLite to create an ISO from the image folder, it will automatically include the \sources\$OEM$ content.
5. WinPE Setup will copy the $OEM$ subfolders to their target paths on the system disk.
 
The Get-WindowsAutoPilotInfo script is typically installed via
Install-Script Get-WindowsAutoPilotInfo

When you run it, it installs a powershell module.
Import-Module WindowsAutopilotIntune
Install-Module AzureAD

Not sure how to include those into it as there aren't raw files (other than a nupkg download)
 
I think we answered this question before; unless you perform a sysprep capture, it's really difficult to import PS modules to an offline image.
[REQUEST] To have the ability to integrate PowerShell modules into mounted image

PS wants to keep repository metadata about the imported modules, and if you simply copy files around, then you have a module that can't be self-updated. In the example I use, you could move those steps to the specialize pass (if needed) assuming there is a working network.
 
Back
Top