fix Install-ManagementAgent script to include correct installshield switches
added Create-LocalAdmin.ps1 with base functionality updated Tools.ps1
This commit is contained in:
@@ -205,4 +205,15 @@ switch ($PSCmdlet.ParameterSetName)
|
||||
'le' { If ( $WindowsBuild -le $le ) { Return $true } Else { Return $false } }
|
||||
'eq' { If ( $WindowsBuild -eq $eq ) { Return $true } Else { Return $false } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
## Function to determine if the system is 64-bit or not
|
||||
Function Is64bit
|
||||
{
|
||||
switch ( $(Get-CimInstance -ClassName Win32_OperatingSystem -Property OSArchitecture | Select-Object -ExpandProperty OSArchitecture) )
|
||||
{ '64-bit' { Return $true } '32-bit' { Return $false } }
|
||||
}
|
||||
|
||||
## Function to determine if the Powershell process is 64-bit or not
|
||||
Function Is64bitShell
|
||||
{ If ( [Environment]::Is64BitProcess ) { Return $true } Else { Return $false } }
|
||||
|
||||
Reference in New Issue
Block a user