[RISOLTO] pb install calculator tramite powershell
Pubblicato: 5 marzo 2020 - 13:08
Buongiorno,
Sto provando a eseguire un comando PowerShell per reinstallare la calcolatrice su Windows 10.
Ma a Windows non piace che questo comando venga passato all'utente SYSTEM LOCAL
Hai qualche idea?
Sto provando a eseguire un comando PowerShell per reinstallare la calcolatrice su Windows 10.
Ma a Windows non piace che questo comando venga passato all'utente SYSTEM LOCAL
Codice: Seleziona tutto
def install():
print('installing ddt72-reinstall-calculator')
#run('wsreset')
run_powershell('get-appxpackage *Microsoft.WindowsCalculator* | remove-appxpackage',output_format='Text')
run_powershell('Add-AppxPackage -register "C:\Program Files\WindowsApps\*WindowsCalculator*\AppxManifest.xml" –DisableDevelopmentMode',output_format='Text')Codice: Seleziona tutto
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF9, Install failed.
Please contact your software vendor. (Exception from HRESULT: 0x80073CF9)
Deployment Register operation rejected on package
............ from: AppXManifest.xml
install request because the Local System account is not allowed to perform
this operation.