πŸ‡¬πŸ‡§ | πŸ‡©πŸ‡ͺ | πŸ‡«πŸ‡· | πŸ‡ͺπŸ‡Έ | πŸ‡¨πŸ‡³ | πŸ‡ΈπŸ‡¦
We don't have DLL but we have:
Windows File Analyzer & Online Fast Antivirus

A minimalist interface featuring quick search, convenient uploading, and a clean section structure.

πŸ›‘οΈπŸ” Fast verify your file, just drop on this page.
Virus check, hashes, sign verify, architecture, AI info.

Windows WinRM Error: WSManSubscribe API Restriction

Description

This error occurs because Windows Remote Management (WinRM) strictly enforces security policies for push-based event subscriptions. The WSManSubscribe API requires the calling process to run under the built-in Network Service (NT AUTHORITY\Network Service) account. If a background service, monitoring tool, or script attempts to initialize a push subscription using a standard user, Local System, or local Administrator account, Windows blocks the request and triggers this error.


Step-by-Step Fixes

Depending on what is triggering the error (a custom script, a third-party service, or a scheduled task), use one of the following methods to resolve the issue.

Method 1: Change the Service Log On Account

If the error is caused by a Windows Service (such as a monitoring agent or data collector):

  1. Press Windows Key + R to open the Run dialog box.
  2. Type services.msc and press Enter.
  3. Locate the service that is generating the WinRM error.
  4. Right-click the service and select Properties.
  5. Navigate to the Log On tab.
  6. Select the This account radio button.
  7. Type NT AUTHORITY\Network Service in the text box. Leave the password fields completely blank.
  8. Click Apply and then click OK.
  9. Right-click the service again and select Restart.

Method 2: Configure a Scheduled Task to Run as Network Service

If the error originates from an automated script or executable running via Task Scheduler:

  1. Press Windows Key + R, type taskschd.msc, and press Enter.
  2. Locate the specific task running the script or software in the Task Scheduler Library.
  3. Right-click the task and select Properties.
  4. In the General tab, look under the Security options section and click Change User or Group....
  5. In the object name box, type Network Service and click Check Names.
  6. Click OK to confirm the change.
  7. Ensure that Run with highest privileges is checked if the task requires elevated permissions.
  8. Click OK and restart or run the task to verify the fix.

Method 3: Switch from Push Subscriptions to Pull Subscriptions

If you are developing a custom PowerShell script or application using WinRM and cannot run it under the Network Service account, you must change the architectural approach:

  1. Locate the configuration file or source code where the WinRM event subscription is defined.
  2. Modify the subscription delivery mechanism from Push to Pull.
  3. Pull subscriptions do not utilize the restricted WSManSubscribe API for listener creation and can be executed by standard administrator accounts.

ERROR_WSMAN_URI_NON_DMTF_CLASS | ERROR_WSMAN_URI_WRONG_DMTF_VERSION | ERROR_WSMAN_EVENTING_NONDOMAINJOINED_PUBLISHER | ERROR_WSMAN_EVENTING_NONDOMAINJOINED_COLLECTOR | ERROR_WSMAN_CONFIG_READONLY_PROPERTY

There may be some errors. Learn Microsoft