[Bug]: WAU Configurator throws permission errors on launch
soredake opened this issue · 4 comments
The problem
If you will try to launch WAU Configurator after installing WAU you will receive permission errors:
What version of WAU has the issue?
1.19.2-0
What version of Windows are you using (ex. Windows 11 22H2)?
Windows 11 23H2
What version of winget are you using?
v1.7.3452-preview
Log information
No response
Additional information
No response
@soredake I'd like to confirm one more thing before it gets investigated. That would limit the area of investigation.
It does not look like a problem with PS LanguageMode.
It can be verified by runnign this command:
$ExecutionContext.SessionState.LanguageMode
What is the Execution Policy for that PS context?
It can be checked by running this command:
Get-ExecutionPolicy -List
Happy Xmas
❯ $ExecutionContext.SessionState.LanguageMode
FullLanguage
❯ Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine RemoteSigned
Thanks :)
WAU is not signed, You will be running it in system/machine context.
Please check if it works after changing the Local Machine policy to Bypass:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine
You may revert the change after the test back to previous state by running this command.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Word of caution:
relaxing execution policy may expose your system to potential risk when some process using PowerShell does something sinister without your attention.
More details there
After uninstalling and installing WAU again i don't see WAU Configuration in start menu anymore so i think this can be closed.