Need Help to publish multiple remote app in rds

Welcome Forums General PowerShell Q&A Need Help to publish multiple remote app in rds

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
9 months ago.

  • Author
    Posts
  • #93681

    Participant
    Points: 0
    Rank: Member

    HI,

    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

  • #93682

    Participant
    Points: 144
    Helping Hand
    Rank: Participant

    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

  • #93688

    Participant
    Points: 0
    Rank: Member

    Sure Thank You.

The topic ‘Need Help to publish multiple remote app in rds’ is closed to new replies.