Conventions used
There are several text conventions used throughout this book.
Code in text
: Indicates code words in the text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “You also learned how to use the regedit
tool.”
A block of code is set as follows:
# Example to check the status of Windows Defender Antivirus $baselineStatus = $false $currentStatus = (Get-MpPreference).DisableRealtimeMonitoring if ($currentStatus -eq $baselineStatus) { Write-Host "Security baseline is intact." } else { Write-Host "Security baseline drift detected. Review settings." }
Bold: Indicates a new term, an important word, or words you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “In the Enter Product Key window, type the product key and click OK.”
Any command-line input or output is written as follows:
Get-VMNetworkAdapter -VMName <YourVMName> | Set-VMNetworkAdapter -MacAddressSpoofing On
Tips or important notes
Appears like this.