【发布时间】:2023-02-08 19:40:24
【问题描述】:
我想在我们的计算机上安装 Pulse Secure,但我在添加配置文件时遇到了一些困难。安装没问题,但我在 PowerShell 中找不到添加配置文件的命令。
这样我就在这里看到下面的代码,对于新版本的 webview 是必需的,这就是为什么它在我的脚本开头:) ..
Start-process "$PSScriptRoot\Data\WebView2.exe" -ArgumentList "/silent /install" -Wait
If ((Test-Path "C:\APRIL") -eq $false)
{
new-item "C:\APRIL" -ItemType directory
}
If ((Test-Path "C:\APRIL\SCCM\Pulse_Secure") -eq $false)
{
new-item "C:\APRIL\SCCM\Pulse_Secure" -ItemType directory
}
Start-process "$PSScriptRoot\Data\pulse_secure.msi" -ArgumentList "qn" -Wait
Copy-Item -Path "$PSScriptRoot\Data\Pulse_Comp_APRIL.pulsepreconfig" -Destination "C:\Program Files (x86)\Common Files\Pulse Secure\JamUI\" -Force
Start-Process "C:\Program Files (x86)\Common Files\Pulse Secure\JamUI\jamCommand.exe" -ArgumentList "-importfile Pulse_Comp_APRIL.pulsepreconfig"
配置文件没有出现在 vpn 连接中,有人可以告诉我我做错了什么吗?我认为导入命令不好,但没有找到适用于 PowerShell 的东西。
【问题讨论】:
标签: powershell vpn pulse