smitpi / PSToolKit

PSToolKit
MIT License
3 stars 1 forks source link
powershell powershell-module powershell-script

PSToolKit

Description

A Repository of my random scripts and functions writen over the years, there is a wyde range of tools in this module, used by a SysAdmin and EUC Administrator.


Win-Bootstrap

Boxstarter scripts to setup a new windows machine.

Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 
iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1'))
Get-Boxstarter -Force
Click link to run Description
System Setup Use PSToolKit to Install a new System.

Warning

You will need a valid github userid and token to continue.


Manage Modules and Apps

$CurrentLocation = Get-Item .
$ModuleDestination = (Join-Path (Get-Item (Join-Path (Get-Item $profile).Directory 'Modules')).FullName -ChildPath PSToolKit)
git clone --depth 1 https://github.com/smitpi/PSToolKit $ModuleDestination 2>&1 | Write-Host -ForegroundColor Yellow
Set-Location $ModuleDestination
git filter-branch --prune-empty --subdirectory-filter Output HEAD 2>&1 | Write-Host -ForegroundColor Yellow
Set-Location $CurrentLocation
Import-Module PSToolKit -Verbose -Force
Get-Command -Module PSToolKit
Get-Help about_PSToolKit

Documentation can be found at: Github_Pages

PS Controller Scripts

Functions