Skip to content

HvdMark/HMUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install HMUtils Module from GitHub

Prerequisites

Install-Module -Name InstallModuleFromGitHub

Modules need RSAT installed to use the Active Directory module

On Windows 10/11

Add-WindowsCapability -Online -Name "Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0"

Installing or Updating HMUtils for the current user

# Install or Update to the latest version available on GitHub
Install-ModuleFromGitHub -GitHubRepo HvdMark/HMUtils -Branch main -Verbose

# To auto import the module when starting PowerShell
notepad $PROFILE
# Add
Import-Module HMUtils

Installing or Updating HMUtils for the all users

# Install or Update to the latest version available on GitHub
Install-ModuleFromGitHub -GitHubRepo HvdMark/HMUtils -Branch main -Scope AllUsers -Verbose

# To auto import the module when starting PowerShell
notepad $PROFILE.AllUsersAllHosts
# Add
Import-Module HMUtils

Exported Functions

Function Description
Add-HypervVM Create a Hyper-V VM
Disable-User Disable a user in the Active Directory
Enable-User Enable a user in the Active Directory
Get-ADAllUsersInfo Get a list of all users and export it to a file
Get-ADAllDomainControllers Get a list of all domain controllers
Get-ADComputerSitename Get the current site an ip belongs to
Get-ADDomainAdmins Get a list of all users that have Administrator privileges
Get-ADGroupTreeViewMembers Get a tree of all (nested) group a user is member of
Get-ADLastLogon Get the user last logon
Get-BootTime Get the time and date when a machine is rebooted
Get-DiskSpace Get a list of all drives on a system
Get-Hash Get the hash of a string (SHA1/SHA256/SHA384/SHA512/MD4/MD5)
Get-LocalAdmins Get a list of all local admins
Get-MainBoardSerial Get the serial number of the mainboard
Get-NetExternalIP Get the external IP of your network
Get-PowerShellVersion Get the PowerShell version local or remote
Get-SidToUser Get the user that belongs to a sid
Get-UserInformation Get detailed information about a user
Get-UserToSid Get the sid of a user
Get-WifiPasswords Get a list of all Wifi profiles and the passwords used
Get-WindowsProductKey Get the windows product key from a local or remote computer
New-Password Create a random password
Test-ADDomainController Test the connection to a specific Domain Controller
Test-ADDomainControllers Test the connection to all Domain Controllers
Test-Application Test is an application ins installed
Test-IsUserAdmin Test if a user has admin privileges
Test-IsUserElevated Test if a user has been elevated as admin
Test-Url Test if a website is available
Test-WinRM Test if WinRM is allowing a remote connection

About

Useful powershell scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published