我有類似的問題,我想在Win 7安裝Ciscoemail但它只是didnt幹活已經成功地通過組策略來安裝它在Win XP中使用此腳本PowerShell腳本
md c:\ciscoemail
if not exist c:\ciscoemail\CiscoEmailSecurity_7-2-0-039.exe copy \\Domain Name\cisco\CiscoEmailSecurity_7-2-0-039.exe c:\ciscoemail /Y
if not exist c:\ciscoemail\response_file.iss copy \\Domain Name\cisco\response_file.iss c:\ciscoemail /Y
del c:\ciscoemail\setup.log /f /q
if not exist C:\PROGRA~2\Cisco\CISCOI~1\CISCOE~1.DLL c:\ciscoemail\CiscoEmailSecurity_7-2-0-039.exe /s /v /qn /f1"c:\ciscoemail\response_file.iss"
可有人請幫助將代碼轉換爲Powershell代碼。 簡單的步驟是:
將目錄設置爲本地c盤。
檢查ciscoemail是否存在於本地c盤上。
如果它不存在,並將其複製創建文件夾ciscoemail \ CiscoEmailSecurity_7-2-0-039.exe和ciscoemail \ response_file.iss到C盤
.exe文件(安裝文件)
[Stack Overflow是不是代碼翻譯服務(http://meta.stackexchange.com/a/129362/143302) – Filburt