Run Task Manager as Administrator

WindowsI was deploying a new version of a Microsoft Dynamics GP Dexterity modification for a client recently and ran into a problem caused by a user who had disconnected their RDP session to the server instead of logging off; this had left a lock on the dictionary file as they had also not closed Microsoft Dynamics GP.

The server logon requires individual logons with MFA enabled, but my user is not an administrator on the server. As I was doing the deployment out of hours, I was not able to call the user and ask them to log off, but instead needed to kill their session and close the client. With my user account being an ordinary one, I didn’t have permissions to kill the session, but I did have access to a domain admin account which did have th permissions.

The following command will let you specify the user account with which to start Task Manager allowing you to run it under an admin account when yours isn’t:

runas /user:{username} taskmgr

After entering the command, you need to enter the password for the admin account you used.

Windows rotation lock missing

WindowsI use a small convertible laptop (the screen rotates through 360o to turn into a tablet) for a lot of web browsing; occasionally I convert it into a tablet and switch allow the screen to rotate from landscape to portrait mode. However, when I tried to do this by switching off the Rotation Lock option the other day, the option in the action centre was missing; it is usually between Tablet Mode and Network:

Rotation Lock missing from the action centre

Continue reading “Windows rotation lock missing”

Move SSL certificate to a different store

WindowsIn the last post, I mentioned moving an SSL certificte between stores and thought it might be worth showing how to do it.

Launch the Microsoft Management Console (Win+R and type mmc) and click the File menu and select Add/Remove Snap-in…:

Open Snap-in menu

Continue reading “Move SSL certificate to a different store”

Manifest to manage scaling for for High DPI displays

Microsoft Dynamics GPWith more clients working remotely, there has been an increase in the number of people asking me about Microsoft Dynamics GP not scaling text properly. The problem can occur in the text showing either very small or very large (with different versions of Microsoft Dynamics GP handling fonts differently they can display with different problems):

Dynamics GP with text showing too large

This issue has been raised with me by users with the issue on local clients running on high DPI devices like the Microsoft Surface or when using them to access Microsoft Dynamics GP via RDP.

Fortunately, there is a known workaround available for this issue. Steve Endow on his old Dynamics GP Land blog post about resolving the issue using a manifest file. Then in 2018, Nathan Hayden posted about a similar approach for remote desktop connections.

The first step is to create a manifest file called Dynamics.exe.manifest or Mstsc.exe.manifest (depending on whether you’re fixing the issue for a local or remote desktop accessed client) containing this XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<dependency>
  <dependentAssembly>
    <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*">
    </assemblyIdentity>
  </dependentAssembly>
</dependency>
<dependency>
  <dependentAssembly>
    <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="amd64" publicKeyToken="1fc8b3b9a1e18e3b">
    </assemblyIdentity>
  </dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
  <security>
    <requestedPrivileges>
      <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
    </requestedPrivileges>
  </security>
</trustInfo>
<asmv3:application>
  <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
    <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
  </asmv3:windowsSettings>
</asmv3:application>
</assembly>

This file should be placed next to the exe file to which it should be applied. By default, this will be %ProgramFiles(x86)%\Microsoft Dynamics\GP (adjust based on your version or install folder) or %windir%\SysWOW64\ depending on if the fix is for a local or remote desktop accessed client.

Then use the below to create a manifest.reg file to add the DWord registry entry which tells Windows to prefer and use the external manifest just created:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide]
"PreferExternalManifest"=dword:00000001

Once you’ve created the registry file above, double-click it to add the DWord to the registry.

When you next launch Microsoft Dynamics GP or connect to the RDP session and launch it, the text in the client should display correctly.

Hide Desktop Icons

WindowsA few years ago I used to have a Windows desktop covered in icons, which was almost a throwback to the old Windows 3 Program Manager (I think that’s what it was called, but I had to look it up). In recent years, I’ve tended to go for a much cleaner look to the desktop and use a lot of shortcuts to start applications instead.

I dislike having the Recycle Bin on the desktop, which is there by default, but because Microsoft have been shuffling settings around a lot, I never remember where the setting is to turn it off, so this post is a reminder.

