Need Help to publish multiple remote app in rds


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

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. :wink:
Could you please choose a more guiding “subject” or “title” for your question next time? Thanks

Sure Thank You.