# With 1.6, the windows agent is shipped as an msi. Before it was an exe. Before i installed cmk on a client by a powershell on a central server which, with msi it does not work.

1.5: this works:
$session = New-PSSession -ComputerName $server -Credential $credential
Invoke-Command -Session $session -ScriptBlock {
	C:\uz\Apps\Check_mk\check_mk_agent.exe install
} 
Remove-PSSession $session

1.6 this does not work.
$args = @(
		"'/i"
		"$localmsi_fqn"
		"/qn /log C:\UZ\Logs\Check_MK.log'"
)
$command = "Start-Process msiexec -ArgumentList " + $args + " -Wait"
$session = New-PSSession -ComputerName $server -Credential $credential
Invoke-Command -Session $session -ScriptBlock {
	$command
} 
Remove-PSSession $session

Someone an idea what is wrong?

##### Post Metadata
- Posted at: over 5 years ago
- Author title: system administrator at U.Z.Leuven
- Net upvotes: 1


## Comments
### Comment 1

Hi Peter,

We encourage you to post any technical questions directly on our user forum: https://forum.checkmk.com/ . I&#39;m sure that our community members will be happy to provide tips on how to solve this issue.

Regarding your question, there is a requirement to deliver our products for Windows only as MSI. Try using the following command line: msiexec /i check_mk_agent.msi /qn /L*V agent_msi.log

From your post is not clear what is wrong with Powershell (many things can go wrong: access to the path, session rights, administrative rights etc.)

Best,
Cristian

##### Comment Metadata
- Posted at: over 5 years ago
- Author title: Marketing Manager




## Related Product
[Checkmk](https://www.g2.com/products/checkmk/reviews)

## Related Category
[Network Monitoring](https://www.g2.com/categories/network-monitoring)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: about 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: about 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: about 13 years ago
  - Comments: 4


