1080p on 1200p display

In 2023 a slew of gaming laptops were launched with a 16:10 ratio resolution. This gives more screen real estate for people like me who also do development/coding.

When you do a game capture like Nvidia’s game capture, with a screen resolution based of 16:10 and import that into video editing software like DaVinci Resolve, it will add black bars if you set the project resolution to 16:9 ratio.

The following solutions will result in a game capture of 16:9 ratio. In addition to this, this also will use the native resolution of the monitor since the scaling is applied at the GPU level and not in the monitor.

NVIDIA

AMD

Windows 11 – Apps keep pinning to the taskbar

In certain laptops/desktops, you will be able to see a few apps keep pining themselves to the taskbar after each reboot.

For me, this happens in my MSI-manufactured Windows 11 laptop.

Do the following to fix this annoyance.

  • Once you have logged into your Windows 11 operating system
  • Press “Win + R” keys
  • Type in “%USERPROFILE%\AppData\Local\Microsoft\Windows\Shell”
  • This will open up the folder “Shell”
  • Within the folder, you will find a file named “LayoutModification.xml”
  • Create a copy of that file and rename it to “LayoutModification-Original.xml.bak”
  • Now open that file with the “Notepad” app.
  • Search for the word “CustomTaskbar” and you should be able to see the following lines.
<CustomTaskbarLayoutCollection>
    <defaultlayout:TaskbarLayout>
      <taskbar:TaskbarPinList>
        <taskbar:UWA AppUserModelID="9426MICRO-STARINTERNATION.DragonCenter_kzh8wxbdkxb8p!App" />
        <taskbar:UWA AppUserModelID="9426MICRO-STARINTERNATION.CreatorCenter_kzh8wxbdkxb8p!App" />
		<taskbar:UWA AppUserModelID="9426MICRO-STARINTERNATION.BusinessCenter_kzh8wxbdkxb8p!App" />
		<taskbar:UWA AppUserModelID="9426MICRO-STARINTERNATION.MSICenter_kzh8wxbdkxb8p!App" />
        <taskbar:UWA AppUserModelID="Microsoft.GamingApp_8wekyb3d8bbwe!Microsoft.Xbox.App" />
      </taskbar:TaskbarPinList>
    </defaultlayout:TaskbarLayout>
 </CustomTaskbarLayoutCollection>
  • In the above case, there are 5 line items (4,5,6,7 & 8) which start the relevant apps.
  • Remove the necessary lines and save the file.
<CustomTaskbarLayoutCollection>
    <defaultlayout:TaskbarLayout>
      <taskbar:TaskbarPinList>
      </taskbar:TaskbarPinList>
    </defaultlayout:TaskbarLayout>
 </CustomTaskbarLayoutCollection>

Reboot the system and those apps shouldn’t pin themselves in the next restart.

Outlook password not working on Thunderbird

When configuring Thunderbird with Outlook 365 account, the password fails when using IMAP account type.

I use multi factor authentication and hence this is little difficult than using plain old password. The following configuration is the recommended method across almost all articles in the Internet, but still the password will fail. There is a solution which I came across in the forums, which worked for me and I’m documenting it here.

IMAP configuration

Incoming server configuration

  • outlook.office365.com
  • SSL/TLS
  • Port 993
  • OAuth2
  • Full email address as username

SMTP server configuration

  • smtp.office365.com
  • STARTTLS
  • Port 587
  • Full email address as username

User configuration at Microsoft Admin Center

  • Go to tenant admin center. The URL at the time of writing this article is https://admin.microsoft.com.
  • Go to Users > Active users.
  • Click/press on the user who has get the incorrect password error.
  • In the properties panel, click/press the “Mail” tab.
  • Under the “Email apps” section, click the link “Manage email apps”.
  • Look at the check box “Authenticated SMTP”.
  • Check it if not already checked. If already checked, un check it, press save changes, follow the above steps and check it again.
  • Finally save the changes.
  • Wait for some 5 to 15 minutes.

Now try adding the account in Thunderbird and most probably this should resolve the issue.

For me the app password didn’t work but the above with OAuth worked!

Logon attempt failed for remote desktop Windows 10

Microsoft Windows 10 Logo

Scenario

  • My remote PC is a Windows 10 Pro v1809.
  • The remote PC Windows user is an Office 365 user.
  • I’m trying to login to my remote PC and I get the error “Logon attempt failed”.
  • The following are the various user IDs I tried and none of them worked.
    • user@domain.com
    • AzureAD\user@domain.com
    • AzureAD\user
The logon attempt failed

Solution

  1. Save an RDP connection as file with parameters like name of the PC.
  2. Open the RDP file using a text editor like notepad.
  3. Modify the entry “authentication level” to “authentication level:i:0”
    1. Make sure the “Allow connections only from computers running Remote Desktop with Network Level Authentication” is unchecked in the remote machine’s settings.
  4. Add the entry “enablecredsspsupport:i:0”.
  5. Now save the file.
  6. Run the RDP file and it should connect to remote machine and show you the login screen of the remote machine
  7. Type in the username as AzureAD\user@domain.com
  8. Password as login password and not the Windows PIN.
  9. Now you should be able to login.

Refer here for more information.

