Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » New-PSSessionOption

New-PSSessionOption - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


Short description
Creates an object that contains advanced options for a PSSession.

New-PSSessionOption [-ApplicationArguments <PSPrimitiveDictionary>] [-CancelTimeOut <int>] [-Culture <CultureInfo>]
 [-IdleTimeOut <int>] [-MaximumReceivedDataSizePerCommand <int>] [-MaximumReceivedObjectSize <int>] [-MaximumRedire
ction <int>] [-NoCompression] [-NoEncryption] [-NoMachineProfile] [-OpenTimeOut <int>] [-OperationTimeOut <int>] [-
ProxyAccessType {None | IEConfig | WinHttpConfig | AutoDetect | NoProxyServer}] [-ProxyAuthentication {Default | Ba
sic | Negotiate | NegotiateWithImplicitCredential | Credssp | Digest | Kerberos}] [-ProxyCredential <PSCredential>]
 [-SkipCACheck] [-SkipCNCheck] [-SkipRevocationCheck] [-UICulture <CultureInfo>] [-UseUTF16] [<CommonParameters>]

The New-PSSessionOption cmdlet creates an object that contains advanced options for a PSSession. You can use the ob
ject as the value of the SessionOption parameter of cmdlets that create a PSSession, such as New-PSSession, Enter-P
SSession, and Invoke-Command.

Without parameters, New-PSSessionOption generates an object that contains the default values for all of the options
. Because all of the properties can be edited, you can use the resulting object as a template, and create standard 
option objects for your enterprise.