fix Install-ManagementAgent script to include correct installshield switches

added Create-LocalAdmin.ps1 with base functionality
updated Tools.ps1
This commit is contained in:
2020-09-25 13:13:03 -04:00
parent 4d636246e7
commit 95abcf57c4
3 changed files with 55 additions and 2 deletions
+12 -1
View File
@@ -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 } }