# New remote desktop application using powershell in C#

**URL:** <https://forums.powershell.org/t/new-remote-desktop-application-using-powershell-in-c/1206>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/new-remote-desktop-application-using-powershell-in-c/1206 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/new-remote-desktop-application-using-powershell-in-c/1206/1 "2011-12-31T18:30:00Z")

</div>

by tha4 at 2012-09-19 21:10:47

> Using System.Management.Automation I tried adding a new remote desktop application in C#.  
> `pipeline.Commands.AddScript("new-item -path RDS:\RemoteApp\RemoteAppPrograms -name â€˜calc2â€™ -ApplicationPath &quot;%SYSTEMDRIVE%\Windows\system32\calc.exe&quot;");`  
> Above is the code I used to create the application. However it throws a  
> `System.Management.Automation.ParameterBindingException: A parameter cannot be found that matches parameter name ‘ApplicationPath’.`  
> My guess is new-item cmdlet does not have a ApplicationPath parameter. So C# throws a error. Although this works fine in Powershell prompt.  
>   
> Any solution is appreciated!

by poshoholic at 2012-09-19 21:47:21

> I just moved this topic into the PowerShell for Developers forum so that it gets better visibility with that group.

by zatnas at 2013-01-08 22:46:45

> I’ve discovered the problem.  
> It loads and works fine!

by Eurisko at 2013-01-29 06:53:17

> Can you share what the problem was?

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:02pm UTC](https://forums.powershell.org/t/new-remote-desktop-application-using-powershell-in-c/1206/2 "2024-05-16T21:02:37Z")

</div>


