diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Command_Syntax.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Command_Syntax.md index fc6511b16e35..31f150348197 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Command_Syntax.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Command_Syntax.md @@ -166,7 +166,7 @@ The syntax diagrams use the following symbols: The placeholder inside the angle brackets identifies the .NET type of the value that a parameter takes. For example, to use the **Name** parameter of - the `Get-Command ` cmdlet, you replace the `` with one or more + the `Get-Command` cmdlet, you replace the `` with one or more strings separated by commas (`,`). diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_If.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_If.md index 8d9bbc25c298..ebf167924c90 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_If.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_If.md @@ -133,7 +133,6 @@ $service.Status -eq 'Running' ? (Stop-Service $service) : (Start-Service $servic In this example, if the service is running, it's stopped, and if its status is not **Running**, it's started. - If a ``, ``, or `` expression calls a command, you must wrap it in parentheses. If you don't, PowerShell raises an argument exception for the command in the `` expression and parsing diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Path_Syntax.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Path_Syntax.md index 648faca39dd7..27dc1e3f268c 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Path_Syntax.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Path_Syntax.md @@ -87,7 +87,7 @@ The following examples are based on the current working directory being set to When using a path in a command, you can use a fully qualified path or a relative one. For example, suppose that your current working directory is `C:\Windows`. The following `Get-ChildItem` command retrieves all items in the -`C:\TechDocs `directory: +`C:\TechDocs` directory: ```powershell Get-ChildItem \TechDocs diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Providers.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Providers.md index 047e7ba86703..a6bb6877baf3 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Providers.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Providers.md @@ -233,7 +233,7 @@ drive:\location\child-location\... ``` For example, to change your location to the `HKLM\Software` registry key, type -a `Set-Location `command, such as: +a `Set-Location` command, such as: ```powershell Set-Location HKLM:\SOFTWARE\ diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Ref.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Ref.md index 616429b8bfc6..8fcfc9f73b2c 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Ref.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Ref.md @@ -16,9 +16,9 @@ of a variable that is passed to it. ## Long description -You can pass variables to functions *by reference* or *by value*. +You can pass variables to functions _by reference_ or _by value_. -When you pass a variable *by value*, you are passing a copy of the data. +When you pass a variable _by value_, you are passing a copy of the data. In the following example, the function changes the value of the variable passed to it. In PowerShell, integers are value types so they are passed by value. @@ -41,9 +41,9 @@ $var In the following example, a variable containing a `Hashtable` is passed to a function. `Hashtable` is an object type so by default it is passed to the -function *by reference*. +function _by reference_. -When passing a variable *by reference*, the function can change the data and +When passing a variable _by reference_, the function can change the data and that change persists after the function executes. ```powershell diff --git a/reference/7.5/Microsoft.PowerShell.Security/Set-ExecutionPolicy.md b/reference/7.5/Microsoft.PowerShell.Security/Set-ExecutionPolicy.md index 41a88e13b5b0..93332faa86ae 100644 --- a/reference/7.5/Microsoft.PowerShell.Security/Set-ExecutionPolicy.md +++ b/reference/7.5/Microsoft.PowerShell.Security/Set-ExecutionPolicy.md @@ -235,7 +235,7 @@ policy. The policy is set for the default scope, `LocalMachine`. The `Get-ExecutionPolicy` cmdlet shows that `RemoteSigned` is the effective execution policy for the current PowerShell session. -The `Start-ActivityTracker.ps1 script is executed from the current directory. The script is blocked +The `Start-ActivityTracker.ps1` script is executed from the current directory. The script is blocked by `RemoteSigned` because the script isn't digitally signed. For this example, the script's code was reviewed and verified as safe to run. The `Unblock-File` diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Measure-Object.md b/reference/7.5/Microsoft.PowerShell.Utility/Measure-Object.md index f761b1339e38..bffbdd2d8d96 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Measure-Object.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Measure-Object.md @@ -244,7 +244,7 @@ Property : num ### Example 11: Measure the Standard Deviation Beginning in PowerShell 6, `Measure-Object` supports the `-StandardDeviation` parameter. The -following example determines the *standard deviation* for the CPU used by all processes. A large +following example determines the _standard deviation_ for the CPU used by all processes. A large deviation would indicate a small number of processes consuming the most CPU. ```powershell @@ -344,7 +344,7 @@ Accept wildcard characters: False Indicates that the cmdlet counts the number of characters in the input objects. > [!NOTE] -> The **Word**, **Char** and **Line** switches count *inside* each input object, as well as *across* +> The **Word**, **Char** and **Line** switches count _inside_ each input object, as well as _across_ > input objects. See Example 7. ```yaml @@ -404,7 +404,7 @@ Accept wildcard characters: False Indicates that the cmdlet counts the number of lines in the input objects. > [!NOTE] -> The **Word**, **Char** and **Line** switches count *inside* each input object, as well as *across* +> The **Word**, **Char** and **Line** switches count _inside_ each input object, as well as _across_ > input objects. See Example 7. ```yaml @@ -509,7 +509,7 @@ Accept wildcard characters: False Indicates that the cmdlet counts the number of words in the input objects. > [!NOTE] -> The **Word**, **Char** and **Line** switches count *inside* each input object, as well as *across* +> The **Word**, **Char** and **Line** switches count _inside_ each input object, as well as _across_ > input objects. See Example 7. ```yaml diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Out-String.md b/reference/7.5/Microsoft.PowerShell.Utility/Out-String.md index 8484da6c4837..a7e0f0296abb 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Out-String.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Out-String.md @@ -112,7 +112,7 @@ parameter to find matches for the text **gcm**. > If you omit the **Stream** parameter, the command displays all the aliases because `Select-String` > finds the text **gcm** in the single string that `Out-String` returns. -### Example 3: Use the Width parameter to prevent truncation. +### Example 3: Use the Width parameter to prevent truncation While most output from `Out-String` is wrapped to the next line, there are scenarios where the output is truncated by the formatting system before being passed to `Out-String`. You can avoid diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Wait-Debugger.md b/reference/7.5/Microsoft.PowerShell.Utility/Wait-Debugger.md index 12f36c330446..7cb359e2be8f 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Wait-Debugger.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Wait-Debugger.md @@ -94,6 +94,7 @@ line 13. In this example, the `Wait-Debugger` command was inserted in the `CopyFile` method of a DSC resource. This is similar to using `Enable-RunspaceDebug -BreakAll` in a DSC resource but breaks at a specific point in the script. + ``` [DscResource()] class FileResource