Skip to content

Commit fcf86d5

Browse files
authored
Merge pull request #11298 from MicrosoftDocs/main
7/24/2024 PM Publish
2 parents d0ab688 + d44bd43 commit fcf86d5

File tree

20 files changed

+315
-263
lines changed

20 files changed

+315
-263
lines changed

reference/5.1/Microsoft.PowerShell.Core/Register-PSSessionConfiguration.md

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: System.Management.Automation.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Core
5-
ms.date: 06/05/2024
5+
ms.date: 07/24/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/register-pssessionconfiguration?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Register-PSSessionConfiguration
@@ -60,7 +60,7 @@ users.
6060

6161
Every PowerShell session (**PSSession**) uses a session configuration, also known as an endpoint.
6262
When users create a session that connects to the computer, they can select a session configuration
63-
or use the default session configuration that is registered when you enable PowerShell remoting.
63+
or use the default session configuration that's registered when you enable PowerShell remoting.
6464
Users can also set the $PSSessionConfigurationName preference variable, which specifies a default
6565
configuration for remote sessions created in the current session.
6666

@@ -74,8 +74,10 @@ You can define the elements of configuration by using an assembly that implement
7474
configuration class and by using a script that runs in the session. Beginning in PowerShell
7575
3.0, you can also use a session configuration file to define the session configuration.
7676

77-
For information about session configurations, see [about_Session_Configurations](About/about_Session_Configurations.md).
78-
For information about session configuration files, see [about_Session_Configuration_Files](About/about_Session_Configuration_Files.md).
77+
For information about session configurations, see
78+
[about_Session_Configurations](About/about_Session_Configurations.md). For information about session
79+
configuration files, see
80+
[about_Session_Configuration_Files](About/about_Session_Configuration_Files.md).
7981

8082
## EXAMPLES
8183

@@ -189,7 +191,7 @@ information about dot sourcing, see [about_Scopes](./About/about_Scopes.md).
189191
Enables and disables the session configuration and determines whether it can be used for remote or
190192
local sessions on the computer. The acceptable values for this parameter are:
191193

192-
- Disabled. Disables the session configuration. It cannot be used for remote or local access to the
194+
- Disabled. Disables the session configuration. It can't be used for remote or local access to the
193195
computer.
194196
- Local. Allows users of the local computer to use the session configuration to create a local
195197
loopback session on the same computer, but denies access to remote users.
@@ -220,9 +222,9 @@ Accept wildcard characters: False
220222
221223
### -ApplicationBase
222224
223-
Specifies the path of the assembly file (\*.dll) that is specified in the value of the
224-
**AssemblyName** parameter. Use this parameter when the value of the **AssemblyName** parameter does
225-
not include a path. The default is the current directory.
225+
Specifies the path of the assembly file (`*.dll`) that's specified in the value of the
226+
**AssemblyName** parameter. Use this parameter when the value of the **AssemblyName** parameter
227+
doesn't include a path. The default is the current directory.
226228

227229
```yaml
228230
Type: System.String
@@ -257,15 +259,15 @@ Accept wildcard characters: False
257259

258260
### -ConfigurationTypeName
259261

260-
Specifies the fully qualified name of the Microsoft .NET Framework type that is used for this
262+
Specifies the fully qualified name of the Microsoft .NET Framework type that's used for this
261263
configuration. The type that you specify must implement the
262264
**System.Management.Automation.Remoting.PSSessionConfiguration** class.
263265

264-
To specify the assembly file (\*.dll) that implements the configuration type, specify the
266+
To specify the assembly file (`*.dll`) that implements the configuration type, specify the
265267
**AssemblyName** and **ApplicationBase** parameters.
266268

267269
Creating a type lets you control more aspects of the session configuration, such as exposing or
268-
hiding certain parameters of cmdlets, or setting data size and object size limits that users cannot
270+
hiding certain parameters of cmdlets, or setting data size and object size limits that users can't
269271
override.
270272

271273
If you omit this parameter, the **DefaultRemotePowerShellConfiguration** class is used for the
@@ -307,7 +309,7 @@ Accept wildcard characters: False
307309
Specifies a limit for the amount of data that can be sent to this computer in any single remote
308310
command. Enter the data size in megabytes (MB). The default is 50 MB.
309311

310-
If a data size limit is defined in the configuration type that is specified in the
312+
If a data size limit is defined in the configuration type that's specified in the
311313
**ConfigurationTypeName** parameter, the limit in the configuration type is used and the value of
312314
this parameter is ignored.
313315

@@ -318,7 +320,7 @@ Aliases:
318320

319321
Required: False
320322
Position: Named
321-
Default value: 50
323+
Default value: None
322324
Accept pipeline input: False
323325
Accept wildcard characters: False
324326
```
@@ -328,7 +330,7 @@ Accept wildcard characters: False
328330
Specifies a limit for the amount of data that can be sent to this computer in any single object.
329331
Enter the data size in megabytes. The default is 10 MB.
330332
331-
If an object size limit is defined in the configuration type that is specified in the
333+
If an object size limit is defined in the configuration type that's specified in the
332334
**ConfigurationTypeName** parameter, the limit in the configuration type is used and the value of
333335
this parameter is ignored.
334336
@@ -390,8 +392,10 @@ Accept wildcard characters: False
390392
### -NoServiceRestart
391393

