Problem Active Setup Context adm

Hello,

active installation setup in administrator context error only Windows 10
[Post-Installation] :: Execution failed with exit code [1].

installation active setup good context system

please help me to execute active setup context admin

Hi Mickey197,

Have you tried Set-ActiveSetup function for this.

or to copy files to userprofiles Appdata(%APPDATA%) sub folder you can try
$ProfilePaths = Get-UserProfiles | Select-Object -ExpandProperty ‘ProfilePath’
ForEach ($Profile in $ProfilePaths) {
Copy-File -Path “C:\Program Files\VideoLAN\VLC\vlcrc” -Destination “$Profile\AppData\Roaming\vlc” -Recurse -ContinueOnError $True
}

Have you tried Set-ActiveSetup function for this. ? yep

comand line good with active setup “PowerShell.exe”

Can you post your actual code for active setup here?

Yes,
Execute context account administrator

Copy-File -Path "$dirFiles\vlcrc" -Destination "$envProgramFiles\VideoLAN\VLC"
		Set-ActiveSetup -StubExePath "$envSystem32Directory\cmd.exe" -Arguments "/c xcopy ""$envProgramFiles\VideoLAN\VLC\vlcrc"" ""%AppData%\vlc\"" /Y /C" -Key "$PackageName" -Description "options mise à jour"

Log:[Post-Installation] :: Execution failed with exit code [1].

Error with command PowerShell Active Setup context account SYSTEM

Command line:Set-ActiveSetup -StubExePath “$envSystem32Directory\WindowsPowerShell\v1.0\powershell.exe” -Arguments $mesuperparams -Key “$PackageName” -Description “options mise à jour” -ContinueOnError $true

active

Hello,
Same problem explain in this issue: