Forum Discussion
Werner2024
Jan 24, 2024Copper Contributor
Intune
good day Hope someone can assist me, I want to create a intune package that copy a folder from a network server to the local C drive of the computer, after the copy has finish I want it to automat...
Werner2024
Feb 07, 2024Copper Contributor
I use the below command
Powershell.exe -NoProfile -ExecutionPolicy ByPass -File .\script.ps1
Powershell.exe -NoProfile -ExecutionPolicy ByPass -File .\script.ps1
TimBosch
Feb 08, 2024Brass Contributor
This is mine and works flawlessly in this scenario
powershell.exe -executionpolicy bypass -file "Install.ps1"
My AX installation script looks like the following:
$tempExtractPath = "C:\Temp\ExtractedFiles"
New-Item -ItemType Directory -Path $tempExtractPath -Force | Out-Null
# Pak het .zip-bestand uit naar de tijdelijke map
Expand-Archive -Path $zipFilePath -DestinationPath $tempExtractPath -Force
Then I use the start-process to install the AX
- Werner2024Feb 14, 2024Copper ContributorThanks Tim
Will give this a try definitely