Install Windows Terminal on Windows Server 2022

Windows Terminal KB ID 0001827

Problem

I’ve been aware of Windows Terminal for a while, I’ve just never felt the need to set it up. Most of my work for the website involves me taking screenshots on Windows Server OS. So, when I decided to take a look at it I had to jump through a few hoops to get it to work, in the words of Juan Sánchez Villalobos Ramírez, Chief metallurgist to King Charles V of Spain, “I would save you that pain”. (If you get that reference, we can be friends).

Solution: Windows Terminal on Server 2022

So, Windows Server OSs cannot access the Windows Store, so you need to manually download the app packages (msibundle) then install them with PowerShell. If you want to install on Server 2022 then don’t download the Windows 11 package, if you do and try and install it you will see something like.

Deployment failed with HRESULT: 0x80073CFD, A Prerequisite for an install could not be satisfied. Windows cannot install package Microsoft.WindowsTerminal_1.16.10262.0_x64__8wekyb3d8bbwe because this package is not compatible with the device. The package requires OS version 10.0.22000.0 or higher on the Windows.Desktop device family. The device is currently running OS version 10.0.20348.1668

I walked back though a few versions before I realised you need to download the Windows 10 versions. go here and check for the latest version.

Previous Windows Server Versions: In some cases you may need to download and install the Preinstall kit (See above page for download link) Simply download it as a Zip file, extract it, and then use Add-AppxPackage to install the msibundle for that first. But for Server 2022 you don’t need to do that.

Firstly, you need to download another package as it’s a pre-requisite, the following commands will download and install it.

Note: Ensure C:\Temp Exists!

[box]

Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -outfile C:\Temp\Microsoft.VCLibs.x86.14.00.Desktop.appx
Add-AppxPackage C:\Temp\Microsoft.VCLibs.x86.14.00.Desktop.appx

[/box]

Once complete you can download and install the Windows Terminal Package (Check for the latest version and change the URL accordingly).

[box]

Invoke-WebRequest -Uri https://github.com/microsoft/terminal/releases/download/v1.16.10261.0/Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle -OutFile C:\Temp\Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle 
Add-AppxPackage -path C:\Temp\Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle

[/box]

Now you can launch Windows Terminal.

Related Articles, References, Credits, or External Links

NA

Exchange 2016 (& 2013) Enable Circular Logging

KB ID 0001224

Problem

Let’s be clear about this, the correct way to flush/clear the Exchange logs is to perform a backup of the mailbox database in question, with an ‘Exchange aware’ piece of backup software. This will clear down the logs properly.

Why Do We Need Logs?

Well I’m glad you asked, if there’s a problem, and we lose the database, we can ‘play’ the log files back into the database to restore any messages that were ‘lost’ e.g. because you restored from a backup taken at 22:00 hours last night, and it’s now 10:00 hours the following morning. The logs let us get the email that came in after the backup had finished. This is why after a successful backup the logs are usually cleared.

Stop Waffling My Servers Down!

OK so you put your log files on a system drive? It’s filled up with logs, and taken the server down. Either because you’re a doofus, or you are doing an Exchange migration, and now theres a ton of logs, and you didn’t follow my Exchange 2016 Migration Walkthrough.

Solution

Luckily I’ve caught this one early! (There’s an Exchange 2012 to 2016 migration going on, hence the large amount of space taken by Exchange log files).

Enable Exchange 2016 / 2013 Circular Logging from EAC

From within the Exchange Admin Center > Servers  > Databases > Select your Mailbox DB > Edit > Maintenance > Enable Circular Logging > Save.

Then you need to restart the ‘Microsoft Exchange Information Store’ service, (run services.msc).

Enable Exchange 2016 / 2013 Circular Logging from EAC

Run the following commands;

[box]

Set-MailboxDatabase {Database-Name} -CircularLoggingEnabled $True
net stop "Microsoft Exchange Information Store"

net start "Microsoft Exchange Information Store"

[/box]

Note: To disable it again.

[box]

Set-MailboxDatabase {Database-Name} -CircularLoggingEnabled $False
net stop "Microsoft Exchange Information Store"

net start "Microsoft Exchange Information Store"

[/box]

Now things should look a bit tidier.

Don’t Forget: Logging is a good thing TURN IT BACK ON!

Related Articles, References, Credits, or External Links

NA

NetScaler – Locate the Host ID

KB ID 0001187 

Problem

To apply a license to your NetScaler you need the supply the Host ID to the licensing portal. A quick internet search yielded the commands, but the were not working?

Solution

Note: If this is a new installation, the username and password will both be set to nsroot.

Whatever I was reading, didn’t tell me I needed to drop to shell mode!

[box]

shell
lmutil lmhostid

[/box]

As you can see this ones 0050569d5a96, (which I saw listed elsewhere are the appliances MAC address, however pinging the device yelled a different (similar) MAC address.

 

Related Articles, References, Credits, or External Links

NA