This is my personal Powershell repo where a few scripts I often use.
- Encryption with age-encryption.org and with HSM support
- Cloud Uploads with rclone to make files easy accesaable from everywhere
- Create a Powershell with elevalted rights without a password prompt
- Read
Date-Taken
from media files - Transcribe audio and video files to text with OpenAI API
- Encode images to and from JpegXL/JXL
- Run
profile\init.ps1
this can be run repeatedly.- This will add
shell.ps1
in each Powershell$PROFILE
to runJoin-Path $env:USERPROFILE ".sharedScripting\sharedprofile.ps1"
so there is only one place to edit the profile.
- This will add
- This repo should be cloned to
C:\dev\pwsh-repo
so it works out of the box. sharedprofile.ps1
starts with every new Powershell session,*.ps1
files next will be loaded executed in alphabetical order.- There are sample scripts
*.sample
which can be rennamed.
- There are sample scripts
Invoke-WebRequest 'https://raw.githubusercontent.com/dhcgn/pwsh-repo/main/profile/init.ps1' | Invoke-Expression
Publish-FileUnprotected Publish-FilePasswortProtected Publish-File Test-Rclone Encrypt-File Encrypt-FileWithMyKeys Encrypt-FileWithMyHSMKeys Decrypt-File ConvertTo-JpegXl ConvertTo-PngFromJpegXl New-Guid Get-SummarizeTextWithGPT Get-TextFromAudioWithWhisper Get-TTSWithOpenAI Get-RandomSecure Set-ReSharperExclusion Invoke-IpfsUpload Invoke-RemotePinning Extract-AudioFromVideo Get-DateTaken Move-MediaToDateFolder Load-Credential Save-Credential Start-PowerShellAs sync-ssh-from-wndows-to-wsl Set-PowerPointExportResolution Update-Syncthing ws load-pwsh-repo