Skip to content

Commit

Permalink
Counter
Browse files Browse the repository at this point in the history
  • Loading branch information
directorcia committed May 8, 2024
1 parent 64689f1 commit c3f1130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions o365-update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ write-host -foregroundcolor $systemmessagecolor "Start Script`n"
write-host -ForegroundColor $processmessagecolor "Prompt to install missing modules =",$prompt"`n"

$ps = $PSVersionTable.PSVersion
Write-host -foregroundcolor $processmessagecolor "`nDetected supported PowerShell version: $($ps.Major).$($ps.Minor)"
Write-host -foregroundcolor $processmessagecolor "Detected supported PowerShell version: $($ps.Major).$($ps.Minor)"
if ($ps.Major -lt 7) {
$modulecount = 16
} else {
$modulecount = 15 # NUGET is not supported in PowerShell 7
}

$counter = 0
$counter = 1

$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
If ($currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Expand Down

0 comments on commit c3f1130

Please sign in to comment.