Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdwegen authored Nov 21, 2024
1 parent 8df62a9 commit e3248b7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/getwindowsautopilotscript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ if (!(Get-InstalledScript | Where-Object { $_.Name -eq "Get-WindowsAutopilotInfo
Install-Script -Name "Get-WindowsAutopilotInfo" -Force -Confirm:$FALSE
Write-Host "Get-WindowsAutopilotInfo has been succesfully installed" -ForegroundColor Green
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted -Force -Confirm:$false
Write-Host "Executionpolicy has been changed to unrestricted for this process" -ForegroundColor Green
} else {
Write-Host "Get-WindowsAutopilotInfo has been found" -ForegroundColor Green
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted -Force -Confirm:$false
Write-Host "Executionpolicy has been changed to unrestricted for this process" -ForegroundColor Green
}

# Show command examples
Expand Down

0 comments on commit e3248b7

Please sign in to comment.