Updating to remove the end user control (as we took that away in 2004, now folks should use local GP). Additionally, made a few small tweaks to add clarity.
Fixed missing words, and added PowerShell formatting for code. Note this formatting was originally left out as it was causing formatting issues. This should be fixed with the removal of curly quotes.
- Script: Marked each snippet as "PowerShell" instead of plain text. Both GitHub and Microsoft Docs can highlight PowerShell syntax.
- Script: Added `#Requires -RunAsAdministrator` because the `Mount-WindowsImage` cmdlet needs it.
- Script: Eliminated the path-concatenating code-spaghetti. A mixture of different string-concatenating features was used alongside `Join-Path`! As a result, reading, interpreting, and adopting the path section of the script was a total nightmare.
- Script: Replaced all instances of "Write-Host" with "Write-Output". This is a serious change, as PowerShell scripts do not always run attended. Per PowerShell guidelines, `Write-Host` is a last-resort cmdlet. Where possible, `Write-Output` should be used instead.
- Script: Changed `"{0:HH:mm:ss}" -f (Get-Date)` into `return "{0:HH:mm:ss}" -f [DateTime]::Now`. It seems not everyone knows that Get-Date's output can be customized, and not always via its parameters. Hence, the former could have unintended consequences. It is also possible to write `Get-Date -Format "HH:mm:ss"` which is neither superior nor inferior. (Well, maybe it costs a few more CPU ticks.)
- Markdown Linter: Replaced inline HTML with Markdown
- Markdown Linter: Inserted the missing line breaks before each heading
Added retail link for activating Windows 10.
Added markdown for Notes.
Corrected a nested list error, which incorrectly indented a numbered list item.
Modified spacing inside numbered list so that text is rendered as author seemed to intend.
Amended line 149 from Get-DeliveryOptimizationPerfSnap to Get-DeliveryOptimizationStatus, this command is validated from windows powershell to be the valid command that has -peerinfo switch