392394
The intent of this parameter is to prevent the restart the **WinRM** service. This functionality
393-
isn't implemented. This will be fixed in PowerShell 7.5, but there is no plan to back port this
394-
change to Windows PowerShell 5.1.
395+
isn't implemented.
396+
397+
This functionality was implemented in PowerShell 7.5.0-preview.4, but there's no plan to back
398+
port this change to Windows PowerShell 5.1.
395399

396400
```yaml
397401
Type: System.Management.Automation.SwitchParameter
@@ -496,7 +500,7 @@ use a session configuration in a session, users must have at least Execute (Invo
496500
the configuration.
497501

498502
If the security descriptor is complex, consider using the **ShowSecurityDescriptorUI** parameter
499-
instead of this parameter. You cannot use both parameters in the same command.
503+
instead of this parameter. You can't use both parameters in the same command.
500504

501505
If you omit this parameter, the root SDDL for the **WinRM** service is used for this configuration.
502506
To view or change the root SDDL, use the WSMan provider. For example
@@ -558,7 +562,7 @@ returns.
558562
The options of sessions that use the session configuration are determined by the values of session
559563
options and the session configuration options. Unless specified, options set in the session, such as
560564
by using the `New-PSSessionOption` cmdlet, take precedence over options set in the session
561-
configuration. However, session option values cannot exceed maximum values set in the session
565+
configuration. However, session option values can't exceed maximum values set in the session
562566
configuration.
563567

564568
This parameter was introduced in PowerShell 3.0.
@@ -584,7 +588,7 @@ command and then restart the **WinRM** service.
584588
When setting the permissions for the configuration, remember that users must have at least Execute
585589
(Invoke) permission to use the session configuration in a session.
586590

587-
You cannot use the **SecurityDescriptorSDDL** parameter and this parameter in the same command.
591+
You can't use the **SecurityDescriptorSDDL** parameter and this parameter in the same command.
588592

589593
```yaml
590594
Type: System.Management.Automation.SwitchParameter
@@ -604,7 +608,7 @@ Specifies the fully qualified path of a PowerShell script. The specified script
604608
session that uses the session configuration.
605609

606610
You can use the script to additionally configure the session. If the script generates an error, even
607-
a non-terminating error, the session is not created and the `New-PSSession` command fails.
611+
a non-terminating error, the session isn't created and the `New-PSSession` command fails.
608612

609613
```yaml
610614
Type: System.String
@@ -619,9 +623,12 @@ Accept wildcard characters: False
619623
```
620624

621625
### -ThreadApartmentState
622-
Specifies the apartment state of the threads in the session.
623-
The acceptable values for this parameter are: STA, MTA, and Unknown.
624-
The default value is Unknown.
626+
627+
Specifies the apartment state of the threading module to be used. Acceptable values are:
628+
629+
- Unknown
630+
- MTA
631+
- STA
625632

626633
```yaml
627634
Type: System.Threading.ApartmentState
@@ -718,7 +725,7 @@ Accept wildcard characters: False
718725

719726
### -WhatIf
720727

721-
Shows what would happen if the cmdlet runs. The cmdlet is not run.
728+
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
722729

723730
```yaml
724731
Type: System.Management.Automation.SwitchParameter

reference/5.1/Microsoft.PowerShell.Management/Debug-Process.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 12/12/2022
5+
ms.date: 07/24/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/debug-process?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Debug-Process
@@ -39,47 +39,48 @@ The `Debug-Process` cmdlet attaches a debugger to one or more running processes
3939
You can specify the processes by their process name or process ID (PID), or you can pipe process
4040
objects to this cmdlet.
4141

