Posts

Troubleshooting AD authentication issues due to port exhaustion issues

Troubleshooting AD authentication issues due to port exhaustion issues https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/tcp-ip-port-exhaustion-troubleshooting If found system event id 4231: Get the processes consuming too much ports: Get-NetTCPConnection | Group-Object -Property State, OwningProcess | Select -Property Count, Name, @{Name="ProcessName";Expression={(Get-Process -PID ($_.Name.Split(',')[-1].Trim(' '))).Name}}, Group | Sort Count -Descending For the top 5: Get-NetTCPConnection | Group-Object -Property State, OwningProcess | Select -Property Count, Name, @{Name="ProcessName";Expression={(Get-Process -PID ($_.Name.Split(',')[-1].Trim(' '))).Name}}, Group | Sort Count -Descending | select-object -first 5 nlteest /sc_verify:domainname Enable debug for Netlogon: https://learn.microsoft.com/en-us/troubleshoot/windows-client/windows-security/enable-debug-logging-netlogon-service  Nltest /DBFlag:2080FFFF  

Solution for gpupdate /force won't apply the new filter group GPO, but computer restart will

  Solution for gpupdate /force won't apply the new filter group GPO, but computer restart will We’ve observed that machines recently added to a new group may not receive the updated Group Policy settings when running gpupdate /force. However, the policies apply successfully after a system restart. This behavior is typically due to group membership token caching. When a machine is added to a new group, the updated group membership isn’t immediately reflected in the current session. A restart forces a refresh of the security token, allowing the correct policies to apply. In this specific case, the affected machine was added to a group two days ago, and the GPO was applied to that group via Security Filtering. To ensure the updated group membership is recognized, the Kerberos ticket on the client machine needs to be purged. This can be achieved by running the following command: klist purge -li 3e7 Alternatively, a system reboot will also refresh the token and apply the correct policie...

Offline install NuGet package provider and then install .nupkg package

Below command won't install NuGet Package provider if we don't have direct internet from the servers:  Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force Solution: Download below dll from : https://cdn.oneget.org/providers/nuget-2.8.5.208.package.swidtag https://onegetcdn.azureedge.net/providers/Microsoft.PackageManagement.NuGetProvider-2.8.5.208.dll Copy & paste to C:\Program Files\PackageManagement\ProviderAssemblies

GPO for "Use my sign-in info to automatically finish setting up my device after an update or restart"

  GPO for "Use my sign-in info to automatically finish setting up my device after an update or restart" gpedit.msc Computer Configuration  >  Administrative Templates  >  Windows Components >  Windows Logon Options "Sign-in and lock last interactive user automatically after a restart" To enable automatic sign-in, select the  Enabled   option. To disable it, choose   Disabled . Reg:  "DisableAutomaticRestartSignOn" (a.k.a. "ARSO") under the [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] registry key.

WireShark filters

WireShark filters Below are few WireShark filters ip.addr == <IP address>      : To filter by IP address tcp.port == <Port no>           : To filter by port number dns or http                                     : Displays dns and http traffic frame matches "<string>"      : Strings search tcp.analysis.flags                          : Shows the problems like packet loss, windows problem !(arp or dns or icmp)                    : removes arp, dns and icmp from the traces Follow TCP stream                    : Any packets that are related to the tcp conversation tcp.stream eq 32           ...

Uninstall Internet Explorer in Windows server 2012 using DISM command

Image
 Summary: In Windows 2012 server, Internet Explorer won't be listed in ADD/Remove programs. Also Tun Windows feature on or off won't work. Internet explorer can be uninstalled by below steps: Solution steps: Execute below command and verify Internet Explorer feature is enabled dism /online /get-features Look for below output from above command: Feature Name : Internet-Explorer-Optional-amd64 State : Enabled Execute below command to uninstall Internet explorer dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64 C:\>dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64 Deployment Image Servicing and Management tool Version: 6.2.9200.22807 Image Version: 6.2.9200.22807 Disabling feature(s) [==========================100.0%==========================] The operation completed successfully. Restart Windows to complete this operation. Do you want to restart the computer now? (Y/N) n Server needs to be restarted for change to take effect...

Capture Network Packet trace in Windows 2016

