{"id":13545122,"url":"https://github.com/BornToBeRoot/PowerShell","last_synced_at":"2025-04-02T15:30:58.893Z","repository":{"id":44454268,"uuid":"53866019","full_name":"BornToBeRoot/PowerShell","owner":"BornToBeRoot","description":"Collection of useful PowerShell functions, scripts, snippets and templates","archived":true,"fork":false,"pushed_at":"2021-09-04T22:40:26.000Z","size":3183,"stargazers_count":515,"open_issues_count":1,"forks_count":134,"subscribers_count":52,"default_branch":"master","last_synced_at":"2024-11-03T12:32:01.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BornToBeRoot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-14T15:02:50.000Z","updated_at":"2024-11-01T20:16:54.000Z","dependencies_parsed_at":"2022-08-30T19:01:19.311Z","dependency_job_id":null,"html_url":"https://github.com/BornToBeRoot/PowerShell","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BornToBeRoot%2FPowerShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BornToBeRoot%2FPowerShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BornToBeRoot%2FPowerShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BornToBeRoot%2FPowerShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BornToBeRoot","download_url":"https://codeload.github.com/BornToBeRoot/PowerShell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246841597,"owners_count":20842618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T11:00:57.935Z","updated_at":"2025-04-02T15:30:57.713Z","avatar_url":"https://github.com/BornToBeRoot.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# PowerShell\n\nMy collection of useful functions, scripts, snippets and templates written by myself.\n\n## Description\n\nAutomate all the Things!\n\n## Module\n\n#### How to install the module?\n\n1. Download the [latest Release](https://github.com/BornToBeRoot/PowerShell/releases/latest)\n2. Copy the folder [Module\\LazyAdmin](Module/LazyAdmin) to `C:\\Users\\%username%\\Documents\\WindowsPowerShell\\Modules\\`\n3. Open up a PowerShell as an admin and set the execution policy: `Set-ExecutionPolicy RemoteSigned`\n4. Import the Module with the command `Import-Module LazyAdmin` (Maybe add this command to your PowerShell profile) \n\n#### Available functions:\n\n**Folder: [File](Module/LazyAdmin/Functions/File)**\n\n| Function | Description | Help |\n| :--- | :--- | :---: | \n| [Find-StringInFile](Module/LazyAdmin/Functions/File/Find-StringInFile.ps1) | Find a string in one or multiple files | [:book:](Documentation/Function/Find-StringInFile.README.md) |\n| [Test-IsFileBinary](Module/LazyAdmin/Functions/File/Test-IsFileBinary.ps1) | Test if a file is binary | [:book:](Documentation/Function/Test-IsFileBinary.README.md) |\n| [Update-StringInFile](Module/LazyAdmin/Functions/File/Update-StringInFile.ps1) | Replace a string in one or multiple files | [:book:](Documentation/Function/Update-StringInFile.README.md)\n\n**Folder: [Software](Module/LazyAdmin/Functions/Software)**\n\n| Function | Description | Help | \n| :--- | :--- | :---: |\n| [Get-InstalledSoftware](Module/LazyAdmin/Functions/Software/Get-InstalledSoftware.ps1) | Get all installed software with DisplayName, Publisher and UninstallString | [:book:](Documentation/Function/Get-InstalledSoftware.README.md) |\n\n**Folder: [Network](Module/LazyAdmin/Functions/Network)**\n\n| Function | Description | Help |\n| :--- | :--- | :---: |\n| [Clear-ARPCache](Module/LazyAdmin/Functions/Network/Clear-ARPCache.ps1) | Clear the ARP cache | [:book:](Documentation/Function/Clear-ARPCache.README.md) |\n| [Convert-IPv4Address](Module/LazyAdmin/Functions/Converter/Convert-IPv4Address.ps1) | Convert an IPv4-Address to Int64 and vise versa | [:book:](Documentation/Function/Convert-IPv4Address.README.md) |\n| [Convert-Subnetmask](Module/LazyAdmin/Functions/Converter/Convert-Subnetmask.ps1) | Convert a subnetmask to CIDR and vise versa | [:book:](Documentation/Function/Convert-Subnetmask.README.md) |\n| [Get-ARPCache](Module/LazyAdmin/Functions/Network/Get-ARPCache.ps1) | Get the ARP cache | [:book:](Documentation/Function/Get-ARPCache.README.md) |\n| [Get-IPv4Subnet](Module/LazyAdmin/Functions/Network/Get-IPv4Subnet.ps1) | Calculate a subnet based on an IP-Address and the subnetmask or CIDR | [:book:](Documentation/Function/Get-IPv4Subnet.README.md) |\n| [Get-MACAddress](Module/LazyAdmin/Functions/Network/Get-MACAddress.ps1) | Get the MAC-Address from a remote computer | [:book:](Documentation/Function/Get-MACAddress.README.md) |\n| [Get-MACVendor](Module/LazyAdmin/Functions/Network/Get-MACVendor.ps1) | Get Vendor from a MAC-Address | [:book:](Documentation/Function/Get-MACVendor.README.md) |\n| [Get-WLANProfile](Module/LazyAdmin/Functions/WLAN/Get-WLANProfile.ps1) | Get WLAN profiles, include password as SecureString or as plain text | [:book:](Documentation/Function/Get-WLANProfile.README.md) |\n| [Invoke-IPv4NetworkScan](Module/LazyAdmin/Functions/Network/Invoke-IPv4NetworkScan.ps1) | Powerful asynchronus IPv4 Network Scanner to scan an IP-Range or subnet | [:book:](Documentation/Function/Invoke-IPv4NetworkScan.README.md) |\n| [Invoke-IPv4PortScan](Module/LazyAdmin/Functions/Network/Invoke-IPv4PortScan.ps1) | Powerful asynchronus IPv4 Port Scanner to scan a TCP Port-Range | [:book:](Documentation/Function/Invoke-IPv4PortScan.README.md) |\n| [Send-WakeOnLan](Module/LazyAdmin/Functions/Network/Send-WakeOnLan.ps1) | Send a network message to turn on or wake up a remote computer | [:book:](Documentation/Function/Send-WakeOnLan.README.md) |\n| [Split-IPv4Subnet](Module/LazyAdmin/Functions/Network/Split-IPv4Subnet.ps1) | Split a subnet in multiple subnets with given subnetmasks | [:book:](Documentation/Function/Split-IPv4Subnet.README.md) |\n\n**Folder: [Security](Module/LazyAdmin/Functions/Security)**\n\n| Function | Description | Help |\n| :--- | :--- | :---: |\n| [ConvertFrom-Base64](Module/LazyAdmin/Functions/Converter/ConvertFrom-Base64.ps1) | Convert a Base64 encoded string to a plain text string | [:book:](Documentation/Function/ConvertFrom-Base64.README.md) |\n| [ConvertTo-Base64](Module/LazyAdmin/Functions/Converter/ConvertTo-Base64.ps1) | Convert a text (command) to an Base64 encoded string | [:book:](Documentation/Function/ConvertTo-Base64.README.md) |\n| [Get-RandomPassword](Module/LazyAdmin/Functions/Security/Get-RandomPassword.ps1) | Generate passwords with a freely definable number of characters | [:book:](Documentation/Function/Get-RandomPassword.README.md) |\n| [Get-RandomPIN](Module/LazyAdmin/Functions/Security/Get-RandomPIN.ps1) | Generate PINs with freely definable number of numbers | [:book:](Documentation/Function/Get-RandomPIN.README.md) |\n\n**Folder: [TrustedHost](Module/LazyAdmin/Functions/TrustedHost)**\n\n| Function | Description | Help |\n| :--- | :--- | :---: |\n| [Add-TrustedHost](Module/LazyAdmin/Functions/TrustedHost/Add-TrustedHost.ps1) |Add a trusted host (WinRM) | [:book:](Documentation/Function/Add-TrustedHost.README.md) |\n| [Get-TrustedHost](Module/LazyAdmin/Functions/TrustedHost/Get-TrustedHost.ps1) | Get trusted hosts (WinRM) | [:book:](Documentation/Function/Get-TrustedHost.README.md) |\n| [Remove-TrustedHost](Module/LazyAdmin/Functions/TrustedHost/Remove-TrustedHost.ps1) | Remove a trusted host (WinRM) | [:book:](Documentation/Function/Remove-TrustedHost.README.md) |\n| [Set-TrustedHost](Module/LazyAdmin/Functions/TrustedHost/Set-TrustedHost.ps1) | Set a trusted host (WinRM) | [:book:](Documentation/Function/Set-TrustedHost.README.md) |\n\n**Folder: [Windows](Module/LazyAdmin/Functions/Windows)**\n\n| Function | Description | Help |\n| :--- | :--- | :---: |\n| [Get-LastBootTime](Module/LazyAdmin/Functions/Windows/Get-LastBootTime.ps1) | Get the time when a computer is booted | [:book:](Documentation/Function/Get-LastBootTime.README.md) |\n| [Get-WindowsProductKey](Module/LazyAdmin/Functions/Windows/Get-WindowsProductKey.ps1) | Get the Windows product key and some usefull informations about the system | [:book:](Documentation/Function/Get-WindowsProductKey.README.md) |\n\n**Folder: [Other](Module/LazyAdmin/Functions/Other)**\n\n| Function | Description | Help |\n| :--- | :--- | :---: |\n| [Get-ConsoleColor](Module/LazyAdmin/Functions/Other/Get-ConsoleColor.ps1) | Get all available console colors | [:book:](Documentation/Function/Get-ConsoleColor.README.md) |\n\n## Scripts\n\n| Script | Description | Help |\n| :--- | :--- | :---: |\n| [Convert-ROT13](Scripts/Convert-ROT13.ps1) | Rotate lower and upper chars by n places (Caesar cipher) | [:book:](Documentation/Script/Convert-ROT13.README.md) |\n| [Convert-ROT47](Scripts/Convert-ROT47.ps1) | Rotate ascii chars by n places (Caesar cipher) | [:book:](Documentation/Script/Convert-ROT47.README.md) |\n| [OptimizePowerShellStartup.ps1](Scripts/OptimizePowerShellStartup.ps1) | Optimize PowerShell startup by reduce JIT compile time with ngen.exe | [:book:](Documentation/Script/OptimizePowerShellStartup.README.md) |\n\n## Snippets \n\n| Snippet | Description | \n| :--- | :--- |\n| [ConnectToExchange2010.ps1](Snippets/ConnectToExchange2010.ps1) | Connect to Exchange 2010 Management Shell in script |\n| [CredentialParameter.ps1](Snippets/CredentialParameter.ps1) | Parameter to pass credentials into a function/script |\n| [DefaultDisplayPropertySet.ps1](Snippets/DefaultDisplayPropertySet.ps1) | Set the default properties of an object |\n| [New-Object.ps1](Snippets/New-Object.ps1) | Create a new PSObject with custom properties |\n| [PressAnyKeyToContinue.ps1](Snippets/PressAnyKeyToContinue.ps1) | Wait until the user pressed a key | \n| [PromptForChoice.ps1](Snippets/PromptForChoice.ps1) | Prompt for choice |\n| [PSCustomObject.ps1](Snippets/PSCustomObject.ps1) | Create a new PSObject with custom properties (faster than New-Object/Add-Member) |\n| [RewriteInLine.ps1](Snippets/RewriteInLine.ps1) | Rewrite in Line (Write-Host \"xx% complete\") |\n| [SelfElevatingScript.ps1](Snippets/SelfElevatingScript.ps1) | Self elevate a PowerShell script/console with parameters |\n| [Send-MailMessage.ps1](Snippets/Send-MailMessage.ps1) | Send a mail message via PowerShell |\n\n## Regex\n\n| Regex | Description |\n| :--- | :--- |\n| [IPv4Address.ps1](Regex/IPv4Address.ps1) | Validate an IPv4-Address like 192.168.1.0 |\n| [MACAddress.ps1](Regex/MACAddress.ps1) | Validate a MAC-Address like 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000 |\n| [Subnetmask.ps1](Regex/Subnetmask.ps1) | Validate an Subnetmask like 255.255.255.0 |\n\n## Templates\n\n| Template | Description |\n| :--- | :--- |\n| [Default.ps1](Templates/Default.ps1) | Default template for new scripts |\n| [Default.README.md](Templates/Default.README.md) | Default template for documentation on GitHub |\n| [RunspacePool.ps1](Templates/RunspacePool.ps1) | RunspacePool template - run code asynchron (faster than PSJobs) |\n| [ScheduledTask_Logging.ps1](/Templates/ScheduledTask_Logging.ps1) | Template to run a script as scheduled task with logging | \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBornToBeRoot%2FPowerShell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBornToBeRoot%2FPowerShell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBornToBeRoot%2FPowerShell/lists"}