Skip to content

Instantly share code, notes, and snippets.

@Ferk
Ferk / PasteByTyping.ps1
Last active May 5, 2022 11:17 — forked from ethack/TypeClipboard.md
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.
# It "types" the contents of the clipboard.
# Useful when pasting doesn't work (eg. RDP or VM not sharing clipboard)
$content = Get-Clipboard
Write-Output "____ CONTENT TO PASTE ____" $content "__________________________"
Write-Output " Press Ctrl+C to abort"
timeout 7
if ($?) {