Skip to content

Commit 2032d1b

Browse files
markup fix attempt MicrosoftDocs#2
1 parent fd25170 commit 2032d1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/6/Microsoft.PowerShell.Core/New-PSSessionConfigurationFile.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Customized sessions that include the cmdlets, functions and scripts that technic
7171
The first pair of commands uses the **New-PSSessionConfigurationFile** cmdlet to create two session configuration files. The first command creates a no-language file. The second command creates a restricted-language file. Other than the value of the *LanguageMode* parameter, the session configuration files are equivalent.
7272

7373
```powershell
74-
New-PSSessionConfigurationFile -Path .\NoLanguage.pssc -LanguageMode NoLanguage
74+
New-PSSessionConfigurationFile -Path .\NoLanguage.pssc -LanguageMode NoLanguage ;
7575
New-PSSessionConfigurationFile -Path .\RestrictedLanguage.pssc -LanguageMode RestrictedLanguage
7676
```
7777

@@ -85,8 +85,8 @@ Register-PSSessionConfiguration -Path .\RestrictedLanguage.pssc -Name Restricted
8585
The third pair of commands creates two sessions, each of which uses one of the session configurations that were created in the previous command pair.
8686

8787
```powershell
88-
$NoLanguage = New-PSSession -ComputerName Srv01 -ConfigurationName NoLanguage
89-
$RestrictedLanguage = New-PSSession -ComputerName Srv01 -ConfigurationName RestrictedLanguage
88+
$NoLanguage = New-PSSession -ComputerName Srv01 -ConfigurationName NoLanguage ;
89+
$RestrictedLanguage = New-PSSession -ComputerName Srv01 -ConfigurationName RestrictedLanguage ;
9090
```
9191

9292
The seventh command uses the Invoke-Command cmdlet to run an If statement in the no-Language session. The command fails, because the language elements in the command are not permitted in a no-language session.

0 commit comments

Comments
 (0)