Skip to content
ecsousa edited this page Jul 29, 2014 · 2 revisions

Welcome to the PSUtils wiki!

PSUtils is a PowerShell Module containing some useful scripts to assist daily basis tasks. I will try to describe its scripts, so everyone can benefit from it (names inside parenthesis are aliases to each function):

  • Add-Link (mklink): executes mklink from CMD (to create symbolic and other files links).

  • Get-Clipboard (gcb): returns Clipboard content to PowerShell.

  • Get-FindLocation (which): searches PATH for a given term.

  • Get-Manual (gman): displays man page for a given gnuwin32 utility that comes with PSUtils.

  • Get-Shelveset (unshelve): Gets a TFS Shelveset content, and apply it to another branch.

  • Install-ConEmu: Install ConEmu to ..\ConEmu relative to PSUtils, and configures it to execute PowerShell with PSUitls at startup.

  • Install-Sysinternals: Install Sysinternal tools to ..\sysinternals relative to PSUtils. At startup, is theses tools are installed, PSUtils will create aliases to each of them.

  • Install-Vim: Install Sysinternal tools to ..\sysinternals relative to PSUtils.

  • Invoke-ForeachParallel (%p): Parallel version to Foreach-Object. Credit to Tome Tanasovski.

  • Invoke-TFS (tf): Finds lastest installed TFS, and executes its tf.exe utility.

  • Set-Clipboard (scb): Save input to Clipboard.

  • Set-Signature: Apply codesgining to input files. If certificate is not provided, the first CodeSigning certificate will be used.

  • Set-VS2010 (vs2010): Loads Visual Studio 2010 environment variables.

  • Set-VS2012 (vs2012): Loads Visual Studio 2012 environment variables.

  • Set-VS2013 (vs2013): Loads Visual Studio 2013 environment variables.

  • Set-WAIK (waik): Loads Windows Automated Installation Kit environment variables.

  • Start-Elevated (sudo): executes a given executable with administrative privileges.

  • Start-gVim (gvim): executes gvim.exe, trying to find where it is installed, or use it from ..\Vim relative to PSUtils.

  • Start-PSUtils (psutils): Available only in ConEmu, with ConEmuHk enable. Executes PowerShell with PSUtils loaded in a new tab.

  • Start-Vim (vim): executes gvim.exe, trying to find where it is installed, or use it from ..\Vim relative to PSUtils.

  • Update-Path: checks for new directories configured to PATH in Registry, and apply new ones to current environment variable.

  • Update-PSUtils: Selfupdate PSUtils from git repository. Requires Git client.

  • Update-SymbolIndex: read a .pdb symbol file, and indexes it to existing source code on a TFS Server.

  • Write-Prompt (prompt): Internal function used to customize prompt.

Clone this wiki locally