I need help with Powershell this is my code;
$Features = @(
"MediaPlayback"
"Printing-PrintToPDFServices-Features"
"Printing-XPSServices-Features"
"SMB1Protocol"
"WCF-Services45"
"Xps-Foundation-Xps-Viewer"
)
Foreach ($Feature in (Get-WindowsOptionalFeature -Online).FeatureName) {
If ($Feature -in $Features) {
Disable-WindowsOptionalFeature -Online -FeatureName $Feature -NoRestart
Write-Host "Disabled Optional Feature $Feature"
}
}
and this is what i see Path : Online : True
Disabled Optional Feature Printing-PrintToPDFServices-Features
Path : Online : True
Disabled Optional Feature Printing-XPSServices-Features
Path : Online : True
Disabled Optional Feature WCF-Services45
Path : Online : True
Disabled Optional Feature MediaPlayback
Path : Online : True
I just Want to Hide Path : Online : True And ThankYOU