IT Consultant Everyday Notes

Just some problems/solutions storage

VAMT: “The specified database is not a valid VAMT database”

I created a brand new Volume Activation Management Tool environment 3.1 from Win 11 ADK and connected it to my SQL server.

The DB created, but immediately after that VAMT threw out the following error: “The specified database is not a valid VAMT database”

The solution has been found here: VAMT – database not a valid VAMT database : sysadmin (

basically, the following command should be ran on the new DB:

alter table base.GenuineStatusText alter column GenuineStatusText nvarchar(255) NULL

After that VAM successfully connected to the DB

SCCM: Drivers tab is missing in Boot image

One of my Customers called with a missing “Drivers” tab in boot image interface in SCCM CB.

It turned out he upgraded ADK recently and did not update the boot images with new binaries. As soon as we updated the boot image with the new ADK files, “Drivers” and other missing tabs appeared successfully.

Azure AD: Distribution Group–add a member is greyed out

Bumped into an interesting issue – tried to add a user to an existing Azure AD Distribution group (created directly in AAD, not synced) but in GUI “Add Membership” button in the Group property was greyed out.


From the user side an attempt to add the user to the Group failed with: “Unable to complete due to service connection error”


I found an MS Answer doc describing similar issue: Add Member button greyed out on Microsoft Azure Active Directory with proper roles? – Microsoft Q&A

and tried both powershell and MS Graph approach, still the same issue. The error in PowerShell and Graph pointed that the object was created in external source: “Unable to update the specified properties for objects that have originated within an external service.”


Resolution: I succeeded to add a user to the group from Office Admin portal (

PKI: Why Root CA certificate is duplicated in Intermediate Certificate Authorities container?

Built another two-layer PKI infrastructure for one of my Customers and noted the offline Root CA certificate is added not just to “Trusted Root Certification Authorities” container but also to “Intermediate Certification Authorities” container in local store on domain joined machines.

Googled and looked around a bit and apparently it is by design. The best discussion/references is here:

According Brian Komar: “A root CA certificate can be an intermediate CA certificate after a root CA is renewed with a new key pair !!!!”

ADFS: Device registration adventure with GMSA account

I decided to set up a Lab environment for Windows Hello for Business. One of commands required on ADFS server is Initialize-ADDeviceRegistration. Syntax for the command is pretty easy, but all my attempt failed with:


Initialize-ADDeviceRegistration : The specified identity ‘mydomain\myADFSserviceaccount’ could not be found. Some or all identity references could not be translated

Reason: I am using a Managed Account for ADFS, so I need to put “$” at the end of the account name: ‘mydomain\myADFSserviceaccount$’

SCCM: CMG installation failed when granting permissions to a resource group

I reinstalled a Cloud Management Gateway (CMG) in my Lab and the installation failed with: “Error occurred when granting Contributor permission to the Azure AD app for resource group RG-SCCM-CMG. For more information, see SmsAdminUI.log”

I checked the log and found a weird error containing the following (tenant are sanitized):

“InvalidAuthenticationTokenTenant: The access token is from the wrong issuer ‘’. It must match the tenant ‘′ associated with this subscription. Please use the authority (URL) ‘′ to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later”

Strange, taking in consideration the account I used to sign in has only one directory associated.

Resolution: I closed SCCM console and completely deleted cache including cookies in my Edge Browser. After that I restarted the installation from SCCM console and this time it passed smoothly.

SCCM: Secondary SUP broke the primary one.

Recently I helped my Customer with a CMG configuration. The Clients are not hybrid joined, so we needed to use PKI infrastructure. For the Pilot the Customer decided to bring a new 2016 Server and configure it for SSL-enabled MP and SUP in the current HTTP environment (SCCM is installed on Windows Server 2012 R2).

Everything looked ok until the second SUP was prepared. We used as a guide and pointed the new WSUS to the primary database. That was a mistake – the secondary WSUS was installed ok, but the primary went down and could not start anymore. I tried to run wsusutil postinstall  with specified content folder and database, but WSUS was not happy anyway. wsusutil log revealed that the new 2016 WSUS actually updated WSUS DB schema and the old 2012 R2 WSUS could not access it anymore Smile. The error message suggested to upgrade WSUS to the same version…

Hopefully we had a backup of the DB, so I deleted the new WSUS, restored the DB with the old schema and re-run wsusutil postinstall content_dir=*MYFOLDER*  SQL_Instance_Name=*MySQLNAME*. After that the primary WSUS started and with some time SUP connected to it correctly.

After that I install a new WSUS on the 2016 server again, but this time I used a local folder for content and WID for the WSUS database. Next, I moved database from WID to my SQL server with a different name (since SUSDB already existed there) and tweaked registry settings in WSUS Server configuration to point it to the new location. step-by-step is here:

registry settings for SQL name and DB name (if the name was changed):


Lesson learned: it is always better to use the same OS version for site systems in your SCCM infrastructure.

SCCM: Client certificate issue

I added an SSL MP/SUP in my lab environment and move a test client to the associated subnet. Unfortunately, the client did not register itself and the Client had “Self-Signed” certificate in SCCM Client General Properties. MP was switched correctly.

MP_Registration_Manager.log on the new MP showed:

“The certificate chain processed correctly but terminated in a root certificate not trusted per ConfigMgr CTL.”

I checked certificate storage on the new MP and found my Root certificate not only under “Trusted Root Certification Authorities” but also under “Intermediate Certification Authorities”. Not sure how SCCM put it there, but I deleted them in “Intermediate …” folder. After several minutes the client registered successfully.

SCCM: Edge Chromium installation failed with 1(1x)

With SCCM (MEMCM) 1910 we can create Edge deployment directly from SCCM console the same way as O365 (even though the old .MSI is still working).

Sounds like a nice idea. I created a deployment (here is a nice outline: and saw a new Application “Edge Deployment” under Applications node in SCCM.

I refreshed computer policies on a Client and manually started “Edge Deployment” Application installation from Software center. It miserably failed.

After digging fresh logs I found:

in AppEnforce.log

Unmatched exit code (1) is considered an execution failure

Long story short: Microsoft uses a PowerShell script for the .msi installation. Even though the script is signed, the default Powershell Execution POlicy (Restricted) does not allow that. So you need either relax the policy to “Remote Signed” at least or add –ExecutionPolicy Bypass clause to the installation command in your deployment type(s) like this:


After that update machine policy on your test client and start the installation again. At least that fixed the issue for me.

SCCM: MP is not reachable via CMG (PKI scenario)

One of my Customers asked me to help with a CMG deployment. The idea is to get Internet-based machines managed and patched.

They do not have Hybrid AAD joined environment yet, so I need to use old good PKI.

I decided to get it in my Lab first. I do have CA on my pfsense router to get it even more interesting (the certs do not CRL link).

I issued required certificates for my SCCM, CMG and Clients and flipped my Primary site to PKI. On all Certificate settings I checked “No CRL verification” box (sice I do not have one.

Internally everything worked fine, but when I flipped a Client to “Internet” subnet I found it can connect for a short period of time only. After that connection to MP via CMG is lost, client goes grey and I see:

[CCMHTTP] ERROR INFO: StatusCode=403 StatusText=CMGConnector_Clientcertificaterequired

in LocationServices.log on the Client.

It turned out to be a known issue (KB4503442) or better by design behaviour for a scenario when Azure AD tokens are not in use.

So, I added a Client cert with the name of my MP as Subject Name and in SAN. Restarted Cloud Connector on my SCCM.

Still no go.

Checked the SMS_Cloud_ProxyConnector.log  and found:

Chain build failed cert: 77…………………………………………1

Chain 0 status: RevocationStatusUnknown

ok… So it looks like even though I unchecked Revocation List check in properties of CMG the connector is still trying to check it Smile. In troubleshooting guide (  Microsoft says the best way is to publish CRL properly (sure, I know that). and do not provide information how to disable the check.

But if we take a look in the registry HKLM\SOFTWARE\Microsoft\SMS\SMS_CLOUD_PROXYCONNECTOR  we can find a key: ClientCertSelectionNoCRLCheck set to 0 by default.

I switched it to 1 and restarted the connector.

After that the Internet Client successfully connected to the MP.

Note: I completely agree with the Vendor – the proper approach is to have your PKI properly configured and CRL published with public access; but in my case it is a Lab, so the workaround is acceptable.