Vanara.PInvoke.WsmSvc 4.2.1

Prefix Reserved
dotnet add package Vanara.PInvoke.WsmSvc --version 4.2.1
                    
NuGet\Install-Package Vanara.PInvoke.WsmSvc -Version 4.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vanara.PInvoke.WsmSvc" Version="4.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vanara.PInvoke.WsmSvc" Version="4.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Vanara.PInvoke.WsmSvc" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vanara.PInvoke.WsmSvc --version 4.2.1
                    
#r "nuget: Vanara.PInvoke.WsmSvc, 4.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Vanara.PInvoke.WsmSvc@4.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vanara.PInvoke.WsmSvc&version=4.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Vanara.PInvoke.WsmSvc&version=4.2.1
                    
Install as a Cake Tool

Vanara

Vanara.PInvoke.WsmSvc NuGet Package

Version Build status

PInvoke API (methods, interfaces, structures and constants) imported from Windows WsmSvc.dll for Windows Remote Management.

What is Vanara?

Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

Issues?

First check if it's already fixed by trying the MyGet build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.WsmSvc

Functions Enumerations Structures Interfaces
WSManCloseCommand WSManCloseOperation WSManCloseSession WSManCloseShell WSManConnectShell WSManConnectShellCommand WSManCreateSession WSManCreateShell WSManCreateShellEx WSManDeinitialize WSManDisconnectShell WSManGetErrorMessage WSManGetSessionOptionAsDword WSManGetSessionOptionAsString WSManInitialize WSManPluginAuthzOperationComplete WSManPluginAuthzQueryQuotaComplete WSManPluginAuthzUserComplete WSManPluginFreeRequestDetails WSManPluginGetOperationParameters WSManPluginOperationComplete WSManPluginReceiveResult WSManPluginReportContext WSManReceiveShellOutput WSManReconnectShell WSManReconnectShellCommand WSManRunShellCommand WSManRunShellCommandEx WSManSendShellInput WSManSetSessionOption WSManSignalShell WSMAN_FLAG_REQUESTED_API_VERSION WSMAN_FLAG_SERVER_BUFFERING_MODE WSMAN_PLUGIN_PARAMS_OP WSMAN_SHUTDOWN WSManAuthenticationFlags WSManCallbackFlags WSManDataType WSManProxyAccessType WSManSessionOption WSManEnumFlags WSManProxyAccessTypeFlags WSManProxyAuthenticationFlags WSManSessionFlags WsmError WSMAN_AUTHENTICATION_CREDENTIALS WSMAN_AUTHZ_QUOTA WSMAN_CERTIFICATE_DETAILS WSMAN_COMMAND_ARG_SET WSMAN_DATA WSMAN_DATA_BINARY WSMAN_DATA_TEXT WSMAN_ENVIRONMENT_VARIABLE WSMAN_ENVIRONMENT_VARIABLE_SET WSMAN_ERROR WSMAN_FILTER WSMAN_FRAGMENT WSMAN_KEY WSMAN_OPERATION_INFO WSMAN_OPTION WSMAN_OPTION_SET WSMAN_PLUGIN_REQUEST WSMAN_PROXY_INFO WSMAN_RECEIVE_DATA_RESULT WSMAN_RESPONSE_DATA WSMAN_SELECTOR_SET WSMAN_SENDER_DETAILS WSMAN_SHELL_ASYNC WSMAN_SHELL_DISCONNECT_INFO WSMAN_SHELL_STARTUP_INFO WSMAN_STREAM_ID_SET WSMAN_USERNAME_PASSWORD_CREDS WSMAN_API_HANDLE WSMAN_COMMAND_HANDLE WSMAN_OPERATION_HANDLE WSMAN_SESSION_HANDLE WSMAN_SHELL_HANDLE WSMAN_DATA_UNION IWSMan IWSManConnectionOptions IWSManConnectionOptionsEx IWSManConnectionOptionsEx2 IWSManEnumerator IWSManEx IWSManEx2 IWSManEx3 IWSManResourceLocator IWSManSession
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net9.0-windows7.0 is compatible.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Vanara.PInvoke.WsmSvc:

Package Downloads
Vanara.Library

