Guest User

Untitled

a guest
Oct 26th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. msiexec /i "\srvdistrMQServerMSIIBM WebSphere MQ.msi" /l*v "%temp%MQ.log" /q TRANSFORMS="1033.mst" USEINI="\srvdistrMQServerResponse.ini"
  2.  
  3. $arg = "'/i "'c:distrMQServerMSIIBM WebSphere MQ.msi'" /l*v "%temp%MQ.log" /q TRANSFORMS = "1033.mst" USEINI = "c:distrMQServerResponse.ini"'"
  4. Start-Process -FilePath msiexec.exe -ArgumentList $arg -wait -passthru
  5.  
  6. Неожиданный токен "c:distrMQServerMSIIBM WebSphere MQ.msi" в выражении или инструкции.
  7. C:UsersAdministratorDocumentsinstall_MQ_local.ps1:1 знак:58
  8. + $arg = "/i "'c:distrMQServerMSIIBM WebSphere MQ.msi' <<<< " /l*v "%temp%MQ.log" /q TRANSFORMS = "1033.mst" USEINI = "c:distrMQServerResponse.ini""
  9. + CategoryInfo : ParserError: (c:distrMQServ...ebSphere MQ.msi:String) [], ParentContainsErrorRecordException
  10. + FullyQualifiedErrorId : UnexpectedToken
  11.  
  12. $script = Start-Process -FilePath msiexec.exe -ArgumentList $arg -wait -passthru
  13. Invoke-Command -ComputerName server2 -ScriptBlock $script
  14.  
  15. [cmdletbinding()]
  16. param (
  17. [parameter(mandatory=$true)]
  18. $computer,
  19. [parameter(mandatory=$true)]
  20. $adminusername,
  21. [parameter(mandatory=$true)]
  22. $adminpassword
  23. )
  24. C:distrPSToolsPsExec64.exe \$computer -s -u $adminusername -p $adminpassword -accepteula -nobanner msiexec /i "\srvdistrMQServerMSIIBM WebSphere MQ.msi" /l*v "C:MQ.log" /q TRANSFORMS="1033.mst" USEINI="\srvdistrMQServerResponse.ini"
Add Comment
Please, Sign In to add comment