I'm trying to install some custom Windows services using PowerShell, and I've been unable to run InstallUtil without getting the following error:
A positional parameter cannot be found that accepts argument ''
Here's what I've run that causes the error above:
Invoke-Command -ComputerName <remote machine> -ScriptBlock {Invoke-Item C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe "<path to service exe>"}