Advertisement
Guest User

Untitled

a guest
May 6th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. [void] $psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("New Documentation Section", {New-ISEDocumentationSection}, 'F12')
  2. function New-ISEDocumentationSection {
  3. $text"
  4. #-----------------------------------------
  5. #Script: $(SplitPath -Path $psISE.CurrentFile.Fullpath -Leaf)
  6. #Author: $((Get-ADUser $env:UserName.GivenName) $((Get-ADUser $env.UserName).Surname)
  7. #Email: $((Get-ADUser $env:Username -property emailAddress).email.Address)
  8. #Date: $(Get-Date)
  9. #History:
  10. #Comments:
  11. #
  12. #
  13. #------------------------------------------
  14. "
  15.  
  16. $psISE.CurrentFile.Editor.InsertText($text)
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement