smitpi / PSToolKit

PSToolKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

  • Run the following commands to install Boxstarter:
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
  • Then click on one of the below links to start.
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


Getting Started

$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
  • Or from the created Powershell Script:
Set-ExecutionPolicy Bypass -Scope Process -Force
(New-Object System.Net.WebClient).DownloadFile('https://bit.ly/35sEu2b', "$($env:tmp)\Start-PSToolkitSystemInitialize.ps1")
Import-Module (Get-Item "$($env:tmp)\Start-PSToolkitSystemInitialize.ps1") -Force; Start-PSToolkitSystemInitialize
  • Then import the module into your session
Import-Module PSToolKit -Verbose -Force
  • or run these commands for more help and details.
Get-Command -Module PSToolKit
Get-Help about_PSToolKit

Documentation can be found at: Github_Pages

PS Controller Scripts

  • boxstarter-install.ps1
  • call-initial.ps1
  • Initial-Setup.ps1

Functions

About

PSToolKit

License:MIT License


Languages

Language:PowerShell 99.9%Language:Dockerfile 0.1%