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

Update Install-RSATv1809v1903v1909v2004v20H2.ps1 - add check is wuauserv is running #8

Open
wishbonesr opened this issue Jul 7, 2023 · 0 comments

Comments

@wishbonesr
Copy link

Suggesting to add a check if the wuauserv service is running.
It is not running by default in my org.
Get status around line 155 $wuSvsStatus = (get-service suauserv).Status
Before issuing cmdlet Restart-Service, check if $wuSvsStatusis -eq "Running"
Else Start-Service suauserv

And then in the finalizing of each parameter option, in the same place as the reset of the registry entry ("UseWuServer"), return the service it to it's original state. Running if running, and stopped if stopped.

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

1 participant