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: filter output with value

 #require PowerShell core  Install-PSResource FineFormat Install-Module -Name FineFormat -scope CurrentUser #The output show a lot of empty ...