Wednesday, May 9, 2018

Setting a proxy for a standalone Microsoft .Net application

  1. Find the applications install location (or .exe location). If you are using a shortcut, you can right click, and check the properties to find this place.
  2. Locate your applications .config file. Typically this will be in the same folder as your .exe; For example, for myappname.exe, you should be able to see myappname.exe.config in the same directory
  3. Create one if there there is only not already present. Make sure to name it myappname.exe.config
  4. If creating a new file, Open the newly created file in notepad, and paste the below into it. Make sure to change proxyservernameproxyserverport in your environment
  5. if file already exists, add the defaultProxy section as shown below and save file
  6. Restart the application
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
      <proxy proxyaddress="http://proxyservername:proxyserverport/" bypassonlocal="false" usesystemdefault="false" autoDetect="false" />
    </defaultProxy>
  </system.net>
</configuration>


Adding a new resource to Microsoft High Availability Cluster

The following was tried on Windows Server 2012 R2

Here I am giving an example of a Service; you can start an application or a script or a multitude of options that comes with the cluster software

1.  Bring up the Failover Cluster Manager

1.Right click on computer, click manage
2.Select Tools à Failover Cluster Manager

2.  Adding Role

1.Expand down to Roles
2.From Right side, click Create Empty Role
3.“New Role” is created
4.Click on “New Role”
5.Select properties, and set Name as “My Service” or any name you prefer

3.  Adding your service

1.Right Click on newly created “My Service” Role
2.Pick Option “Add Resource”à Generic Service
3.Pick “Your Servie To Use” from list and click Next, Next and Finish

4.To Start the service, Right click again on “My Service” and select “Start Role”

Turn on Windows 11 Fast Boot

If windows starting is slow, to enable windows 11 fast startup/boot,  Press Windows + R, type powercfg.cpl, and hit Enter.  This will direct...