How to make way for powershell to run a script when error 15100 is in the way?

Claus Debanker 41 Reputation points
2024-08-28T12:00:13.06+00:00

In order to run a script from

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_scripts?view=powershell-7.4

(the Get-servicelog.ps1)

it is needed the error with McpManagementService be addressed (see picture);

otherwise Powershell reports that

Service 'McpManagementService (McpManagementService)' cannot be queried due to the following error:

 *| PermissionDenied*
```![Screenshot 2024-08-27 232607](/api/attachments/d35b2530-6af7-45e9-a99d-efe6360fe42f?platform=QnA)

In the event of using the registry solution by changing Description and Display Name values to Universal Print Management Service,

it is considered illegible to attempt, that is, to delete the current ones with paths ending to -100&-101 respectively. 

It can be noted that when Get-Services was used off the script in pwsh.exe, the message

appeared once in-sequence between *MBVpnTunnelService* and *McpManagementService*.

![Screenshot p2 2024-08-27 235545](/api/attachments/18539568-6a6d-4fe6-a17d-ed087b231ef6?platform=QnA)

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,573 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,145 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,505 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,162 questions
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 33,481 Reputation points
    2024-08-28T12:52:53.1366667+00:00

    The "bug" with the McpManagementService appears to be an oversight with the description. I've seen that on both Win 10 and 11.

    Powershell 5.1 ignores the bug. While PS 7.4 displays an error, it does return the service object that can then be referenced.

    "-ErrorAction SilentlyContinue" will suppress the error message.

    User's image

    User's image


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.