Skip to content

Commit

Permalink
moved param to first line
Browse files Browse the repository at this point in the history
  • Loading branch information
robledosm committed Aug 18, 2017
1 parent 0e491cb commit 62e473a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update-mvpsHosts.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Add-Type -AssemblyName System.IO.Compression.FileSystem
param([switch]$Elevated)
param([switch]$Elevated)
Add-Type -AssemblyName System.IO.Compression.FileSystem
function checkAdmin {
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
Expand Down

0 comments on commit 62e473a

Please sign in to comment.