RDS PowerShell CMDLETS Issues

I am working on some deployment scripts that will automatically add a Session Host to a new or existing collection at deployment. I am experiencing some inconsistency when it comes to the PowerShell CMDLETS for RDS. 
For instance: The CMDLET Get-RDSessionCollection works on some servers and not on other servers...using the same command syntax. 
The command I am trying to use as an example is: Get-RDSessionCollection -CollectionName "CollectionName" -ConnectionBroker "HA FQDN DNS name" I can never
get any of the RDS CMDLETS to work when I use the HA FQDN name of the connection brokers. If I use the server FQDN of the active connection broker...it works most of the time (have notice it not working on a few servers). 
When trying to troubleshoot why the HA name doesn't work, when doing a packet capture...I don't even see DNS queries go out to try resolve the HA FQDN name I put in...I see DNS queries go
out for the server FQDN though. 
Has anyone else experienced any issues with the CMDLETS? I am running Powershell as Administrator as well. 

Hi,
You can check the below article might useful in your case.
Extending Remote Desktop Services using PowerShell
http://blogs.technet.com/b/ptsblog/archive/2011/12/09/extending-remote-desktop-services-using-powershell.aspx
Hope it helps!
Thanks.
Dharmesh Solanki
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • PowerShell Cmdlet to rename a RDS Collection

    Hi,
    I am interacting with RDS Connection Broker via PowerShell Cmdlets. I want to rename a Collection using PowerShell Cmdlets. I have tried several Cmdlets specifically Set-RDVirtualDesktopCollectionConfiguration but it doesn't allow to change the name
    of the collection. I know it is possible to rename using the RDS CB user interface but the requirements are to use only Power Shell cmdlets. Is it possible using cmdlets? or is there some other way to rename the collection without using RDS Connection Broker
    user interface?
    Thanks

    Hi,
    As this case has been quiet for a while.I need to close the case and will mark it as Answer. If this case is still unresolved,I suggest you ask in a new thread. 
    Thanks for your Support & understanding!
    Regards.
    Dharmesh Solanki
    TechNet Community Support

  • Problem with IPAM Invoke-IpamGpoProvisioning PowerShell Cmdlet

    Hi Guys,
    I have an issue with IPAM configuration installed on a Windows Server 2012 R2 and I have DC, DNS and DHCP installed on Windows Server 2012 R2 on another server, when i run the PowerShell Cmdlet to provision the IPAM GPOs using the following Cmdlet (c:\Invoke-IpamGpoProvisioning
    -Domain mydomain.local GpoPrefixName KHA  -IpamServerFqdn IPAM.mydomain.local -DelegatedGpoUser administrator) i get this error. 
    Invoke-IpamGpoProvisioning : Failed to create universal group IPAMUG. Exception calling "CommitChanges" with "0"
    argument(s): "The server is unwilling to process the request.
    At line:1 char:1
    + Invoke-IpamGpoProvisioning -Domain mydomain.local -GpoPrefixName KHA -IpamServerFqdn ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Invoke-IpamGpoProvisioning], Exception
        + FullyQualifiedErrorId : InvalidOperation,Invoke-IpamGpoProvisioning
    How to solve this issue to find the GPOs created on the DC ?

    Hi ,
    Thank you for posting your issue in the forum.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • FSRM Powershell Cmdlets not working in Azure on Server 2012

    I am attempting to use the FSRM Powershell cmdlets on a 2012 server to configure auto quotas.  However I guess I am doing something wrong.
    Even though there are built-in templates and I have added the one I want manually and have created an auto quota from it, they do not appear to the cmdlets and the cmdlets keep throwing CimException when I try to use them to create templates and auto quotas.
    For example get-fsrmquotatemplate returns nothing and new-fsrmquotatemplate -name mydemo -size 10MB resulst in 
    new-fsrmquotatemplate : Not found
    At line:1 char:6
    + $res=new-fsrmquotatemplate mydemo -size 10MB
    +      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (MSFT_FSRMQuotaTemplate:Root/Microsoft/...RMQuotaTemplate) [New-fsrmQuot
       aTemplate], CimException
        + FullyQualifiedErrorId : HRESULT 0x80041002,New-FsrmQuotaTemplate
    Is there something I am supposed to do first to set the system up?

    Hi,
    From the result it seems that the FSRM templates cannot be found. So please check if both FSRM and Windows PowerShell 3.0 are installed in Features.
    Specifically you can test to remove and reinstall FSRM to see if issue will be fixed.
    If you have any feedback on our support, please send to [email protected]

  • How to send digitally sign S/MIME messages with Powershell cmdlet Send-MailMessage?

    Hello,
    using AD Windows PKI I assigned a certificate EKU (1.3.6.1.5.5.7.3.4) to sign emails and get this with
    autoenrollment also to my CERT Store PS
    CERT:\CurrentUser\UserDS\ or the certificate could found via MMC / certificates in the store structur under "Active Directory User Object".
    Signed messages (red icon) to send as S/MIME message using Outlook 2010 is not a problem.
    Using PowerShell cmdlet Send-MailMessage to be sent company notification for a new passwordpolicy some days before pwd expired?! I use the cmdlet already successfully to filling HTML bodies with variables and send to individuals accounts.
    Reduced simplified PS code:
    $SMTPBodyHtmlTemplate = Get-Content "C:\PS\Template\HTMLBody.html" | Out-String
    Function SendEmailNotification # /* SEND E-MAIL Notification to User */#
    [string] $SMTPServer = "mail.domain.local"
    $CurrentUser = "$env:username"
    [string]$SMTPFrom = (Get-ADUser $CurrentUser -properties mail).mail
    [string[]] $SMTPTo = $($Obj.EmailAddress)
    [string]$SMTPSubject = "Notification!"
    [String]$SMTPBodyHtml = $SMTPBodyHtmlTemplate.Replace("UserDisplayname","$($UserDisplayname)")
    Send-MailMessage -From $SMTPFrom -To $SMTPTo -Subject $SMTPSubject -BodyAsHtml $SMTPBodyHtml -dno OnFailure -SmtpServer $SMTPServer -encoding ([System.Text.Encoding]::UTF8) -ErrorAction Continue
    How can I use the PSDrive own CERT and using PowerShell cmdlet Send-MailMessage
    to send a signed message, without development experience?
    Thanks in advance for cooperation.
    Manfred Schüler

    Hi,
    could create with an other colleague a DLL file (with this informations) for successfully sending sign messages from PS-Script. 
    Function SendEmailNotification # /* SEND SIGN E-MAIL */#
    $SMTPBodyHtmlTemplate = Get-Content "C:\PS\Template\HTML.html" | Out-String
    [System.Reflection.Assembly]::LoadFile("C:\PS\Assembly\Cpi.Net.SecureMail.dll") | Out-Null
    [string]$strSmtpServer = "smtp.domain.local"
    [string]$strSmtpPort = "25"
    [string]$strFrom = (Get-ADUser $CurrentUser -properties mail).mail
    [string]$strFromAlias = (Get-ADUser $CurrentUser -properties DisplayName).DisplayName
    [string]$strTo = $UserEmailAddress
    [string]$strToAlias = $UserEmailDisplayName
    [String]$strSubject = "Subject as you like"
    [string]$strBody = $SMTPBodyHtmlTemplate.Replace("UserDisplayname","$($UserDisplayname)")
    $objMail = New-Object Cpi.Net.SecureMail.SecureMailMessage
    $objFrom = New-Object Cpi.Net.SecureMail.SecureMailAddress($strFrom,$strFromAlias,$objCert,$objCert)
    $objTo = New-Object Cpi.Net.SecureMail.SecureMailAddress($strTo,$strToAlias)
    $objMail.From = $objFrom
    $objMail.to.Add($objTo)
    $objMail.Subject = $strSubject
    $objMail.Body = $strBody
    $objMail.IsBodyHtml = $TRUE
    $objMail.IsSigned = $TRUE
    $objMail.IsEncrypted = $FALSE
    $objSMTPClient = New-Object System.Net.Mail.SmtpClient($strSmtpServer,$strSmtpPort)
    $objSMTPClient.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
    $objSMTPClient.send($objMail)
    Maybe Microsoft can implement this in future versions of the cmdlets Send-MailMessage ;-)
    Manfred Schüler

  • State View powershell cmdlets

    I am trying to use powershell cmdlets to pull up the health state of certain groups like "agent" and "Health Service" from a specific custom created state view in Operations manager. Is this possible? If so what is the syntax?
    Thanks!

    Hi
    You can pull information from sate view but you can query group using below code
    import-module operationsmanager
    New-SCOMManagementGroupConnection
    $gp=Get-SCOMGroup -DisplayName "operations Manager Agents"
    Get-SCOMMonitoringObject -Group $gp |select HealthState,Displayname
    Regards
    sridhar v

  • It is there an alternative to the Test-SystemHealth powershell cmdlet for Exchange 2013?

    Hello
    The Powershell cmdlet Test-SystemHealth, that was available on Exchange 2010, is no longer available on Exchange 2013.
    Test-SystemHealth cmdlet gathered data about the Microsoft Exchange system and analyzed the data according to best practices.
    Are there any alternatives to this for Exchange 2013?
    Thanks!

    Haven't really played with it too much, but check out Get-ServerHealth
    http://technet.microsoft.com/en-us/library/jj218703(v=exchg.150).aspx
    Looks to have replaced Test-SystemHealth.

  • How to supply an end point to powershell cmdlet Rename-Blob

    [cross posted from http://stackoverflow.com/questions/21352295/azure-storage-cmdlet-rename-blob-wants-an-endpoint]
    I'm attempting to rename a blog to all lower case:
    Rename-Blob -BlobUrl "https://ttseast.blob.core.windows.net/images/Add.png" -NewName "https://ttseast.blob.core.windows.net/images/add.png"
    I've verified the blog URI by plugging it into a browser - however, attempting to execute the command tosses:
    Rename-Blob : Blob URI does not correspond to storage account end point. A Blob URI must contain blob storage end point.
    The arguments for Rename-Blob don't reference anything 'endpoint' - I've loaded the subscription so I should be authenticated and not forced to include AccountName/Key.
    How to I determine (or set) the required end point?
    thx

    If I'm not mistaken, I believe you're using Cerebrata Azure Management Cmdlets as Windows Azure PowerShell Cmdlets do not have a Rename-Blob Cmdlet (Cerebrata has it).
    To use Rename-Blob cmdlet, please try the following:
    Rename-Blob -BlobUrl "https://ttseast.blob.core.windows.net/images/Add.png" -NewName "https://ttseast.blob.core.windows.net/images/add.png" -AccountName "ttseast" -AccountKey "<your accountkey>"
    Thanks to Jaydonli for the alternate approach - turns out that while I thought I was using the native MS cmlets, in fact, I was using 3rd party CLI from Redgate. As per Gaurav Mantri at http://stackoverflow.com/questions/21352295/azure-storage-cmdlet-rename-blob-wants-an-endpoint

  • Multiple RDS Device CALs Issued through Windows 2003 RDS Hosts

    Environment
    Windows 2012 R2 RDS license server issuing device CALs
    5 Citrix farms (PS4, PS4.5, XA5, XA6, and XA6.5) 
    Symptoms
    - RDS device CALs issued through the PS4/Windows 2003 R2 and PS4.5/Windows 2003 R2 servers show the Citrix server name in the Window 2012 R2 RD license manager console instead of the workstation name (See below).
    - The PS4/Windows 2003 R2 and PS4.5/Windows 2003 R2 servers are issuing a large number of device CALs to workstations.  For example, we have two PS4/Windows 2003 R2 servers that publish a single application.  There are 20 users
    of the applications with dedicated workstations that should all have a device CAL, but everyday I see device CALs being issued from these servers (See below).  
    Any help would be greatly appreciated.  Thank you.
     Scott   

    Hi Scott,
    Thank you for posting in Windows Server Forum.
    Have you find any Error\Event Id for this case?
    From the description it appears that there is some misconfiguration for redirecting the server during load balancing the device CAL among the server and that’s why device is getting misplaced. You can please relook at configuration for License server with following
    article.
    RD Licensing Configuration on Windows Server 2012
    http://blogs.technet.com/b/askperf/archive/2013/09/20/rd-licensing-configuration-on-windows-server-2012.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Installing TFS PowerShell Cmdlets

    I cannot get the TFS PowerShell Cmdlets installed. During the install, I am not prompted to install them. And, in fact, the Typical Install text states it will not install them. After installing, then going in to modify, I do not see PowerShell Cmdlets in the
    list of features.
    I am on TFS 2013 Update 4 and PowerShell 4.0. How do I install these Cmdlets on the TFS server?

    Hi Dgjohnson,
    Thanks for your reply.
    Please download TFS 2013 Power Tools from here:https://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f.
    And share the custom installation features list screenshot here. 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Powershell cmdlets to access Azure Storage Analytics

    Hi,
    Are there PowerShell cmdlets to access Azure Storage Analytics data (Capacity Metrics)?
    -Vatsalya
    Vatsalya - MSFT The views and opinions expressed herein are those of the author and do not necessarily reflect the views of Microsoft.

    Hi Vatsalya,
    You could refer to this code sample about blob analytics metrics (https://gist.github.com/RichardSlater/4753866/raw/91a2bf45fb24dff4f770a1384c3e6578ecbd20d5/Get-CapacityMetrics.ps1
    ) about "StorageAnalyticsMetrics". In this sample, you didn't need to specify the container name.
    Please try it.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Do OM powershell cmdlets exist on MS??

    Do OM powershell cmdlet can execute on Management Server.
    I want to run some Cmdlets on agent managed computer.
    I have a rule which get the list of discoveries for my management pack and based on their enable value (true/false), some tasks are processed.
    Now if i install the management pack on agent managed computer, the rule is failing. Is there a way through which we can run OM powershell cmdlets on a agent managed computer.
    Thanks,
    Mukul

    Hi,
    Hope the below article be helpful for you:
    SCOM 2012 – Install SCOM PowerShell Modules Without SCOM Console Installation
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    After we successfully installing the module on agent, use get-module
    command to get all available module, and use get-command -module "modulename" to get all commands that can be used in the specific module.
    Regards,
    Yan Li
    Regards, Yan Li

  • How do i connect to SCVMM powershell cmdlet ??

    Hi all,
    I am trying to connect to scvmm powershell smdlet from SCVMM console but what i am getting is this:-
    Get-SCVMMServer : You cannot access VMM management server localhost. (Error ID: 1604)
    Contact the Virtual Machine Manager administrator to verify that your account is a member of a valid user role and
    then try the operation again.
    At line:1 char:409
    + ... $vmmserver_VAR=Get-SCVMMServer localhost -UserRoleName 'Administrator';
    +                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ReadError: (:) [Get-SCVMMServer], CarmineException
        + FullyQualifiedErrorId : 1604,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.ConnectServerCmdlet
    Please help.
    Thanks,
    Pranay.

    As was mentioned, SCVMM has its own security separate from Windows.
    To use the PowerShell cmdlet you must be an SCVMM Administrator.  No lower SCVMM user security level can use PowerShell.
    With the information provided that is the only guess.
    Since you are attempting to access localhost, I assume that you are launching the console on the SCVMM Server itself?  Which means it is running in your logged on user security context.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Powershell cmdlet to manage msol users

    I am looking for the powershell cmdlet that will export to a csv file, a list of msol users who do not have an Office365 Pro Plus licence. Note: All users have Standard Office licences, so the -unlicensedOnly flag would not work.

    Example Code
    #PS Version 4.0 +
    (get-msoluser -UserPrincipalName '[email protected]').licenses.servicestatus.Where({$_.ServicePlan.ServiceName -eq 'OFFICESUBSCRIPTION' -and $_.ProvisioningStatus -eq 'Success'})
    #PS Version 3.0
    (get-msoluser -UserPrincipalName '[email protected]').licenses.servicestatus | ? ({$_.ServicePlan.ServiceName -eq 'OFFICESUBSCRIPTION' -and $_.ProvisioningStatus -eq 'Success'})
    Regards Chen V [MCTS SharePoint 2010]

  • Issues using SharePoint PowerShell cmdlets using PowerShell Remoting

    We are having an issue with the SharePoint 2010 management cmdlets inside of a PowerShell Remoting session.
    Here is a example code output (stripped of company-specific data):
    Windows PowerShell
    Copyright (C) 2009 Microsoft Corporation. All rights reserved.
    PS C:\> $Server = "server.domain.msd"
    PS C:\> $Credential = Get-Credential "domain\admin"
    PS C:\> $Session = New-PSSession -ComputerName $Server -Credential $Credential -Authentication "CredSSP" -UseSSL -SessionOption $(New-PSSessionOption -SkipCNCheck -OperationTimeOut 0 -OpenTimeOut 10000)
    PS C:\> Enter-PSSession $Session
    [server.domain.msd]: PS C:\> Add-PSSnapin "Microsoft.SharePoint.PowerShell"
    [server.domain.msd]: PS C:\> New-SPUser -UserAlias "domain\spadmin" -sitecollectionadmin -web "http://sharepoint"
    New-SPUser : You need to be a site collection administrator to set this property.
    + CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletNewUser:SPCmdletNewUser) [New-SPUser], SPExcepti
    on
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewUser
    [server.domain.msd]: PS C:\> whoami
    domain\admin
    [server.domain.msd]: PS C:\>
    However if I run the command on the remote system inside of an RDP session it works fine:
    Windows PowerShell
    Copyright (C) 2009 Microsoft Corporation. All rights reserved.
    PS C:\> Add-PSSnapin "Microsoft.SharePoint.PowerShell"
    PS C:\> New-SPUser -UserAlias "domain\spadmin" -sitecollectionadmin -web "http://sharepoint"
    UserLogin DisplayName
    i:0#.w|domain\... DOMAIN\spadmin
    PS C:\> whoami
    domain\admin
    PS C:\>
    This looks like it has something to do with WinRM not being an elevated shell, because when I use the SharePoint API inside of WinRM I need to use RunWithElevatedPrivileges.  Does anyone know of a way around this limitation?

    Hye i found a way to run sharepoint cmdlets from remote computer on this blog. Actually we need to use credssp authentication mechanism.
    hope it helps others.
    http://www.liberalcode.com/2013/04/running-sharepoint-cmdlets-from-remote.html

