Manage Windows features via the ServerManager powershell module
salt.states.win_servermanager.
installed
(name, recurse=False, force=False)¶Install the windows feature
Note: Some features require reboot after un/installation. If so, until the server is restarted other features can not be installed!
Example:
Run salt MinionName win_servermanager.list_available
to get a list of available roles and features. Use
the name in the right column. Do not use the role or feature names mentioned in the PKGMGR documentation. In
this example for IIS-WebServerRole the name to be used is Web-Server.
ISWebserverRole:
win_servermanager.installed:
- force: True
- recurse: True
- name: Web-Server
salt.states.win_servermanager.
removed
(name)¶Remove the windows feature
Note
Some features require a reboot after uninstallation. If so the feature will not be completly uninstalled until the server is restarted.
salt MinionName win_servermanager.list_installed
to get a list of all features installed. Use the topname listed for each feature, not the indented one. Do not use the role or feature names mentioned in the PKGMGR documentation.
ISWebserverRole: win_servermanager.removed: - name: Web-Server