Author Archives: Computer-Tech-Blog

Using Nginx as a load balancer

Here’s a look at how nginx does basic load balancing : Basic http load balancing: This configuration will send 50% of the requests for www.yoursite.com to yoursite1.yoursite.com and the other 50% to yoursite2.yoursite.com. upstream yoursite { serve...

Posted in Networking | Leave a comment

Script to query a recursive DNS record

-I wrote this script around the following command:“nslookup -debug server1.devcorp.com”-The above command will display all the servers involved in resolving the DNS name in a recursive domain.-What the script does is cleans up the output ...

Posted in Scripting | Leave a comment

Getting a WWN from a Fiber Channel card

The below command can be used starting from server 2012 and up and it will list the WWN of a storage controller. Server 2012 or higher PortAddress is the WWN on this dual port FC adapterPS C:\Get-InitiatorPort Server 2008 or … Continue reading...

Posted in Scripting | Leave a comment

How to Export and Import Sites and Application pools in IIS

I recently had to move a lot of sites and app pools from server 2008 (IIS 7) to server 2016 (IIS 10) and found the below very useful. One issue i found when exporting all the sites is if the … Continue reading →...

Posted in Scripting | Tagged , | Leave a comment

Command to list Terminal Server Licensing servers in Active Directory Domain

Below command will list all the Terminal Server License RDS servers in an Active Directory Domain. I ran the below from my laptop joined to AD, if it doesn’t work just run it from the DC itself. In the output … Continue reading →...

Posted in Microsoft | Tagged , , | Leave a comment

HTTP Error 404.3 – Not Found when browsing .svc .Net pages

I was migrating an IIS .NET 2.0 application from server 2008 to 2016 and ran into the below error “404.3 – Not Found, The page you are requesting cannot be served because of the extension configuration. If the page is … Continue re...

Posted in Microsoft | Leave a comment

How to Fix ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY on server 2016

I recently moved a .NET 2.0 web site from server 2008 to 2016 and ran into the below issue. This was on a security hardened server where certain ciphers and security protocols are disabled. This site can’t be reachedThe webpage … Continue re...

Posted in Microsoft | Tagged , , | Leave a comment

You cannot enable the Microsoft .NET Framework 3.5 feature on Windows Server 2012 R2

I ran into a weird issue on a freshly installed fully patched Windows Server 2012 R2. I tried to enable the the .NET Framework 3.5 feature but kept getting failures that the source files could not be found from the … Continue reading →...

Posted in Microsoft | Tagged , , , | Leave a comment

Enable TLS 1.1 and TLS 1.2 as default secure protocol in WinHTTP

I recently ran into an issue where a legacy VB application was trying to connect outbound with TLS 1.0. The application was moved from a Windows 2003 server to Windows server 2012 which by default uses TLS 1.2 as its … Continue reading →...

Posted in Microsoft | Leave a comment

Sending an e-mail with PowerShell

This is really useful if you want to test if a server is able to send out an e-mail through SMTP. Or just want to schedule a task to send out an e-mail once a month, Here are the details: … Continue reading →...

Posted in Microsoft, Scripting | Leave a comment