20 lines
599 B
PowerShell
20 lines
599 B
PowerShell
|
$PathIntune = "$Env:Programfiles\itego\intune"
|
||
|
|
||
|
Start-Transcript -Path "$PathIntune\Log\FortigateVPN-install.log" -Force
|
||
|
|
||
|
$installerPath = ('./bin/' + $installerName)
|
||
|
$installArgs = "/install","/quiet","/norestart"
|
||
|
Start-Process -FilePath $installerPath -ArgumentList "$installArgs" -Wait
|
||
|
Write-Host ("Fortigate VPN Installed versions installed: " + $installerName)
|
||
|
|
||
|
$process = Start-Process -Path reg.exe -ArgumentList @("Import", ("{0}\config\vpnProfiles.reg" -f $PSScriptRoot)) -Wait -passthru
|
||
|
If($process.ExitCode)
|
||
|
{
|
||
|
Write-Host "Profiles Imported"
|
||
|
}
|
||
|
0
|
||
|
|
||
|
Stop-Transcript
|
||
|
|
||
|
|