Professional Documents
Culture Documents
Content Document PDF
Content Document PDF
1. SHORT DESCRIPTION.........................................................................................................................1
1.1 Configrations....................................................................................................................................1
1.2 Connect.............................................................................................................................................1
2. LONG DESCRIPTION............................................................................................................................1
2.1 PowerShell…………………………………………………………………………………………………………………………..……...1
2.2 Created………………………………………………………………………………………………………………………………………..1
3. Administrators....................................................................................................................................1
3.1 PSSession……………………………………………………………………………………………………………………………………..2
4. Windows PowerShell..........................................................................................................................2
4.1 Remoting……………………………………………………………………………………………………………………………………..2
4.2 Management………………………………………………………………………………………………………………………………..2
4.3 Discriptors……………………………………………………………………………………………………………………………………..3
5. Viewing Session..................................................................................................................................4
5.5 View……………………………………………………………………………………………………………………………………………..4
6. Connect-WSMan.................................................................................................................................4
6.1 Add to note…………………………………………………………………………………………………………………………………..4
6.2 Drive to local computer…………………………………………………………………………………………………………………4
6.3 Container………………………………………………………………………………………………………………………………………5
7. Register...............................................................................................................................................6
7.1 C# Assembly………………………………………………………………………………………………………………………………….6
7.2 Remote commands……………………………………………………………………………………………………………………….6
8. Selecting.............................................................................................................................................7
8.1 Invoke……………………………………………………………………………………………………………………………………………7
8.2 Server01……………………………………………………………………………………………………………………………………….7
8.3 Server02……………………………………………………………………………………………………………………………………….7
8.4 Variables……………………………………………………………………………………………………………………………………….8
about_Session_Configurations
Page 1
Administrators of the computer can use session configurations to
protect
the computer and to define custom environments for users who connect
to
the computer.
Page 2
By configuring the security descriptor of a session configuration,
you
determine who can use the session configuration to connect to the
computer. Users must have Execute permission to a session
configuration
to use it in a session. If a user does not have the required
permissions
to use any of the session configurations on a computer, the user
cannot
connect to the computer remotely.
Page 3
To get the session configurations on your local computer, use the
Get-PSSessionConfiguration cmdlet.
Name : microsoft.powershell
Permission : BUILTIN\Administrators AccessAllowed
Name : microsoft.powershell32
Permission : BUILTIN\Administrators AccessAllowed
WSManConfig: Microsoft.WSMan.Management\
WSMan::localhost\Plugin
For example, the following command adds a node for the Server01
remote
Page 4
computer to the WSMAN: drive on the local computer.
When the command is complete, you can navigate to the node for the
Server01 computer to view the session configurations.
For example:
C:\PS> cd wsman:
PS WSMan:\> dir
ComputerName Type
------------ ----
localhost Container
server01.corp.fabrikam.com Container
WSManConfig: Microsoft.WSMan.Management\
WSMan::server01.corp.fabrikam.com\Plugin
For example, the following command opens a property page that lets
you
change the security descriptor for the Microsoft.PowerShell default
session configuration.
Page 5
C:\PS> set-pssessionConfiguration -name Microsoft.PowerShell -
showSecurityDescriptorUI
C:\PS> disable-psremoting
To remove the "Deny All" entry from all the session configurations,
use
the Enable-PSRemoting or Enable-PSSessionConfiguration cmdlet. For
example, the following command removes the "Deny All" entry from
the
default session configurations.
For example:
Page 6
configuration, you can use a C# assembly, a Window PowerShell
script,
and the parameters of the Register-PSSessionConfiguration cmdlet.
This command will succeed only if the current user has permission
to use
Page 7
the WithProfile session configuration or can supply the credentials
of a
user who has the required permissions.
SEE ALSO
about_Preference_Variables
about_PSSession
about_Remote
New-PSSession
Disable-PSSessionConfiguration
Enable-PSSessionConfiguration
Get-PSSessionConfiguration
Register-PSSessionConfiguration
Set-PSSessionConfiguration
Unregister-PSSessionConfiguration
Page 8