Windows Server – System Channel Event ID Error 36888

July 28, 2020

When your event viewer is flooded by the Channel Event ID 36888 alerts.

image

SOLUTION :

Turn this off by changing the registry key value :

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SecurityProviders\SCHANNEL

From 1 to 0

image

Enjoy!


Windows Server 2019 – Backup System State failed Error 0x800700a1

July 27, 2020

After the latest Windows 2019 update I ran into the problem that the Windows System State did not run anymore ?

All other backup selections where still running OK …

When I investigated the error it was saying : The specified path is invalid


image



Error in backup of C:\ during write: Error [0x800700a1] The specified path is invalid.
Error in backup of C:\Windows\ during write: Error [0x800700a1] The specified path is invalid.
Error in backup of C:\Windows\System32\ during write: Error [0x800700a1] The specified path is invalid.
Error in backup of C:\Windows\System32\Tasks\ during write: Error [0x800700a1] The specified path is invalid.
Error in backup of C:\Windows\System32\Tasks\Backup Failed during write: Error [0x800700a1] The specified path is invalid.
Application backup

SOLUTION :

In the event viewer I saw error ID 8193, and I applied these changes

https://audministrator.wordpress.com/2017/11/08/windows-server-2016-event-id-8193-8194-error/

But no success Sad smile

image

Next I ran this Create Shadow command

vssadmin Create Shadow /For=C: /AutoRetry=2

image

And checked the status again using this command

vssadmin list shadows

And bingo this was a success Smile

image

Next I ran the full backup again using the windows backup and all seems OK again

image

TIP:

If this still does not help in your case.

DELETE the Windows Backup job and recreate it again.

If this still does not help, check to see if the REMOTE shared folder is accessible.

Or test using the IP address instead of the DNS name for the destination SERVER or NAS.

Enjoy!!


Windows – File Recovery How To

July 3, 2020

Ever needed to recover a file in the past … ?

 

First make sure the System Protection is turned on !

image

Assign enough disk capacity to store the restore points !

The more you assign to more you can go back in time.

 

Next you can click on a file or a folder and select PREVIOUS VERSIONS tab

image

When you click OPEN if it is a folder it opens a cmd box ?

 

image

This is not so handy… Sad smile

 

 

SOLUTION :

Download the nice NirSoft Utility called ShadowCopyView

This way you can browse through the folders more easily !

image

Bonus is that you get more folders and snapshot to see than you see in the File Explorer Smile

 

TIP :

For a regular user this tool might be overwhelming…

 

But you can show him or her this option…

In any application where you can see the OPEN button and a drop down option, there is the SHOW PREVIOUS VERSION Smile

 

image

Even in older applications like Office 2010 Winking smile

image

Or you can wait for the latest and greatest Windows 10 version and download the File Recovery Tool

Enjoy !


Windows 2019 – Assign a fixed IP address based on a MAC address

June 9, 2020

I had a case were I needed to assign a Fixed IP address to 3D printer that had a Linux based OS.

There were 2 options :

– Configure the fixed IP on the linux OS. Which was not supported out of the box.

– Configure the DHCP server to assign a fixed IP address based on the MAC address of the device

image

So I went for the second option Winking smile

Solution :

1. find out the MAC address of the device in your network

This can easily be done using a (free) network scanner tool.

Or even better use PowerShell Smile

CLS

Get-NetNeighbor 

Once you see the MAC address list of your device

2. Open the DHCP Manager and add a RESERVATION based on the MAC Address

image

3. Reboot the device that had an DHCP address

And check the result

Enjoy!

 





Windows 2019 – Start Menu Management

May 20, 2020

When you need to customize the Windows Start Menu on Windows 2016/2019 or Windows 10

image

Solution :

To add folders and Shortcuts you need to go to :

%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs

Create a new folder and go back to check it.

image

Keep in mind that empty folders will NOT be visible ?! Sad smile)

Set the folder permission to add a Shortcut to your application.

image

To make it visible put at least 1 shortcut in the folder Smile

Took me a few hours to find out why my entries where not visible…

Enjoy !


Windows 2019 – hMailserver Migration

May 19, 2020

If you are interested to run hMailserver on the latest and greatest Windows Server 2019 ?

For this who are not familiar with hMailerServer look here :

