For example you can copy explorer.exe (user context processs) and start your script to display your message box. $msgForm.ShowIcon = $False Lee, In my GitHub repo I have a script just for that specific use case. Are you sure that it’s not a trivial copy and paste error. Does it mean that all assigned scripts should run every hour? $Type = Add-Type -MemberDefinition $Signature -Name ‘KnownFolders’ -Namespace ‘SHSetKnownFolderPath’ -PassThru, Problem I have is the call to ‘Add-Type’ fails with ‘Cannot add type. Now that the difficult part is out of the way, let’s move on to installing the printers. This agent is able to manage and execute PowerShell scripts on Windows 10 devices and it does this quite well. But the approach below is not secure and should therefore used within a test environment only! The GPOs are often used for local user management tasks too (that approach uses a simple xml file with the password base64 encoded -> this is not secure!). The template script to restart in a 64-bit process is therefore not necessary anymore when running PowerShell scripts with Intune, but in case of Win32 apps and potential install wrapper scripts, it might still be necessary to re-start the wrapper for the Win32 apps installation. Please consider something that was build for that purpose. Let’s move onto the solution – This will be split up into two segments – Configuring the Point and Print Policies and installing the printers. $msgForm.MaximizeBox = $False Not long ago I ran into the need to have policies applied to new devices, a lot quicker than what a normal enrollment does. Oliver, thanks a lot. Go to Device Configuration and select Powershell scripts: Give the script a name. Is this by design? Corresponding registry entries for the assigned scripts and execution results are here: HKLM\SOFTWARE\Microsoft\IntuneManagementExtension\Policies\UserGUID\ScriptGUID.
Set-ItemProperty -Path “HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced” -Name “HideFileExt” -Value “0”
Enterprise Mobility and the Microsoft Cloud. Let’s begin: Go to the Intune portal -> Device Configurations -> PowerShell scripts. Powered by WordPress.
$dotNetKey.CreateSubKey(‘Software\Policies\Microsoft\office\16.0\common\general’).SetValue(‘ShownFileFmtPrompt’, 1, [Microsoft.Win32.RegistryValueKind]::DWord), Oh yes I totally agree with you!
Thanks for the idea and the script. – max 2 GB in size I don’t want to use a scheduled task as the app should be installed only once.