Quantcast
Channel: Microsoft Intune
Viewing all articles
Browse latest Browse all 1216

How to hide Powershell Window ? Deploying PS Script as a Win32 app in Intune.

$
0
0

I wrote a script that backs up browser bookmarks and set it up as a Win32 app (User context) in Intune. I have it available in Company Portal for users to backup their bookmarks as needed. It does work, but opens a Powershell Window.

Install Command is:

Powershell
powershell.exe-executionpolicybypass-File".\Backup.ps1"

After some feedback I was asked to make the Powershell window hidden and used the following Install Command:

Powershell
powershell.exe-WindowStyleHidden-executionpolicybypass-File".\Backup.ps1"

Now installing via Company Portal, the app downloads then quickly stops. No Powershell window opens, but Company Portal says "This app is no longer detected on your device...". It seems like Intune doesn't know how to process or processes "-WindowStyle Hidden" differently than running powershell locally, as that's the...


Viewing all articles
Browse latest Browse all 1216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>