Skip to content

Latest commit

 

History

History
63 lines (55 loc) · 2.73 KB

README.md

File metadata and controls

63 lines (55 loc) · 2.73 KB

AdminToolkit

PowerShell Module to assist Windows Admins. This contains many useful administration and utility functions.

Build PSGallery Downloads License CodeSize

Install from PowerShell Gallery

Install-Module AdminToolkit

Update from PowerShell Gallery

Update-Module AdminToolkit

Installing with Git

For Windows PowerShell 5.1

# 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 PowerShell 6.0+

# 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.

Updating with Git

Navigate into the cloned AdminToolkit folder and run git pull to pull the current main (master) branch.

For Windows PowerShell 5.1

# 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 PowerShell 6.0+

# 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