Comments (4)
Just adding... the above still occurs, not sure why, but everythign seems to be working normally despite that ConfigFile.json injection error.
from intune.usb.creator.
it turns out, Sysprepped images (Win10 1903 and 1909) will remove the Autopilot directory once "generalized"... Any chance we can "inject" that folder back in (via this script)?
from intune.usb.creator.
from intune.usb.creator.
I'm a totally n00b script kiddy, but i added to the "if" statement from line 431:
if (Test-Path "$PSScriptRoot\AutopilotConfigurationFile.json" -ErrorAction SilentlyContinue) { Write-Host "
nInjecting AutoPilot configuration file.." -ForegroundColor Yellow
if (test-path "$($usb.scRoot)Windows\Provisioning\Autopilot"){
Copy-Item "$PSScriptRoot\AutopilotConfigurationFile.json" -Destination "$($usb.scRoot)Windows\Provisioning\Autopilot\AutopilotConfigurationFile.json" -Force | Out-Null
}
else {
New-Item -ItemType directory -Path "$($usb.scRoot)Windows\Provisioning\Autopilot"
Copy-Item "$PSScriptRoot\AutopilotConfigurationFile.json" -Destination "$($usb.scRoot)Windows\Provisioning\Autopilot\AutopilotConfigurationFile.json" -Force | Out-Null
}
}
`
...it checks if Autopilot directory is there... if not, create it first and then copy over the AutopilotConfiguration JSON file.
from intune.usb.creator.
Related Issues (20)
- Can't build USB without iso file HOT 3
- Typo & Panther folder exists check HOT 1
- Failure after Install.wim found on drive HOT 2
- Fatal Error at Setting Up Partition Table HOT 9
- Option to use this script for PXE Boot HOT 1
- PID.txt serial key slipstream? HOT 1
- Grabbing Autopilot config file from Azure HOT 5
- Hybrid Azure AD join HOT 1
- USB Not working on new Windows 21H1
- Lenovo Network Drivers don't Load HOT 7
- missing invoke-provision.ps1 HOT 4
- Warning when pulling install.wim HOT 1
- Not Grabbing Autopilot Config HOT 1
- 0x800705b4 issue when deploying 21H1 HOT 1
- How does this handle devices where the hardware hash is not in Intune? HOT 1
- Error While Getting Deviceid of Potential Windows Target Drives HOT 3
- diskNum flag not working HOT 1
- Feedback in regards of SHA256Cng fix and missing install.wim. HOT 2
- Error- cannot call method on a null valued expression HOT 2
- Get-DiskToUse listing main hard drive as an option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intune.usb.creator.