Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling Puppet for Windows Remotely using MsiExec and Powershell
    primarykey
    data
    text
    <p>I am trying to install Puppet Client for Windows remotely using Team City and a Powershell Inline Script.</p> <pre><code>Invoke-command –computername %Machine Host Name% –ScriptBlock {Param($options) Start-Process -FilePath "msiexec.exe $options" -ArgumentList "/i C:\Temp\puppet-3.0.0.msi PUPPET_MASTER_SERVER=%Puppet Master Server% /l*v C:\Temp\puppet-3.0.0.log /qn" -Wait –Passthru} </code></pre> <p>When i executed from my local machine it works just fine but it seems that TeamCity has some issues dealing with the quotes.</p> <pre><code>**[Step 2/2] Invoke-Command : A positional parameter cannot be found that accepts argument ' [09:08:08][Step 2/2] –ScriptBlock'. [09:08:08][Step 2/2] At line:1 char:15 [09:08:08][Step 2/2] + Invoke-command &lt;&lt;&lt;&lt; –computername vavp-pmo-agt08 –ScriptBlock {Param($option [09:08:08][Step 2/2] s) Start-Process -FilePath msiexec.exe $options -ArgumentList /i C:\Temp\puppet [09:08:08][Step 2/2] -3.0.0.msi PUPPET_MASTER_SERVER=vavt-pmo-sbx23.company.com /l*v C:\Temp\puppet [09:08:08][Step 2/2] -3.0.0.log /qn -Wait –Passthru} [09:08:08][Step 2/2] + CategoryInfo : InvalidArgument: (:) [Invoke-Command], Parameter [09:08:08][Step 2/2] BindingException [09:08:08][Step 2/2] + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell [09:08:08][Step 2/2] .Commands.InvokeCommandCommand [09:08:08][Step 2/2] [09:08:08][Step 2/2] Process exited with code 1** </code></pre> <p>No luck with the Script Execution Mode Switch as well. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload