How to automount a USB device class in Windows Server Virtual Machine from a ESX

Hi everyone!

Today I will share a tip if you need to automount some USB device inside your Windows VM.

The goal can be to auto mount some necessary devices, in my case it was to aumount USB HDD used for the backup chain.

The first step is to mount it to the VM with the ESX’s control.

When it’s mounted, you will be able to naviguate there to find the corrcet ID;

HKLM\Machine\CurrentControlSet\Enum\USB

Capture-1

 

From there we have our USB ID; Check the line HardwareID

We now need to go to our ESX datastore to edit the VM .vmx’s file;

Capture0

In the file VMX, we add that line;

Capture1

usb.autoconnect.device0 = “0x1058:0x25e2”

As you can see we used our hardwareID to make that entry inside the VMX

 

Time to test after, unplug and plug the device, and it should reconnect now 🙂

 

Windows 2019 RDS | Publishing RADC shortcut on the Desktop

Hi everyone

Today I wanted to share a small tip that I found if you publish Work Ressource items to your computers, but you want to publish a icon into the desktop of the user.

By default RADC support only to display the item inside your Start Menu like so;

Capture2

If your customers are used to the Citrix’s way to publish to the desktop. I suggest a small folder shortcut to the RADC’s ressources.

The path to use is;

%AppData%\Microsoft\Windows\Start Menu\Programs\Work Ressources (RADC)

With that path you can create a small GPO that create the icon inside the user desktop;

Capture

 

Thanks !

Testing DKIM records with NSLOOKUP

Hi everyone

Today I wanted to share a small and handy tip to test any DKIM setup.

I used to generate my DKIM key(s) and my problem were that I do not control the DNS’s server which hold my public DKIM’s key pair.

As such at first when I was sending a email to a source like hotmail.com, the header was showing me that;

dkim=fail (invalid public key)

As such, now I had to dig the why, and many website offer to check the DKIM, but I was stumbled on how to do it by hand myself.

I found that nslookup was the saviour.. again.. 🙂

So the tip is to issue;

nslookup

set q=TXT

# There you type your DKIM selector for your domain;

SELECTOR._domainkey.yourdomain.com

So if your selector is DKIM_test and your domain is contoso.com;

The string will look like that;

DKIM_test._domainkey.contoso.com

The result would be the current key stored for the domain for that selector;

Capture5

In my case the encryption key was cuted, as some DNS server limit the TXT field to 255 characters, so the field must be split to work good.

Thanks everyone

 

 

 

 

Windows Server 2019 – WSUS Add Role Error – The request to add or remove features on the specified server failed. the operation cannot be completed because the server that you specified requires a restart

Hi everyone.

Today I wanted to share a new bug I stumble into with Windows Server 2019.

The error is showed from the Add Role Wizard;

The request to add or remove features on the specified server failed. the operation cannot be completed because the server that you specified requires a restart

It happened to me while I tried to install the WSUS’s role, and no matter how many times I restart, the error always come back.

If such happen the first thing to look for is the WSUS Configuration wizard inside the admin’s tool, as the link would be there to finish the configuration even if the error happened in Add/Remove feature.

Click to run the Wizard and click Execute after.

Capture2

If it’s the same error as me, there the wizard will fail, with a link to the error log, please open the log.

Capture3

In the log locate the error at the end, there we can see the error; it’s a logon error.

Capture4

In the GPO console, gpedit.msc, please add the Logon as a Service right to the MSSQL account.

NT SERVICE\MSSQL$MICROSOFT##WID in Computer Configuration—>Policies—>Windows Settings—>Security Settings—>Local Policies—>User Rights Assignment

Capture5

That should do the tip 🙂

ps, another workaround there

 

Microsoft Q&A Launch !

Hi everyone

Good news from Microsoft today, Microsoft Q&A is launched and will soon replace the Technet Forum. The direct link is there.

mqanda

Good new users would be able to link to their old Technet profile in Q1 of 2020 🙂

For over 10 years the MSDN and TechNet Forums played a key part in enabling our customers to unblock their business scenarios by offering a platform where technical questions could be answered by Microsoft and the community . As time progressed, and technology evolved, the needs of the community grew beyond what the existing solution could provide. We started on a journey to identify a new, robust solution which would support our need to evolve the user experience.

We’re excited to share an important milestone in the journey, introducing the preview release of Microsoft Q&A – the place to get answers to all your technical questions on Microsoft products and services.

Just wanted to share it as it’s a good news, as the old forum was starting to show it’s ages.

Thanks everyone, and happy hunt in the news forum 🙂

Windows Server 2019 OEM Activation problem (VM)

Hi everyone

Today I wanted to share a small tip if you got some problems with your Windows Server 2019 OEM Activation if you have OEM media.

I used the latest Dell OEM installation media in my case. When the virtual machine booted I used to get an activation error even if my key was valid.

Capture2

Running a slmgr /ato returned me that error;

Error: 0x8007041D on a computer running Microsoft windows non-core edition, run ‘slui.exe 0x2a 0x8007041D ‘ to display the error text

At that point, even if I used my OEM media, I think it’s possibly a manufacturer problem with the media kit as in each of my cases I used to had a pre-installed version of ESX, and I selected to had the OEM OS.

To pass the activation the tip I got was simple, to use these customs settings inside the VM .vmx or parameters;

Capture

smbios.addHostVendor = TRUE

SMBIOS.reflectHost = TRUE

SMBIOS.noOEMStrings = TRUE

 

With those setting my virtual machine activated correctly 🙂

 

Microsoft Exchange Information Store Error – EventID 5003 | EventID 3154 – Time error

Hi everyone

On Microsoft Exchange you might fall into a strange bug if a time error happen between your DC and your server.

