Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- msiexec /i "\srvdistrMQServerMSIIBM WebSphere MQ.msi" /l*v "%temp%MQ.log" /q TRANSFORMS="1033.mst" USEINI="\srvdistrMQServerResponse.ini"
- $arg = "'/i "'c:distrMQServerMSIIBM WebSphere MQ.msi'" /l*v "%temp%MQ.log" /q TRANSFORMS = "1033.mst" USEINI = "c:distrMQServerResponse.ini"'"
- Start-Process -FilePath msiexec.exe -ArgumentList $arg -wait -passthru
- Неожиданный токен "c:distrMQServerMSIIBM WebSphere MQ.msi" в выражении или инструкции.
- C:UsersAdministratorDocumentsinstall_MQ_local.ps1:1 знак:58
- + $arg = "/i "'c:distrMQServerMSIIBM WebSphere MQ.msi' <<<< " /l*v "%temp%MQ.log" /q TRANSFORMS = "1033.mst" USEINI = "c:distrMQServerResponse.ini""
- + CategoryInfo : ParserError: (c:distrMQServ...ebSphere MQ.msi:String) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedToken
- $script = Start-Process -FilePath msiexec.exe -ArgumentList $arg -wait -passthru
- Invoke-Command -ComputerName server2 -ScriptBlock $script
Add Comment
Please, Sign In to add comment