Maybe you are looking for

  • Limit Values in Open/closed Activities of BP Page

    Hi, On the BP overview page we have views displayed for 'Open Activities' and 'Closed Activiities'. By default they would display all open/closed activities. After a while this can become a lot (and slow, and not very useful). So, there is a view (CR

  • Hp (compaq) mini 110c - no boot with Western Digital Scorpio Black WD5000BEKT

    Dears I just bougth Western Digital Scorpio Black WD5000BEKT plug in and no boot   I have black screen, HD is alive because i hear is started and the HD led blink in same frequency so looks like Bios cannot read HD firmware to do initialization. Moth

  • How can I disable all multimedia features in firefox?

    When visiting certain websites there are sometimes annoying popup windows in the background with video and sometimes also audio. I would like to disable these features in Firefox, having audio blasting out of my loudspeakers at max loudness all of a

  • Palm Pre not charging...

    I'm on my 3rd battery and 2nd unit, 2nd setof cables and plugs/coils... When I go to bed, the phone says it's charging...when I wake up it's deader than George Washington!  I've attempted charges via USB AND induction coil...having same results with

  • SSRS Reportmanage scroll issues

    Hello, I have developed the SSRS report using BID's and have deployed it to report server and when I try to view the report in the report manager it does not show the entire report and horizontal scroll bar appears even though there is lot of space i