April 2019
Intermediate to advanced
372 pages
12h 47m
English
Perform the following steps:
Import-WinModule WebAdministrationGet-WebSite | Remove-WebSite
Get-Service | Select Name, Status | ConvertTo-Html | ForEach-Object { if ($_ -match 'Running') { $_ -replace '<tr>', '<tr color="Green">' } elseif ($_ -match 'Stopped') { $_ -replace '<tr>', '<tr color="Red">' } else { $_ }} | Set-Content -Path (Join-Path -Path $webDirectory.FullName -ChildPath 'index.html')
$svcFragment = Get-Service ...$prcFragment ...
Read now
Unlock full access