Posts

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

Change 'My Computer' name in Desktop

Either one of below registry, to be confirmed: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D} -> '(Default)' (string value) -> Your value HKEY_USERS\S-1-5-21-1343024091-764733703-725345543-71394\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}

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