Skip to content

AdminToys PowerShell module is a collection of scripts and functions to help with everyday admin tasks.

License

Notifications You must be signed in to change notification settings

vukasinterzic/AdminToys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdminToys

This module started as a collection of few functions to help with daily tasks. Module will grow over time and new useful functions will be added.

Functions are designed in the way so they can be used individually, or as a part of a larger script. If you use variable $Credential to store credentials, you won't need to enter credentials for each function. Individual functions do not check for remote computer accessibility. You can do that once and then pass only accessible computers to individual functions. It is designed like this to avoid multiple checks. Results can be saved in new object, and then presented and sorted in various formats.

Functions:

Get-ModuleHelp

This function was written to simplify using this module. It loads all commands in module and shows them with numbers. Then you can enter function number and it will show you full help for that command.

This function can be used with any module.

Get-DiskSpace

Collect basic disk information from local and remote computers and export it to CSV.

New-DNSRecord

Create new A DNS record in AD integrated DNS zone using dnscmd tool.

Get-LocalAdmins

Get list of users and groups with local admin rights on local or remote computer. Export to CSV if needed.

Get-Uptime

Get the exact uptime and last bootup time of local or remote computer or computers.

Get-ADServerInfo

Collect basic information about specified servers or all servers found in Active Directory. Collected information is useful for having overview of where they are, in which site, are they physical or virtual and on wich physical host, what systems are they running and what are they used for.

Get-InstalledFeatures

This function collects the list of installed Windows features from remote or local computer with Server OS.

Get-NetAdapterInfo

Colects all information from Win32_NetworkAdapterConfiguration and Get-NetAdapter, and combines it in one object.

Get-PublicIP

This function finds the Public IP address of local or remote computer and returns it. It can run with multiple computers and use credentials if needed.

Get-GeoIPInfo

This function find geographical information about public IP address, including link to the map.

Get-MACVendor

Uses online up-to-date information to identify vendor of MAC address that is provided.

Get-DPMProtectedVMs

Gets the list of all items that are protected by DPM.

Test-Elevation

Check if PowerShell console is opened as Administrator. It returns Boolean value and offers to start new elevated process.

StampFile

Add date and time stamp to the end of the file name. You can use it to rename the existing file or to make a copy of that file with date and time added to the end of the original name.

Invoke-Unzip

Zip file extraction by attempting 3 methods, in case prerequisites are not met.

Get-ConsoleMusic

Fun little function that plays songs directly from console. Currently available melodies: Super Mario, Tetris, Mission Impossible, Star Wars.

Set-PingFirewallRules

Enables TCP IPv4 and IPv6 ports on remote or local computer so you can use PING. It can also create block rules to disable it.

Convert-TextToASCIIArt

Converts your Text to ASCII Art text, with multiple fonts to choose from. Check Font-Preview.html page.

  _____         _   
 |_   _|____  _| |_ 
   | |/ _ \ \/ / __|
   | |  __/>  <| |_ 
   |_|\___/_/\_\\__|
                    

Get-AzVMInfo

Get information about Azure VM, such as: VM size, network configuration, disk information, subscription information, resource group, tags, applied network security group rules, operating system, domain, ...

Get-AzureIDs

This function retrieves and displays the Azure Subscription Name, Subscription ID, and Tenant ID of the current Azure context. It can also copy it to clipboard based on switch parameter.

Work in progress functions (not really at this point, i'm just keeping the list here)

Get-SCOMObjectsInMaintenance, Get-SCOMMonitoredVMs, Get-SCOMNotMonitoredVMs, Get-SCOMAgentHealth, Get-SCOMEventsForVM, Get-DPMUnprotectedVMs, Get-DPMServerInfo (storage, network, jobs, cloud etc..), Get-iDRACInfo, Get-iLOInfo, Find-ADAccountLockoutSource

Optional: Set-Elevation, Get-AccountFromSID, Get-SIDFromAccount, Get-ShutDown, Get-LogOnLogOut, Get-InstalledSoftware, Get-FirewallRules, Copy-MyItem, Get-Shares, Get-AdministrativeEvents, Write-ToEventLog, Get-ScheduledTask, SayThis, Get-ADGroupMembershipChanges, Get-ComputerBitlockerInfo ...

Planned changes

#FIXME Rename module and repository and give it unique name

#TODO Add more functions

#TODO Create Azure DevOps workflow to test, update and add module to PowerShell Gallery

About

AdminToys PowerShell module is a collection of scripts and functions to help with everyday admin tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published