Alternatively, you can take a look at a post by my fellow MVP buddy Oliver Kieselbach ( where he explains how you can recover those scripts take a look here. Keep a copy of your script in case you need to upload again. It’s worth noting that you can’t edit the PowerShell script once uploaded to the console. I can see the commands in the PowerShell script being executed with the reference to the registry key I want to set.Īnd in the registry I can see the key is created. The delivery of the PowerShell script is handled by the I ntune Management Extension and the IME creates its own log files in the location C:\ProgramData\Microsoft\IntuneManagementExtension\Logs and you can use CMTrace to view the logs. Next, scroll to the Device sync status section and click Sync. This can be forced from the Settings app\Accounts\Access work or school and then choosing Info. The completed configuration will appear in the console and be assigned out to our devices or users. The Review screen will allow us to ensure we have configured as required before clicking Add to finalise the wizard. Our selected group/s will appear in the Selected groups section. Now we need to choose what devices or users we will assign the PowerShell script to. For my demo I am setting a registry key so I want to run this in 64-bit PS host so I have selected Yes.Ĭlick Next when all selections have been made. Run script in 64-bit PowerShell Host – The default is No which runs in 32-bit PS host.If we are to be security conscious then we should be running signed scripts, however for my demo I am leaving this as default. Enforce script signature check – The default is No which means that the script does not need to be signed. We would discuss on setting up a simple script to run Locally on a system and to have script doing remote execution.Run this script using the logged on credentials – the default is No which runs the script in the system context, however you may wish to switch to run as the currently logged on user.Next we must upload the ps1 script from your local device, simply click the folder icon next to the Script location field and choose your PowerShell script. Ive looked at the official documentation, but it looks like it only works for devices which are online - which to me defeats the purpose of deploying it via SCCM. Start by adding in a Name and a optional Description. Hi all, Were thinking of enabling the SCCM 'Run Script' feature included since 1710/1802. We now begin to work through the Add Powershell script wizard. In the console, navigate to Devices\PowerShell scripts. In the MEM Admin CenterĪs noted in Part 8, we’ve now switched over to using the Microsoft Endpoint Manager Admin Center which is available at the URL. In part 11 of the Keep it Simple with Intune series, I’ll be showing you how you can deploy a simple PowerShell script via Intune, which opens up a world of possibilities.įor this demo I am adding a registry key into the HKLM\Software location.