from requests.exceptions import ConnectionError
def pars_header(url):
try:
r = requests.get(url, headers=headers)
return r.status_code
except ConnectionError:
return 0
Get-WindowsOptionalFeature -Online | Where {$_.FeatureName -like "NetFx4*" -and $_.State -eq "Enabled"}
- для проверки. | Disable-WindowsOptionalFeature