Author Archives: abatishchev

How to support different domain names in SSL behind reverse-proxy in IIS ARR

When you don’t want to enable SSL offloading so both internet facing web site and the one behind reverse proxy are access over SSL you will receive domain name mismatch. The solution is simple. Either: enable SSL Offloading enable Require … Continue reading

Posted in Infrastructure | Tagged , | Leave a comment

Troubleshooting site-to-site connection in Azure: error 797, 663.

When I created a site-to-site connection in Azure Networks (classic) and tried to connect to the gateway from my on-premise VPN server running on virtual Windows Server 2012 R2 for the first time I found the following error in Application … Continue reading

Posted in Infrastructure | Tagged , | Leave a comment

Windows Store apps minimize to taskbar immediately after lunch

I don’t use Windows Store apps often, actually I don’t use them at all. I just like when the default MSN Weather compactly is present in the Start menu and shows current location’s temperature. Just for fun. But recently I … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Detect whether or not an application is installed on the remote server

When you manage a windows server in core mode you can’t just open Control Panel -> Programs and Features to see whether or not particular application is installed. Here’s the command for it: wmic /node:server product where “Name LIKE ‘%name%'” … Continue reading

Posted in Infrastructure | Tagged | Leave a comment

How to install PowerShell using PowerShell

This cmdlet is tricky to find in Google because searching for install powershell using powershell won’t give you much. So here it is: Install-WindowsFeature PowerShell or Install-WindowsFeature PowerShell-V2 P.S. How to find exact name of particual Windows Feature to install? … Continue reading

Posted in Infrastructure | Tagged | Leave a comment

Replacing the for loop with Seq.iter

Here’s the initial function in C#: public string BuildQuery(IEnumerable<KeyValuePair<string, string>> args) { var coll = HttpUtility.ParseQueryString(String.Empty, _urlEncoder); foreach (var arg in args) { coll.Add(arg.Key, arg.Value); } return coll.ToString(); } First I rewrote it in F# the following pretty naΓ―ve way, … Continue reading

Posted in Programming | Tagged | Leave a comment

How to make Beyond Compare the default diff and merge tool in Git

Here’s a brief summary of the official documentation: Don’t ask me why BC4 has the shortcut called BC3 still. Go figure. And happy merging! πŸ™‚

Posted in Programming | Tagged | Leave a comment

Certificate enrollment policy server URI format

If you’re trying to request a certificate from a non-domain joined computer using Certificates console (CertMgr.msc or CertLM.msc) then you need to install on the server that hosts your Certificate Authority the following components: Certificate Enrollment Policy Web Service Certificate … Continue reading

Posted in Infrastructure | Tagged , | 2 Comments

How to configure RDG behind NAT

This week’s problem was to make working Remote Desktop Gateway located behind a NAT. Here’s the lessons learned: Issue an SSL certificate with the subject matching public DNS name (FQDN) Use the default port 3389/TCP, otherwise SSL certificate’s name won’t … Continue reading

Posted in Infrastructure | Tagged , | 5 Comments

How to start using recently uploaded Azure disk

After you uploaded a vhd and before you can start really using it you must mark it as a data disk or as an OS disk using the following command: Add-AzureDisk -DiskName ‘myvhd.vhd’ -MediaLocation http://example.blob.core.windows.net/container/myvhd.vhd -OS Windows

Posted in Infrastructure | Tagged , | Leave a comment