https://github.com/aetonsi/pwsh__clipboard
{pwsh} Powershell clipboard related utils.
https://github.com/aetonsi/pwsh__clipboard
clipboard password powershell pwsh secure
Last synced: 23 days ago
JSON representation
{pwsh} Powershell clipboard related utils.
- Host: GitHub
- URL: https://github.com/aetonsi/pwsh__clipboard
- Owner: aetonsi
- License: wtfpl
- Created: 2022-08-29T19:42:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T12:02:17.000Z (over 3 years ago)
- Last Synced: 2026-01-20T21:54:56.297Z (5 months ago)
- Topics: clipboard, password, powershell, pwsh, secure
- Language: PowerShell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# pwsh__Clipboard
Powershell clipboard related utils.
# Usage
```powershell
# Import module first
Import-Module ./Clipboard.psm1
# now you can use the imported functions
```
### Set-ClipboardSecurely
Sets the clipboard contents and tells the operating system not to store that content in its clipboard history (if in use)
> please note: it's up to the system to honor the request and not store the value
> please note: this also disables Windows from sharing the given value across the user's devices
> please note: currently ONLY Windows OS is supported
```powershell
Set-ClipboardSecurely "some secret value, like a password"
# to emtpy clipboard
Set-ClipboardSecurely ""
# or you can empty the clipboard via the system's Set-Clipboard, but this leaves an empty string in the system's history
Set-Clipboard ""
```