Skip to content

Commit

Permalink
Update bootstrap.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdwegen authored Aug 16, 2023
1 parent 4195493 commit 8cdf4ca
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions scripts/bootstrap.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
$ProgressPreference = 'SilentlyContinue'
$host.ui.RawUI.WindowTitle = "Autopilot Hash Bootstrap"
CLS

function Show-Menu {
param (
[string]$Title = 'Autopilot hash menu'
)
Clear-Host
Write-Host "================ $Title ================"

Write-Host "1: Press '1' to export the hash to CSV."
Write-Host "2: Press '2' to download Get-WindowsAutopilotInfo from the gallery."
Write-Host "Q: Press 'Q' to quit."
}

Clear-Host

$header = @"
Expand Down Expand Up @@ -33,4 +46,18 @@ if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdent
#[void]$wshell.AppActivate('Autopilot Hash Bootstrap')
#$wshell.SendKeys($ScriptData)

irm "https://autopilot.ms/scripts/autopilot.ps1" | iex
do {
Show-Menu
$selection = Read-Host "Please make a selection"
switch ($selection) {
'1' {
irm "https://autopilot.ms/scripts/autopilot.ps1" | iex
} '2' {
Write-Host "not functional yet"
}
}
pause
}
until ($selection -eq 'q')

#irm "https://autopilot.ms/scripts/autopilot.ps1" | iex

0 comments on commit 8cdf4ca

Please sign in to comment.