Forum Discussion
Deploying Script as Win32 App
Hello. A quick question to get started:
- Did you test the script locally using System Credentials as well (through e.g sysinternals) or did you run it as a local administrator?
One thing that has given me headaches before is that Intune runs these scripts in a 32 bit Powershell by default (thus the name win32). You can switch to 64-bit but you have to do this explicitly by calling a different path for Powershell:
%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe
Let me know if testing it through the System account using sysnative or running it as 64 bit powershell changes anything. If the script works when run locally using System and as 64-bit in Intune there is no reason that it should not work when deployed as an Intune App.
Sidenote: I dont fully understand your setup and why you detect apps through intune but opt to not manage them through Intune as well. Could you shine some light on this matter?