Windows 10 – Change Task Bar & Start Menu Accent based on current wallpaper automatically

Windows 10 is awesome and currently one of the feature which I like is, changing the task bar & start menu accent colour based on current wallpaper.

To invoke this, do the following.

  1. Right click on empty desktop
  2. Click “Personalize” menu item
  3. Select “Colours” tab
  4. Enable or toggle on “Automatically pick an accent colour from my background”
  5. Enable or toggle “Show colour on Start, taskbar and action centre”
  6. Optionally you can make Start Menu, taskbar & action centre transparent by toggling the last option.

Windows 8 Pro’s Boot-to-VHD is a good news for an indie SharePoint developer !

SharePoint & Windows

SharePoint & Windows

A post describing SharePoint’s high resource usage and how Windows 8’s Boot to VHD will help to run SharePoint host with more dedicated resource.

Trailer….

For people like me who has to depend on resource hungry SharePoint servers, life is difficult as a developer and IT designer.

Most of the time we have to run the server inside a virtual environment and most of the time it would be a standalone server.

The problem….

Initially with SharePoint 2010 you could get away with at-least 6GB RAM allocated to a guest OS. But with SharePoint 2013 you require at least 12GB for a better experience and most of the machines come with 8GB or 16 GB RAM.

The problem is, your host OS will take at least 2GB RAM which for SharePoint can make life and death kind of experience even though Windows is perfectly capable of keeping SharePoint alive with paging (Virtual RAM) and have the storage drive on a never ending marathon run !

For virtual environment, the following are the options we generally have.

  • Microsoft Virtual PC (Free)
  • VMWare Workstation (Costly)
  • Oracle Virtualbox (Free)
  • Windows Server 2008/2012 R2’s Hyper-V (Super Costly)

Out of these, VirtualPC and Hyper-V natively use VHD container format for guest OS. Others too have these (Thanks to Microsoft’s Open Specification Promise) but mostly they use proprietary format.
When Windows 7 was rolled out, the Enterprise & Ultimate editions had the native Boot-to-VHD support.

What is Boot To VHD ?
Refers to the ability of a physical computer to mount and boot from an operating system contained within a VHD – (PS: Shamelessly copied the text from wikipedia)

Again to the problem….
Consider a scenario where you own a VM host system with 8GB RAM and run a VM guest with 6GB RAM for SharePoint 2010. This worked mostly fine. Then comes the SharePoint 2013 which requires even more ram, at-least 2GB in addition. Now you are in soup, you can wait forever to see the guest OS, aka Windows Server 2008 R2 or Windows Server 2012’s desktop to show up!

Solution….
Gain as much RAM as possible from host or upgrade the system to have more RAM. You will be in luck for desktop systems. Laptops, you are mostly in trouble.

Windows 7…..
Luckily with Windows 7(Enterprise/Ultimate) you could boot physical computer to a VHD and utilize all the resources. That’s good news, now you have all the RAM available for the SharePoint. The bad news is Enterprise is available for volume licensing only and Ultimate prohibitively costly.

Windows 8…..(forget Windows 8 RT, that thing can’t even run a standalone app!, but still a good OS for daily basic usage, so Microsoft is forgiven!)
Then comes Windows 8 with even more simpler editions. A regular version, professional version & an enterprise version. Compared to Windows 7, Windows 8 Pro is affordable and can be bought by an individual.
The best news is, Windows 8 Pro comes with Client Hyper-V and supports Boot To VHD.

So now as an indie SharePoint developer, you have a host OS which can be bought, has a virtualization capability and supports Boot To VHD.

Assuming you bought the host OS, i.e. Windows 8 Pro, its time to utilize it for better SharePoint development experience.
PS: I am going to explain only Boot-to-VHD part. Enabling Hyper-V in Window 8 Pro or installing SharePoint are out of scope for this post. Get help from trusted friend Google’s Search or Microsoft’s Bing.

After a long story…Main Picture…..

Enabling boot-to-VHD…..

  1. Create a VM Guest using Hyper-V and make a note of the location where the VHD file is located.
  2. In VM Host, go to Control Panel, Administrative Tools, Computer Management. Go to Disk Management under Storage.




  1. In Action menu, click Attach VHD. Now you should have a volume with drive letter. Make a note of the drive letter. In this case it’s D:\



  1. Now launch a command prompt as administrator.
  2. Take a backup of current boot information by using the following command
bcdedit /export C:\bcdcurrentbackup

  1.  Now let’s add the VHD’s Windows to boot by using the following command (The drive letter we noted will be used here)
bcdboot D:\Windows

  1.  Reboot the machine and you should be able to see the multi boot screen.

  1. Choose the SharePoint’s guest OS to boot.

You can use bcdedit command to rename the description of the Windows in multi boot screen.

Removing boot-to-VHD…

  1. Open command prompt in admin mode
  1. As mentioned in point 5 above take a backup of the boot system file
  2. View list of current boot entries by typing the following
bcdedit



  1. Make a note of the guid in the entries. In this case it’s {4ff0aa40-b17f-11e3-beaa-bc5ff4cf029e}
  2. Delete the entry by typing the following command
bcdedit /delete {4ff0aa40-b17f-11e3-beaa-bc5ff4cf029e}