Author Posts

February 15, 2018 at 11:40 am


Below command is working to publish one app, I need to create around 1000 Apps, same
can feed -displayname, -requiredcommandline, and -usergroups from a file. please suggest.
I tried from get-content but getting error Cannot convert value to type System.String.

New-RDRemoteApp -CollectionName "Apps" -DisplayName "test" -FilePath "c:\windows\system32\mstsc.exe" -CommandLineSetting Require -RequiredCommandLine "/v:systemname:3389" -UserGroups domain\user

Thanks in Advance

February 15, 2018 at 12:12 pm

Probably a CSV file would fit your need a little better than a plain text file. You would need Import-CSV and a loop to do the rest of the trick. 😉
Could you please choose a more guiding "subject" or "title" for your question next time? Thanks