My collection of useful functions, scripts, snippets and templates written by myself.
Automate all the Things!
- Download the latest Release
- Copy the folder Module\LazyAdmin to
C:\Users\%username%\Documents\WindowsPowerShell\Modules\ - Open up a PowerShell as an admin and set the execution policy:
Set-ExecutionPolicy RemoteSigned - Import the Module with the command
Import-Module LazyAdmin(Maybe add this command to your PowerShell profile)
Folder: File
| Function | Description | Help |
|---|---|---|
| Find-StringInFile | Find a string in one or multiple files | 📖 |
| Test-IsFileBinary | Test if a file is binary | 📖 |
| Update-StringInFile | Replace a string in one or multiple files | 📖 |
Folder: Software
| Function | Description | Help |
|---|---|---|
| Get-InstalledSoftware | Get all installed software with DisplayName, Publisher and UninstallString | 📖 |
Folder: Network
| Function | Description | Help |
|---|---|---|
| Clear-ARPCache | Clear the ARP cache | 📖 |
| Convert-IPv4Address | Convert an IPv4-Address to Int64 and vise versa | 📖 |
| Convert-Subnetmask | Convert a subnetmask to CIDR and vise versa | 📖 |
| Get-ARPCache | Get the ARP cache | 📖 |
| Get-IPv4Subnet | Calculate a subnet based on an IP-Address and the subnetmask or CIDR | 📖 |
| Get-MACAddress | Get the MAC-Address from a remote computer | 📖 |
| Get-MACVendor | Get Vendor from a MAC-Address | 📖 |
| Get-WLANProfile | Get WLAN profiles, include password as SecureString or as plain text | 📖 |
| Invoke-IPv4NetworkScan | Powerful asynchronus IPv4 Network Scanner to scan an IP-Range or subnet | 📖 |
| Invoke-IPv4PortScan | Powerful asynchronus IPv4 Port Scanner to scan a TCP Port-Range | 📖 |
| Send-WakeOnLan | Send a network message to turn on or wake up a remote computer | 📖 |
| Split-IPv4Subnet | Split a subnet in multiple subnets with given subnetmasks | 📖 |
Folder: Security
| Function | Description | Help |
|---|---|---|
| ConvertFrom-Base64 | Convert a Base64 encoded string to a plain text string | 📖 |
| ConvertTo-Base64 | Convert a text (command) to an Base64 encoded string | 📖 |
| Get-RandomPassword | Generate passwords with a freely definable number of characters | 📖 |
| Get-RandomPIN | Generate PINs with freely definable number of numbers | 📖 |
Folder: TrustedHost
| Function |
|---|