https://audministrator.wordpress.com/2014/08/18/exchange-hmailserver-as-mail-relay-server/

https://audministrator.wordpress.com/2014/08/18/autoit-sending-a-mail-using-the-hmailer-com-library/

Look here for the migration steps below :

Prerequisites are :

– Install the Windows Server Features .Net Framework 3.5

  image

– Install the Windows MS SQL Compact redistributable

   https://www.microsoft.com/en-us/download/details.aspx?id=30709

   Even though MS is not listing this as a supported OS, it does work fine !

Migration Steps :

– After installing the 2 prerequisites you can test MS SQL Compact installation using this script

  https://audministrator.wordpress.com/2014/07/01/powershell-accessing-ms-sql-compact-edition/

– Install the latest version of hMailServer on the new server (best is to keep both version level the same !)

  So upgrade the existing installation on the old server if needed first.

  https://www.hmailserver.com/download?page=contactform

– Stop the service on the old server & the new server.

image

– Copy the database and the ini file to the new server

image

image

– Start the services again and login

image

PS :

Make sure that have set the correct permissions on the hMailServer folders to make the database connection possible

This procedure also works for Windows 2016 Smile

Enjoy!


Windows 10 – WSL Linux sub system upgrade & remove Legacy version

May 12, 2020

To remove the Ubuntu legacy version of WSL, installing Ubuntu 18.04 and next Upgrading to Ubuntu 20.04 !!

Including upgrading from PowerShell Core 6.1 preview to PowerShell Core 7.0

The short and fastest way is to remove the old version by running this command using Admin privileges :

wsl --unregister Legacy

And next download the appropriate version you want from the MS Store

image

You can find all steps here to migrate from the original Legacy version to the embedded Windows 10 Version of WSL

https://docs.microsoft.com/en-us/windows/wsl/install-legacy

This is the long story Smile 

Version Check

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

1. First find out which is the WSL command line options :

wsl -l -v

image

You can use this DOS Command to check the installed versions :

wsl -l --all

image

I have 2 versions installed on my machine.

And now I will check the UBUNTU Version as well as the PowerShell Core Version

cat /etc/os-release

image

pwsh --version

image

Remove LEGACY WSL Version

https://docs.microsoft.com/en-us/windows/wsl/install-legacy

wsl --unregister Legacy

image

Now we can check again an all versions have been removed Sad smile

image

Install WSL

So we need to manually install the latest version

https://docs.microsoft.com/en-us/windows/wsl/install-win10

Make sure you have the Sub System Feature enabled

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

image

See here on which version of UBUNTU to choose

https://devblogs.microsoft.com/commandline/upgrading-ubuntu/

If you install version 16 and want to upgrade to 18 you can run this command in WSL

sudo do-release-upgrade

I go for the later version 1804 at this moment.

Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing

image

Or you can download it from the MS Store too

Next you run this PS command

Add-AppxPackage .\Ubuntu.appx

Initialize WSL

Next you need to initialize the WSL

https://docs.microsoft.com/en-us/windows/wsl/initialize-distro

Go to the Start Menu and select the version you installed to start the ini

image

fill an account name and password for later reuse.

image

Check the installed version again

image

All looks fine again ! Smile

Upgrade to latest updates

Run this Linux command :

sudo apt update && sudo apt upgrade

image

PowerShell Core 

Next install PowerShell Core Version 7 again

image

See here :

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7

# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb

# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb

# Update the list of products
sudo apt-get update

# Enable the "universe" repositories
sudo add-apt-repository universe

# Install PowerShell
sudo apt-get install -y powershell

# Start PowerShell
pwsh

image

image

All is working fine Smile

image

for PowerShell Version 6 see here :

https://audministrator.wordpress.com/2018/07/04/powershell-core-installation-on-windows-10-ubuntu-linux-subsystem/

Upgrade from 18.04 to 20.4

sudo nano /etc/update-manager/release-upgrades

image

We don’t need to make any changes since we are upgrading to LTS

image

sudo do-release-upgrade -d
sudo do-release-upgrade -d

image

If you encounter errors during the upgrade like this :

image

image

See here how to solve them :

https://www.how2shout.com/how-to/how-to-upgrade-ubuntu-18-04-lts-to-20-04-lts-on-wsl-windows-10.html

Check Ubuntu version and PowerShell version again

