Skip to content

Instantly share code, notes, and snippets.

@mavaddat
Created November 29, 2024 03:28
Show Gist options
  • Save mavaddat/6e9e8e9c0abdf6ff6d2e60adf1c4718e to your computer and use it in GitHub Desktop.
Save mavaddat/6e9e8e9c0abdf6ff6d2e60adf1c4718e to your computer and use it in GitHub Desktop.
Get-Service -DisplayName "*Network Virtualization*" | Restart-Service -Force -Verbose
Get-Service -DisplayName "*Virtual Disk*" | Restart-Service -Force -Verbose
Get-Service -DisplayName "*Virtual Machine*" | Restart-Service -Force -Verbose
Get-Service -DisplayName "*Host Compute*" | Restart-Service -Force -Verbose
Get-Service -DisplayName "*Container Manager*" | Restart-Service -Force -Verbose
Get-Service -DisplayName "*Remote Procedure*" | Where-Object { $_.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Stopped } | Start-Service -Verbose
Get-Service -DisplayName "*Application Guard*" | Where-Object { $_.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Stopped } | Start-Service -Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment