Recently I came across very useful PowerShell cmdlet to manage windows OS.
It is called Get-WindowsCapability
It is part of DISM module (the tool we discussed in last blog post).
In order to see all available capabilities (features), you can run following:
Get-WindowsCapability -Online
This shows, component along side with status (whether it is installed on current system or not)
E.g.
Name : Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
State : NotPresent
Name : Microsoft.Windows.WordPad~~~~0.0.1.0
State : Installed
- .NET Framework 3.5
- RSAT tools (e.g. Active Directory, DHCP)
- Language packs
- OpenSSH Client/Server
- WordPad, PowerShell ISE, etc.
In the list category is shown as the first part of the name.
If you want to search for specific capability, you can do it using following PowerShell command:
Get-WindowsCapability -Online | Where-Object Name -like "*OpenSSH*"
No comments:
Post a Comment