Progress
This commit is contained in:
BIN
apps/FortigateVPN/bin/FortiClient_v7.4.0.1658.msi
Normal file
BIN
apps/FortigateVPN/bin/FortiClient_v7.4.0.1658.msi
Normal file
Binary file not shown.
BIN
apps/FortigateVPN/config/vpnProfiles.reg
Normal file
BIN
apps/FortigateVPN/config/vpnProfiles.reg
Normal file
Binary file not shown.
19
apps/FortigateVPN/install.ps1
Normal file
19
apps/FortigateVPN/install.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
$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
|
||||
|
||||
|
Reference in New Issue
Block a user