quick way to know what installed on your servers ,oneliner –
1 |
Get-WindowsFeature -ComputerName localhost | where {$_.InstallState -eq "Installed"} |
Note: PS Version 3.0 +.
On a Windows 7 computer, you will need to add the Remote Server Administration Tools (RSAT) to gain access to the Group Policy cmdlets. You will first need to download the RSAT tools for your platform, either 64 bit or 32 bit Windows 7.
Once you have downloaded and installed the proper RSAT package, you have to go into Control Panel/Programs and Features and choose Turn Windows Features on or off. This step requires admin rights.
The RSAT package adds the Remote Server Administration Tools item in the dialog box. The dialog is shown in the following image.
here’s another way to get it quick and easy from remote computers-
1 2 3 4 5 6 7 8 9 10 11 12 13 |
function GetWinFeatures { param($comp = $env:COMPUTERNAME) try { Write-Host "Checking For Installed Roles And Features on $comp" -BackgroundColor Black -ForegroundColor White $winfeature = Get-WindowsFeature -cn $comp -Credential "$env:userdomain\$env:USERNAME" -ErrorAction Stop | Where-Object {$_.installed -eq $true} Write-Output $winfeature | ft -AutoSize -Expand CoreOnly } catch { "Please try again | Credentials not Verified! or $comp Not Responding" } } cls GetWinFeatures |
(Visited 2,160 times, 1 visits today)