image

image

All looks perfect again now after the Upgrade to Ubuntu 20.04 LTS Smile

Enjoy !


Windows 10 – Network Neighborhood XP like details view

April 23, 2020

Some of the old features that where available in XP have disappeared.

Like for example if you have PC’s and Servers in a network.

And had a description added to them using he System properties.

image

It would nicely appear if you opened the File Explorer and next opened up NETWORK.

image

In the XP time it was called my “Network Places”

SOLUTUION :

Here is how to get back.

Copy the My Network Places Desktop ICON as a shortcut to the Desktop

Next copy the shortcut to your windows 10 PC Desktop.

image

Open it and as you can see you have again all the details visible in the file explorer NETWORK section.

image

See Description between brackets Smile

So you can easily identify the user and server roles if you keep your administration clean !

Enjoy !


Windows Server 2019 – Hyper-V VMMS Errors Event ID 19100

March 25, 2020

On the internet I found this nice visual that helps understanding the Hyper-V and Backup Infrastructure.

image

After we installed a Hyper-V on a new Window Server 2019, everything seemed to be running OK.

But apparently after the 1st backup there where a lot of errors in the Event viewer ID 19100.

Error 0x8007052F

image

After that point no backups would run anymore, until the Hyper-V host was restarted.

Next backup cycle the same story Sad smile

So I checked the VSS writer to see if all was OK. But I saw that there was an error reported?

Microsoft Hyper-V VSS writer : Unexpected Error ?

image

So that did not help a lot ?

Next I ran some VSS diagnostics apps, but no errors found ?

VSSDoctor :

image

VssDiag :

image

Everything pointed out to be OK, but it was not … Sad smile

Solution :

Conclusion was that this could be nothing else then a Permission issue.

So I ran the Resultant Set of Policy – rsop.msc

image

I noticed that some policies where overruled by a Domain Policy so I started cleaning up.

But still no success until I noticed that the Local Log on As a Service Policy again I clean this one up.

And check the local Policy settings for this policy using SecPol.msc

image

I noticed that the ‘NT VIRTUAL MACHINE\Virtual Machines’ was not in there ?

After adding the NT VIRTUAL MACHINE\Virtual Machines to the LOCAL Policy ‘Allow run as a Service’

All Backup problems were solved. Smile

TIPS :

Make sure the Hyper-V Guest Integration Services and the Backup (Volums Shadow Copy) are active as well

image

And the CheckPoints are set like this

image

See also here :

https://audministrator.wordpress.com/2020/03/12/windows-server-2019-hyper-v-backup-error-event-id-19100-event-id-32/

Enjoy !


Window Server 2019 – Error DCOM Event ID 10000

March 19, 2020

On a Hyper-V Guest you might see the Event Id 10000 DCOM error

image

Vdsldr.exe is a “Virtual Disk service loader”

This event look very similar to the DCOM Error Event ID 10016 ?

See here for more info.

I go and open the registry to look for the GUID {9C38ED61-D565-4728-AEEE-C80952F0ECDE}

image

Also make note of the AppID GUID {5364ED0E-493F-4B16-9DBF-AE486CF22660}

Use the Reg Query command to check it :

reg query "HKEY_CLASSES_ROOT\CLSID\{9C38ED61-D565-4728-AEEE-C80952F0ECDE}" /ve
 
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{5364ED0E-493F-4B16-9DBF-AE486CF22660}" /ve

image

SOLUTION :

1. Open the Component Services Manager using the DCOMCNFG command

And look for Virtual Disk Service Loader

image

Next check the AppId GUID is matching the one in the Event Viewer

image

This is the one we found in the registry Smile

2. Check the Security for this DCOM App

Go to the Security Tab to see who has access…

image

Hmm the buttons are greyed out !

That is that reason why we get errors reported… !

image

See on the AppID GUID permission is set the TrustedInstaller

Similar as to the 10016 Event Errors you can fix the restricted access the same way.

3. Fix the Access

First in the Registry you need to change the OWNER of the RegKeys to the Administrator,

Instead of the TrustedInstaller.

And set the Adminstrator to have FULL CONTROL

image

If this still does not help go back to the DCOMCNFG and add Full Control for the

Administrator to the LAUNCH and ACTIVATION Permissions

image

Enjoy!