I want to enable IIS by Enable-WindowsOptionalFeature of powershell.there is a python program having one line code:
os.system('powershell.exe Enable-WindowsOptionalFeature -Online -FeatureName $(Get-WindowsOptionalFeature -Online | Where { $_.FeatureName -Like "IIS-*"} | Select-Object -ExpandProperty FeatureName)')
when I run the python program,it says that 'Select-Object' is not recognized as an internal or external command,operable program or batch file.
I search for many ways.But no one can solve this problem,can someone help me with this? Thanks.