Posts

HTTP host-based load balancing

HTTP host-based load balancing When configuring HTTP or HTTPS load balancing you can select HTTP host load balancing to load balance HTTP host connections across multiple real servers using the host’s HTTP header to guide the connection to the correct real server. HTTP 1.1 includes the concept of a virtual server which allows a HTTP or HTTPS server with a single external IP address to serve requests for multiple DNS domains by using the mandatory  Host:  header in a HTTP request to indicate which DNS domain the request is destined for. FortiOS can load-balance HTTP and HTTPS connections among multiple real servers using the  Host:  header to guide the connection to the correct real server. The host load balancing method allows a real server to specify a  http-host  attribute which is the domain name of the traffic for that real server. Each real server can only specify a single domain name. The same domain name can appear in more than one real server b...

HP physical server RAID configuration - Smart Storage Administrator CLI

Smart Storage Administrator CLI is the tool for configuring RAID in new model HP physical servers. Example model : ProLiant DL360 Gen10 (hp_proliant_dl360) Launching : Start -> Windows System ->  Smart Storage Administrator CLI Commands: ctrl all show Shows configurations of all controllers Example array controllers : HPE P408i-a SR Gen10 in Slot 0 (Embedded) ctrl all show config Sample output: HPE Smart Array P408i-a SR Gen10 in Slot 0 (Embedded)  (sn: PEYHC0DRHCP7E7)    Internal Drive Cage at Port 1I, Box 3, OK    Internal Drive Cage at Port 2I, Box 3, OK    Port Name: 1I (Mixed)    Port Name: 2I (Mixed)    Array A (SAS, Unused Space: 0  MB)       logicaldrive 1 (279.37 GB, RAID 1, OK)       physicaldrive 1I:3:1 (port 1I:box 3:bay 1, SAS HDD, 300 GB, OK)       physicaldrive 1I:3:2 (port 1I:box 3:bay 2, SAS HDD, 300 GB, OK)    Array B (...

Windows Servers versions comparison

Using Proxy to Install-Module

Find-Module -Name PowerShellGet   # To look for a module Find-Module -Name PowerShellGet | Install-Module  # To look for a module and install that Using Proxy to connect to Internet: Import the proxy settings from Internet Explorer parameters: netsh winhttp import proxy source=ie or set them manually: netsh winhttp set proxy "192.168.0.14:80" To view current proxy setting: netsh winhttp show proxy To reset the winhttp proxy : netsh winhttp reset proxy If you are signed in using your domain account and your proxy supports NTLM/AD authentication, you can use the credentials of the current user to authenticate on the proxy server (you won’t have to enter your username/password): $Wcl = new-object System.Net.WebClient $Wcl.Headers.Add(“user-agent”, “PowerShell Script”) $Wcl.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials If you have to authenticate on the proxy server manually, run the following commands and specify use...

Get Powershell Foreground colors

Below Powershell command lists all foreground colors available: [Enum]::GetValues([System.ConsoleColor]) Example: PS C:\> [Enum]::GetValues([System.ConsoleColor])Black DarkBlue DarkGreen DarkCyan DarkRed DarkMagenta DarkYellow Gray DarkGray Blue Green Cyan Red Magenta Yello Ref :  https://stackoverflow.com/questions/20541456/list-of-all-colors-available-for-powershell Get the colours displayed in screen with below script: $colors = [ enum ]:: GetValues ([ System . ConsoleColor ]) Foreach ( $bgcolor in $colors ){ Foreach ( $fgcolor in $colors ) { Write - Host "$fgcolor|" - ForegroundColor $fgcolor - BackgroundColor $bgcolor - NoNewLine } Write - Host " on $bgcolor" }

Run as System account

Below is a way to run as System account in Windows computers: psexec -i -s cmd.exe -i  : Interactive -s  : System account cmd.exe : launch command window to execute other commands To run Powershell as system account: psexec -i -s powershell.exe

Solution for RDP connection issue due to TLS version

Issue : RDP connection is unsuccessful from Windows 7 or Windows 2008 R2 to TLS1.0 disabled servers. Solution : Enable TLS1.2 in the server and reboot. Refer this link for TLS versions:  TLS versions Install this hotfix from Microsoft in the client computers and reboot: https://support.microsoft.com/en-sg/help/3080079/update-to-add-rds-support-for-tls-1-1-and-tls-1-2-in-windows-7-or-wind This update provides support for Transport Layer Security (TLS) 1.1 and TLS 1.2 in Windows 7 Service Pack 1 (SP1) or Windows Server 2008 R2 SP1 for Remote Desktop Services (RDS).