Running New-RDSSessionDeployment RemotelyHow to read cell data in excel and output to command promptExecuting a git command using remote powershell results in a NativeCommmandErrorRDS installation failure on 2012 R2 Server Core VM in Hyper-V ServerWindows 2012 R2 RDS - can't change Connection Broker DNS round robin name via PowershellAzure VM - can't connect after ipconfig /releaseWhy is the Set-ClientAccessServer cmdlet throwing a DataValidationExceptionICACLS in powershell script 50% workingSysWOW64 access denied (Windows Server 2012 Standard)When trying to Create a New Azure Key Vault using Azure Active Directory Module for Windows Powershell, it always failedhow do I recover the Azure powershell context, right after creating a new VM, in a new powershell?

Given 0s on Assignments with suspected and dismissed cheating?

Why is vowel phonology represented in a trapezoid instead of a square?

Have there been any examples of re-usable rockets in the past?

How can we delete item permanently without storing in Recycle Bin?

What are the effects of eating many berries from the Goodberry spell per day?

Why would company (decision makers) wait for someone to retire, rather than lay them off, when their role is no longer needed?

Would life always name the light from their sun "white"

Why does Taylor’s series “work”?

How to deal with the extreme reverberation in big cathedrals when playing the pipe organs?

multiline equation inside a matrix that is a part of multiline equation

How can I safely determine the output voltage and current of a transformer?

What kind of environment would favor hermaphroditism in a sentient species over regular, old sexes?

What do astronauts do with their trash on the ISS?

What is the conversion rate for Sorcery Points to Spell Points?

How does this piece of code determine array size without using sizeof( )?

FIFO data structure in pure C

How could it be that 80% of townspeople were farmers during the Edo period in Japan?

Why is the marginal distribution/marginal probability described as "marginal"?

Promotion comes with unexpected 24/7/365 on-call

Deleting the same lines from a list

Usage of the relative pronoun "dont"

Enqueue Queueable class multiple times

Physically unpleasant work environment

Would it be fair to use 1d30 (instead of rolling 2d20 and taking the higher die) for advantage rolls?



Running New-RDSSessionDeployment Remotely


How to read cell data in excel and output to command promptExecuting a git command using remote powershell results in a NativeCommmandErrorRDS installation failure on 2012 R2 Server Core VM in Hyper-V ServerWindows 2012 R2 RDS - can't change Connection Broker DNS round robin name via PowershellAzure VM - can't connect after ipconfig /releaseWhy is the Set-ClientAccessServer cmdlet throwing a DataValidationExceptionICACLS in powershell script 50% workingSysWOW64 access denied (Windows Server 2012 Standard)When trying to Create a New Azure Key Vault using Azure Active Directory Module for Windows Powershell, it always failedhow do I recover the Azure powershell context, right after creating a new VM, in a new powershell?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















I'm trying to script the setup of a remote desktop deployment into Azure. I'm using Powershell remoting to connect to the WinRM endpoint on the VM's and execute remote Powershell. For the most part this works fine and has allowed me to configure teh servers, install applicaitons etc.



However, when I come to actually install the Remote desktop components using the New-RDSessionDeployment command I run into problems. There are 2 servers in this deployment:



  • RD-GTW, that will host the remote desktop gateway and web access services

  • RD-RDS, that will host a session host and connection broker

I am running the New-RDSessionDeployment command against the RD-GTW server (using invoke-command) as follows



New-RDSessionDeployment -ConnectionBroker RD-RDS.domain.local -WebAccessServer RD-GTW.domain.local -SessionHost RD-RDS.domain.local


This then comes back with an error:



Validation failed for the "RD Connection Broker" parameter.
RD-RDS1.domain.local Unable to connect to the server by using Windows PowerShell remoting. Verify that you
can connect to the server.
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-RDSessionDeployment
+ PSComputerName : ServiceName-svc1.cloudapp.net


Now what I believe is happening here is a problem with the fact that New-RDSessionDeployment its self makes a remote powershell connection that that server, so I have a remote connection making a remote connection, and so see a double hop issue. I have tried setting up CREDSSP authentication to allow for a double hope of credentials between the two, however I don't seem to be able to get this configuration working, as I am running the scripts from a desktop (on my corporate domain) and connecting to servers in Azure, so I think I am missing an SPN or similar, but not sure where.



Any suggestions on whether my assumptions are correct, and what to do about the issue are appreciated.










