Powercli paste for linux console

Latest response

This is a powercli program that can past your clipboard contents into a vmware console for linux.

# BootPasteClip.ps1
# Gary Jahrig  
#Paste clipboard into vmware console

$myshell = New-Object -com "Wscript.Shell"

    $text = Get-Clipboard -format text

   write-host  "Your boot string is: `n $text" -ForegroundColor Yellow 

    Read-host -prompt " `n Please Check your string `n Hit return to start your 5 second countdown"

  For ($i=5; $i -gt 0; $i--){
  write-host -NoNewline " `r Pasting in : $i Seconds"
  Start-Sleep -Seconds 1

  Add-type -AssemblyName System.windows.forms

   # $myshell.sendkeys("L")
  # write-host "o"
   #write-host $text.length

   for ($i=0; $i -lt $text.length ; $i++) {
   write-host $text[$i]
   #Start-sleep -seconds 1



Thanks for this Gerald