#Initial command : netsh trace start persistent=yes capture=yes IPv4.Address=X.X.X.X tracefile=c:\temp\nettrace-boot.etl  #Stop command: netsh trace stop Open the ETL file in Microsoft Message Analyzer Ref : https://techcommunity.microsoft.com/t5/iis-support-blog/capture-a-network-trace-without-installing-anything-amp-capture/ba-p/376503

Get startup folder of current user and all users - Windows 2012, 2016,2019

Run -> shell:startup - for current user Run -> shell:common startup - for all users

WSUS configurations

wsus client configuration Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\ Windows update log path (obselete): c:\windows\windowsupdate.log Powershell : Get-WindowsUpdateLog Installing updates: Using Powershell: Install-Module PSWindowsUpdate #- to install the Windows update module Get-WindowsUpdate #- to check for updates Install-WindowsUpdate #- to install the available updates Older version windows (Without PowerShell module): wuauclt /detectnow - to check for updates wuauclt /updatenow - to start installing the detected updates wuauclt /detectnow /updatenow - to check, download and install updates wuauclt /reportnow # TBC wuauclt /detectnow /updatenow /reportnow # TBC For Windows 10 computers, rather than use WUAUCLT.EXE you need to use UsoClient.exe. This exe is located in System32 and you can use the following strings. StartScan - Used To Start Scan StartDownload - Used to Start Download of Patches StartInstall - Used to Install Downloaded...

View PowerShell commands executed history

Look at below files at the below location to view the PowerShell commands executed history: ConsoleHost_history.txt Visual Studio Code Host_history.txt C:\Users\<UserName>\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine

Changing the name of 'My Computer' icon on the Desktop

Update below registry value to reflect the 'My Computer' icon name in the Desktop: HKEY_USERS\S-1-5-21-1343024091-764733703-725345543-71394\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D} key: (Default) Value: Computer name Split for easy lookup: HKEY_USERS\ S-1-5-21-1343024091-764733703-725345543-71394\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ CLSID\ {20D04FE0-3AEA-1069-A2D8-08002B30309D} PowerShell one-liner: set-itemproperty - path 'registry::HKEY_USERS\S-1-5-21-1343024091-764733703-725345543-71394\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}' - name '(Default)' - value $ ( $env:computername )

Find Windows Product Keys

 Ways to find Windows Product Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform , find value of BackupProductKeyDefault (Not working) Find Product Key Using CMD: wmic path softwarelicensingservice get OA3xOriginalProductKey (Not working) powershell: "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey" (Not working) Registry: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId

Get wifi password (connected wifi connection) from command line

Image
 Execute below command, and look for value in the output: "key content" under "security settings" netsh.exe wlan show profiles name=’Profile Name’ key=clear Sample output: Ref:  Get Wireless Network SSID and Password with PowerShell - Scripting Blog (microsoft.com)

vRA/vRO workflows

Image
 Types of workflows:  Type  Example  Screenshot   vRealize Orchestrator Workflow   Assign Backup Tag to VM                           Publish a Blueprint You can publish a blueprint for use in machine provisioning and optionally for reuse in another blueprint. To use the blueprint for requesting machine provisioning, you must entitle the blueprint after publishing it. Blueprints that are consumed as components in other blueprints do not required entitlement. Prerequisites Log in to  vRealize Automation  as an  infrastructure architect . Create a blueprint. See  Checklist for Creating vRealize Automation Blueprints . Procedure Click the  Design  tab. Click  Blueprints . Point t...

Finding and Resolving IP conflict in Windows machines

 Option 1: Look for event log something like below in the system experiencing IP conflict: Log Name : System Source : Tcpip Event ID: 4199 "The system detected an address conflict for IP address <> with the system having network hardware address <>. Network operations on this system may be disrupted as a result Option 2: IPconfig result will show private IP address (like 169.254.) assigned even though you set a static IP.

Shortcut To "Recording" tab of Sound ControlPanel

Image
Below solution to create shortcut To "Recording" tab of Sound in ControlPanel: Solution: Create shortcut link with below target value: C:\Windows\System32\control.exe mmsys.cpl,,1 Start in : C:\Windows\system32

Solution for Google Backup and Sync quitting with error: 656AEF33

Image
Sorry, Backup and Sync needs to quit. Something went wrong. Backup and Sync needs to quit. Solution: Rename or delete below folder and start Google Backup and Sync: %localappdata%\Google\Drive Ref: https://superuser.com/questions/1189404/google-drive-is-saying-sorry-backup-and-sync-needs-to-quit

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