To switch off (or on) the desktop icons, launch the Themes Settings applet by right-clicking the desktop and select Personalise (or launch it using the ms-settings:themes URi).

When launched, select Desktop icon settings on the right (or at the bottom if the window is narrow):

Themes settings window

Continue reading “Hide Desktop Icons”

Separately compress all sub folders

7-ZipI started using WordPress for this blog when it launched in June 2011 until last year when, with Gutenberg on the horizon, I migrated to ClassicPress. This migration was easy as ClassicPress is a hard-fork of WordPress 4.9. As part od the migration I opted to rewrite all of my plugins to improve them and make them more secure.

I have 32 publically available plugins for ClassicPress. I’ve recently made changes to all of the plugins which means I need to make a release of them.

This partly done by committing the changes to Git Hub and making a tag, but you also need to add a zip file. There are commands to do this automatically on GitHub, but I am quote new so am opting to create the zips myself and upload them.

To do this I wanted to automatically compress all of the plugin folders, but exclude any hidden folders (such as the .git folder). I did some exploring and found the required command on Stack Overflow using 7-zip:

for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a -xr!.git\ -xr!*~ "%%X.zip" "%%X\"

The question which had previously been asked was this one and the two answers I used were this and this.

Hands On with Microsoft Dynamics GP October 2019 Release: Microsoft Dynamics GP client prerequisites

Microsoft Dynamics GPThis post is part of the series where I am going hands on with the new version of Microsoft Dynamics GP.

Before installing any of the Microsoft Dynamics GP components, you need to make sure the system requirements are met. On top of this there is also some prerequisites which need to be met before the Microsoft Dynamics GP client or other components can be installed.

Most of these prerequisites can be handled by installer process, there is one which cannot; this is the .NET Framework 3.5 feature which is installed using the Add Roles and Features Wizard available via Server Manager on Windows Server or using Turn Windows features on or off accessible via Program and Features on Windows.

If the PC or server you’re planning to install Microsoft Dynamics GP onto has an Internet connection, then the .NET can be installed simply by using the wizard. However, if, for whatever reason, you don’t have an Internet connection available, the install process isn’t quite that smooth.

However, for both server and PC you can do an offline install and I have blogged about this several years ago:

The above articles are for older versions of Windows Server and Windows, but the process is exactly the same on current versions.

Hands On with Microsoft Dynamics GP October 2019 Release: System Requirements

Microsoft Dynamics GPThis post is part of the Hands On with Microsoft Dynamics GP October 2019 Release series where I am going hands on with the new version of Microsoft Dynamics GP.

The October 2019 release of Microsoft Dynamics GP largely has the same system requirements as Microsoft Dynamics GP 2018 R2 with the addition of the following:

  • Windows Server 2019
  • SQL Server 2019
  • Office 2019

Click to show/hide the Hands On with Microsoft Dynamics GP October 2019 Release Series Index

An authentication error has occurred; this could be due to CredSSP encryption oracle remediation

Windows ServerThis error first came up early in 2018, but I’ve stumbled across it a couple of times recently and had to hunt around for the solution, so I am posting it here so I know where to find it next time.

Microsoft released an update to address vulnerabilities for the Credential Security Support Provider protocol (CredSSP) used by Remote Desktop Protocol (RDP) connections for Windows clients and Windows Server.

Since that hotfix came out, if you try to connect from a patched machine to an unpatched one, you receive this error:

CredSSP error

Remote Desktop Protocol

An authentication error has occurred.
The function requested is not supported.

Remote computer: {server name}
This could be due to CredSSP encryption oracle remediation.

Continue reading “An authentication error has occurred; this could be due to CredSSP encryption oracle remediation”

Enable Bitlocker on Removable Drive

WindowsWhen I joined ISC Software I was given a new laptop and associated peripherals which included a removable 1TB SSD. As this SSD travels with me, one of the first things I did was encrypt it with BitLocker.

To encrypt a drive with BitLocker, launch Windows Explorer, right click on the drive and select Turn BitLocker On. When the BitLocker Drive Encryption window appears, click Encrypt this drive using BitLocker Drive Encryption:

Bitlocker Drive Encryption

Continue reading “Enable Bitlocker on Removable Drive”