Forum Discussion
Chris_White_81
Sep 27, 2022Copper Contributor
Copy a OVPN file in Powershell from Intune
Sounds easy, my powershell script works fine if i run it on my machine, it copies the file into the %USERPROFILE%\OpenVPN\config folder. Its packaged up using the Intunewinapp program, but when i put...
Sep 27, 2022
Guess where the %userprofile% resolves to when deploying it as system : C:\Windows\System32\Config\systemprofile 🙂
and you could always use wildcards in the copy process c:\users\*\openvpn
Chris_White_81
Sep 27, 2022Copper Contributor
i did have the first one configured as user, that got the same result, but ill redo it again, maybe there was another reason that it didnt run.