Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable-WURemoting - Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available. #33

Open
markusastone opened this issue Jul 31, 2024 · 1 comment

Comments

@markusastone
Copy link

Hello

The most recent update to PSWindowsUpdate has introduced a confirmation prompt when Enable-WURemoting is run. There does not appear to be a -force option, meaning that non-interactive scripts cannot run this command without the following error:
Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.

This currently breaks our automated patching and we're currently working around it by not running this command, but this will cause issues to new systems we bring online.

Can you please add a -force option that can allow this command to run, without confirmation?

Cheers

@robvh1
Copy link

robvh1 commented Aug 1, 2024

Same message also comes up when doing an Update-WUModule
Likely it also triggers Enable-WURemoting
In your case you could try Enable-WURemoting -Confirm:$false
Did not see a promt when testing that way

Update-WUModule has an option to set -confirm:$false, but that does not make a difference for this prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants