Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TechDufus/AdminToolkit

Miscellaneous functions and utilities for System Administrators.
https://github.com/TechDufus/AdminToolkit

powershell

Last synced: 3 months ago
JSON representation

Miscellaneous functions and utilities for System Administrators.

Awesome Lists containing this project

README

        

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

[![Build](https://github.com/TechDufus/AdminToolkit/workflows/Build%20and%20Publish/badge.svg)](https://github.com/TechDufus/AdminToolkit/actions?query=workflow%3A%22Build+%2B+and+%2B+Publish%22)
[![PSGallery](https://img.shields.io/powershellgallery/v/AdminToolkit?color=G&label=PowerShell%20Gallery)](https://www.powershellgallery.com/packages/AdminToolkit/)
[![Downloads](https://img.shields.io/powershellgallery/dt/AdminToolkit?label=Downloads)](https://www.powershellgallery.com/packages/AdminToolkit/)
[![License](https://img.shields.io/github/license/TechDufus/AdminToolkit?color=g&label=License)](https://github.com/TechDufus/AdminToolkit/blob/master/LICENSE)
![CodeSize](https://img.shields.io/github/languages/code-size/TechDufus/AdminToolkit?label=Code%20Size)

## Install from PowerShell Gallery
```powershell
Install-Module AdminToolkit
```
## Update from PowerShell Gallery
```powershell
Update-Module AdminToolkit
```

## Installing with Git
### For Windows PowerShell 5.1
```powershell
# 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+
```powershell
# 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
```powershell
# 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+
```powershell
# 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
```