Jun 15 2022 11:54 PM
HI All,
I have been trying to copy an .ini file though intune to C:\Users\%username%\AppData\Roaming\pyRevit
I have decided to go with PowerShell and below is the following script
New-item -itemtype directory -force -path $env:APPDATA\pyRevit
Copy-item -path "$psscriptroot\pyRevit_config.ini" -Destination $env:APPDATA\pyRevit
Return 0
below is my Install command in intune
powershell.exe -executionpolicy Bypass .\CopyFiles.ps1
Now this works outside of intune but I can not get it to work with intune if anyone could help me i would be appreciative
Regards
Brendan
Jun 16 2022 02:22 AM
Jun 16 2022 01:35 PM
@Jannik_Reinhard I'm running it as a win32 app, Is it not possible to do it that way.
Jun 16 2022 02:20 PM - edited Jun 16 2022 10:33 PM
Okay sorry I understood that this is a Powershell script not a win32 app. Did you set the install behaviour to the user or to the system?
Jun 16 2022 04:48 PM
Solution@
I figured it out in the program it has to be set to user
Jun 16 2022 04:48 PM
Solution