Jun 14 2019 03:26 AM
Hi,
I'm currently trying to run a PS script to add a VPN connection through Intune PowerShell.
When the script is run directly in powershell it executes as it should, adding the VPN connection.
On the other hand, if it executes through Intune PowerShell, nothing happens. I've searched the intune logs on targeted user's PC and also the online Intune portal where the script has a: Succeeded status.
Am I doing something wrong?
Jun 14 2019 04:03 AM
Jun 14 2019 06:22 AM
@neilcardenI've used the same settings as on your image
Jun 17 2019 06:04 AM
@Nikola NenadovicTry setting "Run script in 64 bit PowerShell host (when available)" to "Yes". I have found some very strange behavior when the scripts run within the 32-bit emulator. Things like, registry setting changes that only affect that Powershell session.