PowershellScripts
PowershellScripts copied to clipboard
Monorepo with all my Powershell Scripts
Powershell Scripts 
Powershell Micro Modules
Base64String - Convert text from/to Base 64 String
ConvertFrom-Base64String
[-EncodedValue] <string>
[-UrlSafe] <bool> (default- $false) - Set to produce url safe string
ConvertTo-Base64String
[-Value] <string>
👉🏿 Full documentation and code
Pipe - Powershell Pipe filtering functions
Limit-Type - Filter by element type
[-Type] <Type>
[-Strict] (default- $true) - $true - filter by exact type, $false - any assigname type
```powershell
Limit-Type - Filter by element type name
[-TypeName] <string> Type name
[-Strict] (default- $true) - $true - filter by exact type, $false - 'like' comparision used
Limit-First - Return only the first element of pipe
Limit-Last - Return only the last element of pipe
Skip-Items - Skip N elements
[-Count] <int>
Hide-Out - supress output
Limit-Items - Return only N elements from pipe
[-Count] <int>
👉🏿 Full documentation and code
Powershell Modules
Bookmarks - Directory bookmarks
Add-PSBookmark - Add folder to the bookmarks list
[-Name] <string>
[-Path] <string> (Optional)
Remove-PSBookmark - Remove bookmark from the list
[-Bookmark] <string>
Open-PSBookmark - Navigate to bookmark
[-Bookmark] <string>
Get-PSBookmarks - List bookmarks
Remove-AllPSBookmarks - Clear bookmarks list
Update-PSBookmark - Update folder location in the bookmarks list
[-Name] <string>
[-Path] <string> (Optional)
👉🏿 Full documentation and code
7zip-Archive - 7zip utility powershell wrapper
New-ZipFile - Create new archive
[-Archive] <string>
[-Files] <string[]>
[-Compression] (Optional) {Store, Fastest, Fast, Normal, Maximum, Ultra}
[-Password] <string> (Optional)
[-SplitSize] <string> (Optional)
[-SplitSizeFactor] (Optional) {Byte, Kilobyte, Megabyte, Gigabytes}
[-UpdateMode] (Optional) {Add, Update, Freshen, Sync}
Get-ZipFileContent - Extract archive new archive
[-Archive] <string>
[-FileName] <string> (Optional) - Extrct single file
[-Password] <string> (Optional)
[-Force] <Boolean> (Optional) - Overwrite existing file
[-OutputPath] <string> (Optional) - folder to extract
Read-ZipFile - List 7zip file content
[-Archive] <string>
[-Password] <string> (Optional)
Add-ZipFileContent - Add file to archive
[-Archive] <string>
[-File] <string>
[-Password] <string> (Optional)
Remove-ZipFileContent - Remove file from archive
[-Archive] <string>
[-File] <string>
[-Password] <string> (Optional)
Test-ZipFileContent - Perform zip file check
[-Archive] <string>
[-File] <string> (Optional)
[-Password] <string> (Optional)
👉🏿 Full documentation and code
Currency-Conv - Currecny converter
Get-ExchangeRate - Get exchange rate for amount
[-From] <string>
[-To] <string> (Optional "USD")
[-Amount] <integer> (Optional 1.0)
Get-Countries -Countries list with currencies
Get-Currencies - Supported currencies list
Remove-CurrencyApiKey- Clean key
👉🏿 Full documentation and code
Invoke-FolderEncode - Encode files from a folder for(for example) uploading to the cloud
Used as backups encoding solution.
Encoding performed with 7z password protection
Invoke-FolderEncode - Encode folder
[-DestFolder] <string>
[-SrcFolder] <string> (Optional)
👉🏿 Full documentation and code
💲 Motivation
The modules are created and actively maintained during evenings and weekends for my own needs. If it's useful for you too, that's great. I don't demand anything in return.
However, if you like it and feel the urge to give something back, a coffee or a beer is always appreciated. Thank you very much in advance.
📬 Suggestions and feedback
If you have any idea or suggestion - please add a github issue.