Friday, June 28, 2024

PowerShell ISE Insert DateTime

 PowerShell ISE Insert DateTime

 

#add short cut in powershell ISE editor to get date quickly

$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("Insert Datetime",{$psise.CurrentFile.Editor.InsertText($(get-date))},"Alt+D") | out-Null

 

#add short cut in powershell ISE editor to get current win password quickly

$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("Winpass",{$psise.CurrentFile.Editor.InsertText("xxxxxxxxx")},"Alt+P") | out-Null

No comments:

Post a Comment

Identify Which Process Is Blocking a File in Windows

  Identify Which Process Is Blocking a File in Windows | Microsoft Community Hub File Locksmith Utility for Windows - PowerToys | Microsoft ...