Questions tagged [mmc]

The Microsoft Management Console (MMC) is a component of Windows that provides an administrative interface for system configuration. It can be extended with _snap-ins_, which are COM or managed code components that provide the user interface for a particular administrative domain.

The Microsoft Management Console (MMC) is a Windows application used by administrators and power users to administer a Windows system. Administration of varying domains -- such as event logs or starting and stopping [Windows service]s -- can be done within the same console.

MMC hosts components called snap-ins. These are implemented Snap-ins are extensions to the MMC executable, which hosts them and provides a window frame into which they expose their user interfaces. Traditionally, snap-ins have been implemented as COM components, but in recent releases of Windows, support is provided for snap-ins written for the managed runtime.

181 questions
78
votes
21 answers

"Invalid provider type specified" CryptographicException when trying to load private key of certificate

I'm trying to read the private key of a certificate which has been shared with me by a third-party service provider, so I can use it to encrypt some XML before sending it to them over the wire. I'm doing so programmatically in C#, but I think this…
Simon13
  • 781
  • 1
  • 5
  • 5
27
votes
1 answer

How to create a signing certificate and use it in IdentityServer4 in production?

Most (all?) the sample code on the IdentityServer4 docs site uses AddDeveloperSigningCredential(), but recommends using AddSigningCredential() instead in production. I spent more hours than I care to think about trying to figure out how to do…
Rob
  • 1,214
  • 1
  • 11
  • 20
24
votes
3 answers

Loading/Unloading assembly in different AppDomain

I need to execute a method in an assembly loaded during runtime. Now I want to unload those loaded assemblies after the method call. I know that I need a new AppDomain so I can unload the libraries. But here, the problem arises. The assemblies going…
Scoregraphic
  • 7,110
  • 4
  • 42
  • 64
20
votes
5 answers

remote sc OpenSCManager query failed 5 access denied

I'm writing a script that periodically checks that certain services are running on remote workstations. I'm having a devil of a time getting an "SC \workst1 query" command working from one test machine to another. Both machines are running XP pro…
Ralph Garou
  • 201
  • 1
  • 2
  • 3
8
votes
1 answer

Debugger not attaching to process

I have an MMC snap-in that I am trying to debug. Currently, the following code, placed in the snap-in's constructor, works in terms of attaching the debugger to it: public MySnapIn() { #if DEBUG if (!Debugger.IsAttached) { …
Alexandru
  • 12,264
  • 17
  • 113
  • 208
8
votes
2 answers

How does one create Microsoft Management console(MMC) snap-in in Delphi 2009?

Are there an wizard or templates in delphi 2009 to write a MMC console ? EDIT: Colin Wilson components look great thanks.
Charles Faiga
  • 11,665
  • 25
  • 102
  • 139
7
votes
4 answers

How to change DCOM config identity programmatically

Is there any way to get the information about Launching identity of DCOM application programmatically. See the picture attached to understand what i mean. I tried to use WMI ManagementObjectSearcher s = new ManagementObjectSearcher(new…
Oleksii
  • 311
  • 1
  • 3
  • 10
6
votes
3 answers

MMC could not created the snap-in SQL Server configuration manager

When i tried to connect to sql server configuration manager in sql server 2008. It shows error MMC could not create the snap-in. It was working perfectly till last night. What can be the reason, how can i solve it. But in background sql server is…
Hot Cool Stud
  • 1,145
  • 6
  • 25
  • 50
6
votes
2 answers

MMC custom snap-ins installation

I have written a snap-in in c#. I tried installing it using installutil and it didn't work at first. I notice that on the msdn page they said to run mmcperf to install the management.dll into the GAC. Doing this, I was able to install my snap in…
pdiddy
  • 6,217
  • 10
  • 50
  • 111
5
votes
4 answers

User account has no access to private key of Client certificate

I have a scenario where I am using certificate in my code to trigger an action. After importing certificate to my local machine and running c# code, it throws private key access issue with error 'User account has no access to private key of Client…
Kurkula
  • 6,386
  • 27
  • 127
  • 202
5
votes
4 answers

open certmgr.msc from commanf line on localMachine

I need to start "certmgr.msc" from "cmd.exe" on "localMachine" repository so that I can import\export certificates. I have tried the following commands but the "certmgr.msc" keeps opening on "currentUser". certmgr.msc -s -r localMachine root mmc.exe…
user4464366
  • 63
  • 1
  • 1
  • 4
5
votes
1 answer

WPF in an MMC snapin

Can someone provide some sample code for using WPF in a custom MMC snapin? I'm new to WPF, and I've understood the samples for writing MMC snapins, but I do not understand how to choose WPF instead of Winforms.
5
votes
1 answer

Create Group Policy for Specific Group

A question that has stumped me for a while. I know this is possible over domains using Active Directory and all the rest, but what about on a basic local machine running on a basic network with many users. Say this local machine is a communal work…
Daniel Nitschke
  • 101
  • 1
  • 3
  • 13
5
votes
1 answer

Importing a .pfx or .p12 file to a remote certificate store is not supported

I try to use MMC with SnapIn Certificates(Remote Computer) to import a p12 certificate into the Personal Certificate Store of a remote Windows 2008 Server Core computer. Certificate Import Wizard tells me: 'Importing a .pfx or .p12 file to a remote…
AllWorkNoPlay
  • 454
  • 1
  • 4
  • 20
4
votes
1 answer

Microsoft Management Console has stopped working

I'm trying to add snap into Microsoft Management Console in windows 10. But when I try to add certificate, an error message is coming with the header Microsoft Management Console has stopped working: When I click the Debug button, Visual Studio…
Rashik Hasnat
  • 318
  • 4
  • 14
1
2 3
12 13