sandytsang / MSIntune

31 stars 22 forks source link

I must be doing something wrong... #4

Open joacole opened 3 years ago

joacole commented 3 years ago

Hi there-

I am trying to use the DeviceConfigurationADMX_Import_FromJSON.ps1 script to import a series of json files from an ADMX policy. The weird thing is that it silently fails.

I run the script in PowerShell ISE as an administrator, feed it the path to the json files, and returns me to the "PS C:\WINDOWS\system32> " prompt.

I've tried passing the directory as "c:\IntuneOutput\admx", "c:\IntuneOutput\admx\", "c:\IntuneOutput\admx*.json", and "c:\IntuneOutput\admx\the_whole_file_name.json" and none seem to work.

Any advice you have would be very welcome.

Thanks much!

sandytsang commented 3 years ago

How did your export those admx policy? Did you use my export script? You can find details from our blog https://msendpointmgr.com/2019/01/17/use-intune-graph-api-export-and-import-intune-admx-templates/

joacole commented 3 years ago

Hi Sandy-

I sure did.

Thanks!