PowerShell Module to assist Windows Admins. This contains many useful administration and utility functions.
Install-Module AdminToolkit
Update-Module AdminToolkit
# For CurrentUser scope
git clone https://github.com/TechDufus/AdminToolkit.git ($env:PSModulePath -split ';')[0]
# For AllUsers scope. Must be Admin.
git clone https://github.com/TechDufus/AdminToolkit.git ($env:PSModulePath -split ';')[2]
# For CurrentUser scope
git clone https://github.com/TechDufus/AdminToolkit.git $PSGetPath.CurrentUserModules
# For AllUsers scope. Must be Admin.
git clone https://github.com/TechDufus/AdminToolkit.git $PSGetPath.AllUsersModules
PowerShell will now Auto-Load the commands in this module.
Navigate into the cloned AdminToolkit folder and run git pull
to pull the current main (master) branch.
# For CurrentUser scope
Set-Location (Join-Path -Path ($env:PSModulePath -split ';')[0] -ChildPath AdminToolkit)
git pull
# For AllUsers scope. Must be Admin.
Set-Location (Join-Path -Path ($env:PSModulePath -split ';')[2] -ChildPath AdminToolkit)
git pull
# For CurrentUser scope
Set-Location (Join-Path -Path $PSGetPath.CurrentUserModules -ChildPath AdminToolkit)
git pull
#For AllUsers scope. Must be Admin
Set-Location (Join-Path -Path $PSGetPath.AllUsersModules -ChildPath AdminToolkit)
git pull