mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Merge pull request #158 from Icinga:doc/update_wmi_kb
Doc: Updates WMI KB for Winmgmt service restart
This commit is contained in:
commit
0721b2f793
1 changed files with 14 additions and 0 deletions
|
|
@ -39,6 +39,20 @@ Add-IcingaWmiPermissions -User 'icinga' -Namespace 'root\Microsoft\Windows\Stora
|
|||
|
||||
The above command will grant the user `icinga` the read and remote access permission for the `root\Microsoft\Windows\Storage` namespace. In addition by using `-Recurse` we will set the permissions for `subnamespaces` in addition.
|
||||
|
||||
To fully apply the changes, it might be required to restart the Wmi service `Winmgmt`. How ever, you are running a Hyper-V server for example, the command
|
||||
|
||||
```powershell
|
||||
Restart-Service Winmgmt;
|
||||
```
|
||||
|
||||
might return an error, because this service has dependencies for other services. To enforce this, you can run
|
||||
|
||||
```powershell
|
||||
Restart-Service Winmgmt -Force;
|
||||
```
|
||||
|
||||
which will restart this and all other depending services. Please ensure that this is done while doing maintenance on the systems to not interrupt production services.
|
||||
|
||||
### Permission Table
|
||||
|
||||
| Flag | Description |
|
||||
|
|
|
|||
Loading…
Reference in a new issue