The full set of packages associated with the Vanara PInvoke Libraries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.2.1 166 9/9/2025
4.2.0 168 8/25/2025
4.1.6 151 6/20/2025
4.1.5 165 6/20/2025
4.1.4 180 6/7/2025
4.1.3 243 4/24/2025
4.1.2 266 4/16/2025
4.1.1 339 3/7/2025
4.1.0 294 3/7/2025
4.0.6 172 2/24/2025
4.0.5 172 2/8/2025
4.0.4 464 9/13/2024
4.0.3 200 8/5/2024
4.0.2 206 6/24/2024
4.0.1 444 4/30/2024
4.0.0 179 3/29/2024
4.0.0-beta2 192 1/22/2024
4.0.0-beta 175 11/20/2023
3.4.17 375 10/18/2023
3.4.16 347 8/7/2023
3.4.15 275 5/18/2023
3.4.14 330 4/15/2023
3.4.13 488 2/4/2023
3.4.12 562 1/15/2023
3.4.11 647 11/15/2022
3.4.10 723 10/25/2022
3.4.9 777 10/3/2022
3.4.8 810 9/16/2022
3.4.7 829 9/3/2022
3.4.6 863 8/7/2022
3.4.5 902 7/17/2022
3.4.4 851 7/5/2022
3.4.3 919 6/14/2022
3.4.2 902 5/13/2022
3.4.1 904 5/5/2022
3.4.0 946 3/14/2022
3.3.15 569 12/27/2021
3.3.14 640 10/26/2021
3.3.13 664 9/30/2021
3.3.12 661 8/30/2021
3.3.11 591 7/22/2021
3.3.10 688 6/4/2021
3.3.9 668 5/7/2021
3.3.8 680 4/7/2021
3.3.7 677 3/24/2021
3.3.6 606 3/19/2021
3.3.5 650 3/1/2021
3.3.4 616 2/11/2021
3.3.3 632 2/3/2021
3.3.2 707 1/21/2021
3.3.1 720 1/20/2021

Currently implements:

Functions
WSManCloseCommand WSManCloseOperation WSManCloseSession WSManCloseShell WSManConnectShell WSManConnectShellCommand WSManCreateSession WSManCreateShell WSManCreateShellEx WSManDeinitialize WSManDisconnectShell WSManGetErrorMessage WSManGetSessionOptionAsDword WSManGetSessionOptionAsString WSManInitialize WSManPluginAuthzOperationComplete WSManPluginAuthzQueryQuotaComplete WSManPluginAuthzUserComplete WSManPluginFreeRequestDetails WSManPluginGetOperationParameters WSManPluginOperationComplete WSManPluginReceiveResult WSManPluginReportContext WSManReceiveShellOutput WSManReconnectShell WSManReconnectShellCommand WSManRunShellCommand WSManRunShellCommandEx WSManSendShellInput WSManSetSessionOption WSManSignalShell

Structures
WSMAN_API_HANDLE WSMAN_AUTHENTICATION_CREDENTIALS WSMAN_AUTHZ_QUOTA WSMAN_CERTIFICATE_DETAILS WSMAN_COMMAND_ARG_SET WSMAN_COMMAND_HANDLE WSMAN_DATA WSMAN_DATA_BINARY WSMAN_DATA_TEXT WSMAN_DATA_UNION WSMAN_ENVIRONMENT_VARIABLE WSMAN_ENVIRONMENT_VARIABLE_SET WSMAN_ERROR WSMAN_FILTER WSMAN_FRAGMENT WSMAN_KEY WSMAN_OPERATION_HANDLE WSMAN_OPERATION_INFO WSMAN_OPTION WSMAN_OPTION_SET WSMAN_PLUGIN_REQUEST WSMAN_PROXY_INFO WSMAN_RECEIVE_DATA_RESULT WSMAN_RESPONSE_DATA WSMAN_SELECTOR_SET WSMAN_SENDER_DETAILS WSMAN_SESSION_HANDLE WSMAN_SHELL_ASYNC WSMAN_SHELL_DISCONNECT_INFO WSMAN_SHELL_HANDLE WSMAN_SHELL_STARTUP_INFO WSMAN_STREAM_ID_SET WSMAN_USERNAME_PASSWORD_CREDS

Interfaces
IWSMan IWSManConnectionOptions IWSManConnectionOptionsEx IWSManConnectionOptionsEx2 IWSManEnumerator IWSManEx IWSManEx2 IWSManEx3 IWSManResourceLocator IWSManSession