Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

stadub/PowershellScripts

Repository files navigation


Powershell Micro Modules

Base64String Base64String - Convert text from/to Base 64 String

https://www.powershellgallery.com/packages/Base64String/ https://github.com/stadub/PowershellScripts/tree/master/Shared-Functions/Base64String/

ConvertFrom-Base64String
 [-EncodedValue] <string>
 [-UrlSafe] <bool> (default- $false) - Set to produce url safe string
ConvertTo-Base64String
 [-Value] <string>

πŸ‘‰πŸΏ Full documentation and code


Pipe Pipe - Powershell Pipe filtering functions

https://www.powershellgallery.com/packages/Pipe/ https://github.com/stadub/PowershellScripts/tree/master/Shared-Functions/Base64String/

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 Bookmarks - Directory bookmarks

https://www.powershellgallery.com/packages/Bookmarks/ https://github.com/stadub/PowershellScripts/tree/master/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 7zip-Archive - 7zip utility powershell wrapper

https://www.powershellgallery.com/packages/7zip-Archive/ https://github.com/stadub/PowershellScripts/tree/master/7Zip/

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 Currency-Conv - Currecny converter

https://www.powershellgallery.com/packages/Currency-Conv/ https://github.com/stadub/PowershellScripts/tree/master/Currency-Conv/

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


FolderEncoder 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

https://www.powershellgallery.com/packages/FolderEncoder/ https://github.com/stadub/PowershellScripts/tree/master/FolderEncoder/

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.

Buy Me A Coffee Support by Yandex

πŸ“¬ Suggestions and feedback

If you have any idea or suggestion - please add a github issue.

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /