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

          How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

          What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

          Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos