Hello,
how can i run Dism command for user?
I am trying below lines but it errors out
Copy-Item -Path “$dirfiles\association.xml” -Destination “C:\windows\association.xml”
Execute-ProcessAsUser -Path “$PSHOME\powershell.exe” -Parameters “-Command & { & dism /online /import-defaultappassociations:“c:\windows\association.xml”}” -Wait
ERROR
Failed to set read permissions on path