share|improve this question




























    3















    I'm trying to script the setup of a remote desktop deployment into Azure. I'm using Powershell remoting to connect to the WinRM endpoint on the VM's and execute remote Powershell. For the most part this works fine and has allowed me to configure teh servers, install applicaitons etc.



    However, when I come to actually install the Remote desktop components using the New-RDSessionDeployment command I run into problems. There are 2 servers in this deployment:



    • RD-GTW, that will host the remote desktop gateway and web access services

    • RD-RDS, that will host a session host and connection broker

    I am running the New-RDSessionDeployment command against the RD-GTW server (using invoke-command) as follows



    New-RDSessionDeployment -ConnectionBroker RD-RDS.domain.local -WebAccessServer RD-GTW.domain.local -SessionHost RD-RDS.domain.local


    This then comes back with an error:



    Validation failed for the "RD Connection Broker" parameter.
    RD-RDS1.domain.local Unable to connect to the server by using Windows PowerShell remoting. Verify that you
    can connect to the server.
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-RDSessionDeployment
    + PSComputerName : ServiceName-svc1.cloudapp.net


    Now what I believe is happening here is a problem with the fact that New-RDSessionDeployment its self makes a remote powershell connection that that server, so I have a remote connection making a remote connection, and so see a double hop issue. I have tried setting up CREDSSP authentication to allow for a double hope of credentials between the two, however I don't seem to be able to get this configuration working, as I am running the scripts from a desktop (on my corporate domain) and connecting to servers in Azure, so I think I am missing an SPN or similar, but not sure where.



    Any suggestions on whether my assumptions are correct, and what to do about the issue are appreciated.










    share|improve this question
























      3












      3








      3


      0






      I'm trying to script the setup of a remote desktop deployment into Azure. I'm using Powershell remoting to connect to the WinRM endpoint on the VM's and execute remote Powershell. For the most part this works fine and has allowed me to configure teh servers, install applicaitons etc.



      However, when I come to actually install the Remote desktop components using the New-RDSessionDeployment command I run into problems. There are 2 servers in this deployment:



      • RD-GTW, that will host the remote desktop gateway and web access services

      • RD-RDS, that will host a session host and connection broker

      I am running the New-RDSessionDeployment command against the RD-GTW server (using invoke-command) as follows



      New-RDSessionDeployment -ConnectionBroker RD-RDS.domain.local -WebAccessServer RD-GTW.domain.local -SessionHost RD-RDS.domain.local


      This then comes back with an error:



      Validation failed for the "RD Connection Broker" parameter.
      RD-RDS1.domain.local Unable to connect to the server by using Windows PowerShell remoting. Verify that you
      can connect to the server.
      + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-RDSessionDeployment
      + PSComputerName : ServiceName-svc1.cloudapp.net


      Now what I believe is happening here is a problem with the fact that New-RDSessionDeployment its self makes a remote powershell connection that that server, so I have a remote connection making a remote connection, and so see a double hop issue. I have tried setting up CREDSSP authentication to allow for a double hope of credentials between the two, however I don't seem to be able to get this configuration working, as I am running the scripts from a desktop (on my corporate domain) and connecting to servers in Azure, so I think I am missing an SPN or similar, but not sure where.



      Any suggestions on whether my assumptions are correct, and what to do about the issue are appreciated.










      share|improve this question














      I'm trying to script the setup of a remote desktop deployment into Azure. I'm using Powershell remoting to connect to the WinRM endpoint on the VM's and execute remote Powershell. For the most part this works fine and has allowed me to configure teh servers, install applicaitons etc.



      However, when I come to actually install the Remote desktop components using the New-RDSessionDeployment command I run into problems. There are 2 servers in this deployment:



      • RD-GTW, that will host the remote desktop gateway and web access services

      • RD-RDS, that will host a session host and connection broker

      I am running the New-RDSessionDeployment command against the RD-GTW server (using invoke-command) as follows



      New-RDSessionDeployment -ConnectionBroker RD-RDS.domain.local -WebAccessServer RD-GTW.domain.local -SessionHost RD-RDS.domain.local


      This then comes back with an error:



      Validation failed for the "RD Connection Broker" parameter.
      RD-RDS1.domain.local Unable to connect to the server by using Windows PowerShell remoting. Verify that you
      can connect to the server.
      + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-RDSessionDeployment
      + PSComputerName : ServiceName-svc1.cloudapp.net


      Now what I believe is happening here is a problem with the fact that New-RDSessionDeployment its self makes a remote powershell connection that that server, so I have a remote connection making a remote connection, and so see a double hop issue. I have tried setting up CREDSSP authentication to allow for a double hope of credentials between the two, however I don't seem to be able to get this configuration working, as I am running the scripts from a desktop (on my corporate domain) and connecting to servers in Azure, so I think I am missing an SPN or similar, but not sure where.



      Any suggestions on whether my assumptions are correct, and what to do about the issue are appreciated.







      powershell remote-desktop azure






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 14 '14 at 14:19









      Sam CoganSam Cogan

      32k568109




      32k568109




















          1 Answer
          1






          active

          oldest

          votes


















          0














          you neet to run Enable-PSRemoting as power-shell command
          and answer yes to every question






          share|improve this answer























          • If you read the original post they are well past the need to simply enable PSRemoting, see "I'm using powershell remoting...the most part this works ...allowed me to configure servers"

            – Patrick
            Oct 6 '15 at 10:26











          • yes, I know, I had same problem - remoting enabled in azure VM and it didn't work, this step fixed it - give it try

            – David B.
            Oct 6 '15 at 13:34












          • This worked for me using the -force command. However I think there was also an issue running this locally on one of my servers. The host name kept resolving to IPv6. I fixed this by running it on a different host.

            – Nixphoe
            Nov 10 '17 at 15:23











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f588882%2frunning-new-rdssessiondeployment-remotely%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          you neet to run Enable-PSRemoting as power-shell command
          and answer yes to every question






          share|improve this answer























          • If you read the original post they are well past the need to simply enable PSRemoting, see "I'm using powershell remoting...the most part this works ...allowed me to configure servers"

            – Patrick
            Oct 6 '15 at 10:26











          • yes, I know, I had same problem - remoting enabled in azure VM and it didn't work, this step fixed it - give it try

            – David B.
            Oct 6 '15 at 13:34












          • This worked for me using the -force command. However I think there was also an issue running this locally on one of my servers. The host name kept resolving to IPv6. I fixed this by running it on a different host.

            – Nixphoe
            Nov 10 '17 at 15:23















          0














          you neet to run Enable-PSRemoting as power-shell command
          and answer yes to every question






          share|improve this answer























          • If you read the original post they are well past the need to simply enable PSRemoting, see "I'm using powershell remoting...the most part this works ...allowed me to configure servers"

            – Patrick
            Oct 6 '15 at 10:26











          • yes, I know, I had same problem - remoting enabled in azure VM and it didn't work, this step fixed it - give it try

            – David B.
            Oct 6 '15 at 13:34












          • This worked for me using the -force command. However I think there was also an issue running this locally on one of my servers. The host name kept resolving to IPv6. I fixed this by running it on a different host.

            – Nixphoe
            Nov 10 '17 at 15:23













          0












          0








          0







          you neet to run Enable-PSRemoting as power-shell command
          and answer yes to every question






          share|improve this answer













          you neet to run Enable-PSRemoting as power-shell command
          and answer yes to every question







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 5 '15 at 11:07









          David B.David B.

          111




          111












          • If you read the original post they are well past the need to simply enable PSRemoting, see "I'm using powershell remoting...the most part this works ...allowed me to configure servers"

            – Patrick
            Oct 6 '15 at 10:26











          • yes, I know, I had same problem - remoting enabled in azure VM and it didn't work, this step fixed it - give it try

            – David B.
            Oct 6 '15 at 13:34












          • This worked for me using the -force command. However I think there was also an issue running this locally on one of my servers. The host name kept resolving to IPv6. I fixed this by running it on a different host.

            – Nixphoe
            Nov 10 '17 at 15:23

















          • If you read the original post they are well past the need to simply enable PSRemoting, see "I'm using powershell remoting...the most part this works ...allowed me to configure servers"

            – Patrick
            Oct 6 '15 at 10:26











          • yes, I know, I had same problem - remoting enabled in azure VM and it didn't work, this step fixed it - give it try

            – David B.
            Oct 6 '15 at 13:34












          • This worked for me using the -force command. However I think there was also an issue running this locally on one of my servers. The host name kept resolving to IPv6. I fixed this by running it on a different host.

            – Nixphoe
            Nov 10 '17 at 15:23
















          If you read the original post they are well past the need to simply enable PSRemoting, see "I'm using powershell remoting...the most part this works ...allowed me to configure servers"

          – Patrick
          Oct 6 '15 at 10:26





          If you read the original post they are well past the need to simply enable PSRemoting, see "I'm using powershell remoting...the most part this works ...allowed me to configure servers"

          – Patrick
          Oct 6 '15 at 10:26













          yes, I know, I had same problem - remoting enabled in azure VM and it didn't work, this step fixed it - give it try

          – David B.
          Oct 6 '15 at 13:34






          yes, I know, I had same problem - remoting enabled in azure VM and it didn't work, this step fixed it - give it try

          – David B.
          Oct 6 '15 at 13:34














          This worked for me using the -force command. However I think there was also an issue running this locally on one of my servers. The host name kept resolving to IPv6. I fixed this by running it on a different host.

          – Nixphoe
          Nov 10 '17 at 15:23





          This worked for me using the -force command. However I think there was also an issue running this locally on one of my servers. The host name kept resolving to IPv6. I fixed this by running it on a different host.

          – Nixphoe
          Nov 10 '17 at 15:23

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f588882%2frunning-new-rdssessiondeployment-remotely%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

          Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

          What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company