Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [void] $psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("New Documentation Section", {New-ISEDocumentationSection}, 'F12')
- function New-ISEDocumentationSection {
- $text"
- #-----------------------------------------
- #Script: $(SplitPath -Path $psISE.CurrentFile.Fullpath -Leaf)
- #Author: $((Get-ADUser $env:UserName.GivenName) $((Get-ADUser $env.UserName).Surname)
- #Email: $((Get-ADUser $env:Username -property emailAddress).email.Address)
- #Date: $(Get-Date)
- #History:
- #Comments:
- #
- #
- #------------------------------------------
- "
- $psISE.CurrentFile.Editor.InsertText($text)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement