Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The WSMan.SessionFlagEnableSPNServerPort method returns the value of the authentication flag WSManFlagEnableSPNServerPort for use in the flags parameter of the WSMan.CreateSession method. This method provides a more efficient syntax for using the constant so that scripts are not required to set a constant value. For more information about how to call this method, see Session Constants.
WSManFlagEnableSPNServerPort is a constant in the __WSManSessionFlags enumeration. For more information, see Other Session Constants.
Syntax
WSMan.SessionFlagEnableSPNServerPort( _
ByRef flags _
)
Parameters
-
flags [out]
-
The value of the constant.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
Library |
|
DLL |
|