You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Enable-PSSessionConfiguration** cmdlet enables registered session configurations that have been disabled, such as by using the Disable-PSSessionConfiguration or Disable-PSRemoting cmdlets, or the *AccessMode* parameter of Register-PSSessionConfiguration.
26
26
This is an advanced cmdlet that is designed to be used by system administrators to manage customized session configurations for their users.
27
27
@@ -38,20 +38,23 @@ Instead, use the more comprehensive cmdlet, Enable-PSRemoting.
38
38
## EXAMPLES
39
39
40
40
### Example 1: Re-enable the default session
41
+
41
42
```
42
43
PS C:\> Enable-PSSessionConfiguration
43
44
```
44
45
45
46
This command re-enables the Microsoft.PowerShell default session configuration on the computer.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
You can pipe a session configuration object or a string that contains the name of a session configuration to this cmdlet.
210
223
211
224
## OUTPUTS
212
225
213
226
### None
227
+
214
228
This cmdlet does not return any objects.
215
229
216
230
## NOTES
231
+
217
232
* To run this cmdlet on Windows Vista, Windows Server 2008, and later versions of the Windows operating system, you must start Windows PowerShell by using the Run as administrator option.
The **Enter-PSHostProcess** cmdlet connects to and enters into an interactive session with a local process.
41
45
42
46
Instead of creating a new process to host PowerShell and run a remote session, the remote, interactive session is run in an existing process that is already running PowerShell.
@@ -58,6 +62,7 @@ To support attaching to processes on remote computers, the **Enter-PSHostProcess
58
62
## EXAMPLES
59
63
60
64
### Example 1: Start debugging a runspace within the Windows PowerShell ISE process
65
+
61
66
```
62
67
In this example, you run **Enter-PSHostProcess** from within the Windows PowerShell console to enter the Windows PowerShell ISE process. In the resulting interactive session, you can find a runspace that you want to debug by running Get-Runspace, and then debug the runspace.
The simplest way to use this parameter is to save the results of a **Get-Process** command that returns process that you want to enter in a variable, and then specify the variable as the value of this parameter.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
185
194
186
195
## INPUTS
@@ -190,6 +199,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
190
199
## OUTPUTS
191
200
192
201
## NOTES
202
+
193
203
* **Enter-PSHostProcess** cannot enter the process of the PowerShell session in which you are running the command. You can, however, enter the process of another PowerShell session, or a Windows PowerShell ISE session that is running at the same time as the session in which you are running **Enter-PSHostProcess**.
194
204
195
205
**Enter-PSHostProcess** can enter only those processes that are hosting PowerShell.
0 commit comments