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

PowerShell Tips from DR Tobias

  Master-PowerShell | With Dr. Tobias Weltner - PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources