-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstructions.md.bak
More file actions
74 lines (56 loc) · 2.97 KB
/
instructions.md.bak
File metadata and controls
74 lines (56 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 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:
```powershell
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](http://boxstarter.org/package/url?https://raw.githubusercontent.com/smitpi/PSToolKit/master/PSToolKit/Control_Scripts/Initial-Setup.ps1') | Use [PSToolKit](https://github.com/smitpi/PSToolKit) to Install a new System.|
> **Warning**
>> You will need a valid **github userid** and **token** to continue.
---
## Manage Modules and Apps
- Run the following to update or install apps using the module: [PSPackageMan](https://github.com/smitpi/PSPackageMan) ([PS Gallary](https://www.powershellgallery.com/packages/PSPackageMan/0.1.3))
```Powershell
Invoke-RestMethod https://raw.githubusercontent.com/smitpi/PSToolKit/master/PSToolKit/Control_Scripts/Run-Install-Apps.ps1 | Invoke-Expression
```
- Run the following to update or install PS Modules using the module: [PWSHModule](https://github.com/smitpi/PWSHModule) ([PS Gallary](https://www.powershellgallery.com/packages/PWSHModule/0.1.21))
```Powershell
Invoke-RestMethod https://raw.githubusercontent.com/smitpi/PSToolKit/master/PSToolKit/Control_Scripts/Run-Install-Modules.ps1 | Invoke-Expression
```
---
## Getting Started
- Run this script to install from GitHub [GitHub Repo](https://github.com/smitpi/PSToolKit)
```powershell
$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:
```powershell
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
```powershell
Import-Module PSToolKit -Verbose -Force
```
- or run these commands for more help and details.
```powershell
Get-Command -Module PSToolKit
Get-Help about_PSToolKit
```
Documentation can be found at: [Github_Pages](https://smitpi.github.io/PSToolKit)