Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, command, folder names, filenames, file extensions, server names, dummy URLs and user input. Here is an example: "Restart-Computer
is a PowerShell command that does the same thing as shutdown /r /t 0
– but is much easier to remember."
A block of code is set as follows:
Write-Host "Hello! Here is the current date and time: $(Get-Date)" Write-Host "The name of your computer is: $(hostname)"
Any command-line input or output is written as follows:
hostname shutdown /r /t 0
Bold: Indicates words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Now, when you click on Shut down or Restart, you are asked to supply a reason why you are restarting."
Tips or important notes
Appear like this.