tabs-not-spaces / Intune.USB.Creator

A module containing tools to assist with the creation of a bootable WinPE USB used to provision devices for enrollment to Intune.
GNU General Public License v3.0
132 stars 46 forks source link

Error- cannot call method on a null valued expression #49

Closed harpreetgill12 closed 2 years ago

harpreetgill12 commented 2 years ago

The code works fine on my old computer, however I get the following error on the new computer.

I have checked all the pre-req and execution policy is set to unrestricted. Can you please help?

8FAFA33E-9765-4D42-8406-B8BE622DEE6D

RamboPixie1405 commented 2 years ago

Hello, I've got the exact same error, did you found what's causing it yet?

harpreetgill12 commented 2 years ago

I have managed to fix it by placing the invoke-provision.ps1 manually in the scripts folder. You need to unzip the WinPE folder and zip it again after placing the file. Also, make sure to clear your Temp folder 'C:\Users\user1\AppData\Local\Temp\Win10' before re-running the script.