Browse by Tags

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

  • Set Clipboard

    If you are using Windows Vista or better, you can pipe text to clip.exe to copy it to your clipboard: Dir $env:windir | clip Here is another approach that you can use if your PowerShell host uses the STA mode: function Set-Clipboard { param ( $text )...
    Filed under: ,
  • Get-Clipboard

    If your PowerShell host uses the STA mode, you can easily read clipboard content like this: function Get-Clipboard { if ( $Host . Runspace . ApartmentState -eq ' STA ' ) { Add-Type -Assembly PresentationCore [ Windows.Clipboard ] :: GetText (...
    Filed under: ,
Copyright 2012 PowerShell.com. All rights reserved.