Posts

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