42-
This cmdlet attaches the debugger that is currently registered for the process. Before using this
43-
cmdlet, verify that a debugger is downloaded and correctly configured.
42+
This cmdlet attaches the debugger that's registered for the process. Before using this cmdlet,
43+
verify that a debugger is installed and configured.
4444

4545
## EXAMPLES
4646

4747
### Example 1: Attach a debugger to a process on the computer
4848

49-
```
50-
PS C:\> Debug-Process -Name "Windows Powershell"
49+
```powershell
50+
Debug-Process -Name Powershell
5151
```
5252

5353
This command attaches a debugger to the PowerShell process on the computer.
5454

5555
### Example 2: Attach a debugger to all processes that begin with the specified string
5656

57-
```
58-
PS C:\> Debug-Process -Name "SQL*"
57+
```powershell
58+
Debug-Process -Name note*
5959
```
6060

61-
This command attaches a debugger to all processes that have names that begin with SQL.
61+
This command attaches a debugger to all processes that have names that begin with `note`.
6262

6363
### Example 3: Attach a debugger to multiple processes
6464

65-
```
66-
PS C:\> Debug-Process "Winlogon", "Explorer", "Outlook"
65+
```powershell
66+
Debug-Process "Winlogon", "Explorer", "Outlook"
6767
```
6868

69-
This command attaches a debugger to the Winlogon, Explorer, and Outlook processes.
69+
This command attempts to attach a debugger to the Winlogon, Explorer, and Outlook processes.
70+
Winlogon is a protected process. To debug Winlogon, you must run the command as an administrator.
7071

7172
### Example 4: Attach a debugger to multiple process IDs
7273

73-
```
74-
PS C:\> Debug-Process -Id 1132, 2028
74+
```powershell
75+
Debug-Process -Id 1132, 2028
7576
```
7677

7778
This command attaches a debugger to the processes that have process IDs 1132 and 2028.
7879

7980
### Example 5: Use Get-Process to get a process then attach a debugger to it
8081

81-
```
82-
PS C:\> Get-Process "Windows PowerShell" | Debug-Process
82+
```powershell
83+
Get-Process PowerShell | Debug-Process
8384
```
8485

8586
This command attaches a debugger to the PowerShell processes on the computer. It uses the
@@ -90,8 +91,8 @@ To specify a particular PowerShell process, use the ID parameter of `Get-Process
9091

9192
### Example 6: Attach a debugger to a current process on the local computer
9293

93-
```
94-
PS C:\> $PID | Debug-Process
94+
```powershell
95+
Debug-Process -Id $PID
9596
```
9697

9798
This command attaches a debugger to the current PowerShell processes on the computer.
@@ -100,12 +101,13 @@ The command uses the `$PID` automatic variable, which contains the process ID of
100101
PowerShell process. Then, it uses a pipeline operator (`|`) to send the process ID to the
101102
`Debug-Process` cmdlet.
102103

103-
For more information about the `$PID` automatic variable, see [about_Automatic_Variables](../Microsoft.PowerShell.Core/About/about_Automatic_Variables.md).
104+
For more information about the `$PID` automatic variable, see
105+
[about_Automatic_Variables](../Microsoft.PowerShell.Core/About/about_Automatic_Variables.md).
104106

105107
### Example 7: Attach a debugger to the specified process on multiple computers
106108

107-
```
108-
PS C:\> Get-Process -ComputerName "Server01", "Server02" -Name "MyApp" | Debug-Process
109+
```powershell
110+
Get-Process -ComputerName "Server01", "Server02" -Name "MyApp" | Debug-Process
109111
```
110112

111113
This command attaches a debugger to the MyApp processes on the Server01 and Server02 computers.
@@ -116,9 +118,9 @@ attaches the debuggers.
116118

117119
### Example 8: Attach a debugger to a process that uses the InputObject parameter
118120

119-
```
120-
PS C:\> $P = Get-Process "Windows PowerShell"
121-
PS C:\> Debug-Process -InputObject $P
121+
```powershell
122+
$P = Get-Process PowerShell
123+
Debug-Process -InputObject $P
122124
```
123125

124126
This command attaches a debugger to the PowerShell processes on the local computer.

0 commit comments

Comments
 (0)