The error start by showing that error;

Event ID 5003, MSEchangeIS

Impossible d’initialiser le service de bande de d’information car les horloges de l’ordinateur client et du serveur sn déréglées. Le problème être dû à un changement d’heure sur l’ordinateur client ou le serveur, et un redémarrage peut être nécessaire. Vérifiez que votre domaine est configuré correctement et qu’il est actuellement en ligne.

That error may appear too;

EventID 3154, MSExchangeRepl

Active Manager n’a pas pu monter la base de données XXXXXXXX sur le serveur YYYYYYYY. Erreur: Une opération Active Manager a échoué avec une erreur provisoire. Recommencez l’opération. Erreur: Échec de l’action de base de données avec une erreur passagère. Erreur: Une erreur passagère s’est produite pendant une opération de base de données. Erreur: MapiExceptionNetworkError: Unable to make admin interface connection to server (hres:0x80040115, ec=-214221227)

To recover those erreurs you must do a net time command to sync the time with your active directory server.

net time \\DC-Server /set /y

After the net time don’t forget to restart the Microsoft Exchange Active Directory Topology service;

Voila, the error will be a past memory !

Thanks !

Windows 10 – Update Stay at Download Waiting

Hi everyone

Today I wanted to share a small tip if your Windows 10 updates stay stuck at waiting download. Like shown there;

Capture

If that happen please validate your current build to be sure it’s up to date, as often that error happen if one upgrade is waiting, but the update block the upgrade to run.

As such please go there to manually get the latest build; (www.microsoft.com/fr-ca/software-download/windows10)

Capture4

Click to download it, and please run it.

Capture3

Follow that wizard;

Capture2

Now after the manual upgrade the next time you will run into Windows Update the waiting download will be fixed.

 

Thanks everyone

Windows Server 2019 Domain Controller – Ready for production ! (KB4516077)

Hi everyone

Today I wanted to share a new, the KB4516077 is out and a *lot* of fix for the 2019 is in, for the ADDC’s roles.

 

  • Addresses an issue that causes File Explorer to report the number or the size of files and folders incorrectly when they use long paths.
  • Addresses an issue that causes unnecessary restart requests on servers.
  • Addresses an issue with diagnostic data processing during the Windows Out of Box Experience (OOBE) sequence.
  • Addresses an issue that prevents a web browser from connecting securely to Windows Server. This occurs when using a client authentication certificate, such as a SHA512-based certificate, and the web browser does not support a signature algorithm that matches the certificate.
  • Addresses an issue that may cause the Local Security Authority Subsystem Service (LSASS) to stop working with an “0xc0000005” error.
  • Addresses an issue that prevents the BitLocker recovery key from being successfully backed up to Azure Active Directory.
  • Addresses an issue that leads to excessive memory utilization in Microsoft Defender Advanced Threat Protection (ATP).
  • Addresses a possible compatibility issue when Microsoft Defender Advanced Threat Protection (ATP) accesses case-sensitive Server Message Block (SMB) shares.
  • Improves the detection accuracy of Microsoft Defender ATP Threat & Vulnerability Management.
  • Addresses an issue that gives a Windows Hello for Business user two certificates for authentication during certificate renewal instead of one certificate.
  • Addresses an issue that causes the lsass.exe service to stop working, which causes the system to shut down. This occurs when migrating Data Protection API (DPAPI) credentials using dpapimig.exe with the –domain option.
  • Addresses an issue that may cause Direct Access servers to use a large amount of non-paged pool memory (pooltag: NDnd).
  • Addresses an issue that prevents you from running the Active Directory Diagnostics Data Collector Set from the Performance Monitor for Domain Controllers. This causes the Data Collector Set name to appear empty. Running the Active Directory Diagnostics Data Collector Set returns the error, “The system cannot find the file specified.” Event ID 1023 is logged with the source as Perflib and the following messages:
    • “Windows cannot load the extensible counter DLL “C:\Windows\system32\ntdsperf.dll.”
    • “The specified module could not be found.”
  • Addresses an issue in which the product description of Windows Server 2019 was incorrect when queried using slmgr /dlv.
  • Addresses an issue that may cause authentication to fail for certificate-based authentication when the certificate authentication includes a cname as part of the pre-authentication request.
  • Addresses a Lightweight Directory Access Protocol (LDAP) runtime issue for Domain Controller Locator-style LDAP requests. The error is, “Error retrieving RootDSE attributes, data 8, v4563.”
  • Addresses an issue that causes LDAP queries that contain LDAP_MATCHING_RULE_IN_CHAIN (memberof:1.2.840.113556.1.4.1941) to intermittently fail on Windows Server 2019 domain controllers. However, these queries do not fail on domain controllers running previous versions of Windows Server.
  • Addresses an issue that causes group membership changes in Active Directory groups to fail. This occurs if the Lightweight Directory Access Protocol (LDAP) client uses the Security Identifier (SID) Distinguished Name (DN) syntax after installing previous versions of NTDSAI.DLL. In this scenario, an issue with the LdapPermissiveModify (LDAP_SERVER_PERMISSIVE_MODIFY_OID) control causes Active Directory to incorrectly return a “SUCCESS” status even though the group membership change did not occur.
  • Addresses an issue in which the Set-AdfsSslCertificate script is successful. However, it throws an exception during resource cleanup because the target server-side endpoint is no longer there.
  • Addresses an issue that may cause a Hyper-V virtual machine and a Hyper-V host to lose network connectivity because of an inconsistency in the media access control (MAC) address learning process. As a result, the Hyper-V virtual switch drops packets.

As you can see the number of improvement is huge.

I would quote a Microsoft’s employee;

quote

Thanks everyone