Subscribe: Posts | Comments
  • Home
  • About Webster
  • Download Scripts
  • Conferences
  • Testimonials
  • Contact
  • Archives
  • Sitemap
  • Store
Carl Webster
  • Active Directory
  • Blog
    • Certification
  • PVS
  • Web Interface
    • Receiver
    • Secure Gateway
  • Presentations
  • PowerShell
  • XenApp
    • XenApp 5 for Windows Server 2003
    • XenApp 5 for Windows Server 2008
    • XenApp 6 for Windows Server 2008 R2
    • XenApp 6.5 for Windows Server 2008 R2
  • XenDesktop
  • XenServer
  • Conversant Group
    Conversant Group

    Adding the Local Administrator Account as a Full XenApp Farm Administrator Using Microsoft PowerShell

    January 26, 2014

    Blog, PowerShell, XenApp, XenApp 5 for Windows Server 2003, XenApp 5 for Windows Server 2008, XenApp 6 for Windows Server 2008 R2, XenApp 6.5 for Windows Server 2008 R2

    Scenario: You are locked out of the Delivery Services Console or AppCenter or AppCentre and you need in.  How?  There is a tool called SlimJim you can use or you can use one line of PowerShell.  Obviously, I would prefer PowerShell over an unsupported utility even if the utility works.

    Here is a screenshot of my XenApp 6.5 AppCenter showing there is no local administrator account.

    Note: My domain is Webster.

    AppCenter with no Local Administrator
    AppCenter with no Local Administrator

    The first thing I do is open a PowerShell session.  Next I type in add-pssnapin *citrix* to load the Citrix XenApp PowerShell cmdlets.  Next I type in hostname to verify the name of the local XenApp server.  Then I type

    new-xaadministrator LocalServerName\administrator -Enabled $True -AdministratorType Full

    to add the XenApp server’s local administrator account as a Full Farm Administrator.  Since the local administrator account has the same name on every server this effectively adds the local administrator from every XenApp server as a Full Farm Administrator.

    PowerShell Session
    PowerShell Session

    Finally I verify in AppCenter the account was added.

    AppCenter with Local Administrator as a Full Farm Administrator
    AppCenter with Local Administrator as a Full Farm Administrator

    To verify the local administrator account had access to AppCenter, I logged in as the local administrator and ran AppCenter.

    Logged in as Local Administrator
    Logged in as Local Administrator
    Running AppCenter as Local Administrator
    Running AppCenter as Local Administrator

    Granted, you will not have access to AppCenter of the Delivery Service Console but this is just to show you this one line of PowerShell works to add the local administrator account into your XenApp Farm as a Full Farm Administrator.  I only tested this on XenApp 6.5 but the same PowerShell command should work on XenApp 6, XenApp 5 for Server 2003 and XenApp 5 for Server 2008.

    Update 30-Jan-2014: I have now tested this on XenApp 5 for Server 2003, XenApp 5 for Server 2008, XenApp 6.0 and XenApp 6.5.

    Thanks

    Webster







    Conversant Group
    Conversant Group

    About Carl Webster

    Webster is a Sr. Solutions Architect for Choice Solutions, LLC and specializes in Citrix, Active Directory and Technical Documentation. Webster has been working with Citrix products for many years starting with Multi-User OS/2 in 1990.

    View all posts by Carl Webster →

    Subscribe

    Subscribe to our e-mail newsletter to receive updates.

    Related Posts:

    • All Version 4.1x Scripts Have Been Updated 20-May-2014
    • Do you want your language supported in V4 of the Citrix documentation scripts?
    • All Documentation Scripts That Create Microsoft Word Documents Have Been Updated 14-MAR-2013
    • Important Information for Those Using My Documentation Scripts
    • All Documentation Scripts Have Been Updated 4-Jun-2014

    Post navigation

    ← My Experience with CTX138640, vCenter 5.1, XenDesktop 7.1 and the Dreaded “Cannot connect to the vCenter server due to a certificate error”
    Opinion: XenApp vs XenDesktop →

    6 Responses to “Adding the Local Administrator Account as a Full XenApp Farm Administrator Using Microsoft PowerShell”

    1. Venkat Says:
      October 10, 2016 at 11:23 am

      Hello,

      The admin in the organization left and before adding a new admin, the admin account has been removed. Is there any way to add a new admin through a backdoor? We have full windows privilege but wanted to add ourself to xenapp admin.

      Thanks.
      Venkat

      Reply

      • Carl Webster Says:
        October 14, 2016 at 8:38 am

        Look at the second comment left about Slimjim for XenApp.

        Also look at http://citrixtechs.com/blog/citrix-xenapp-6-locked-out-of-the-citrix-discovery-services-console/

        Webster

        Reply

    2. Jim Says:
      August 4, 2015 at 3:42 pm

      This does not appear to work unless the account executing the command is already a citrix administrator. What do you do if the only account that has administrative privledges is a domain account that has been deleted?

      Reply

      • Carl Webster Says:
        August 4, 2015 at 3:48 pm

        Then you have to follow the instructions from super, duper, uber, genius Denis Gundarev.

        http://www.slideshare.net/fdwl/how-to-hack-citrix-so-you-just-inherited-someone-elses-citrix-environment-how-do-you-figure-out-whats-what

        Look for Slimjim for XenApp.

        Webster

        Reply

        • Jim Says:
          August 4, 2015 at 4:30 pm

          The version of Slimjim that says it’s for Xenapp 6.5 doesn’t work either. The debugging tools install to a different directory than is in the batch file, and again you can’t run the command unless you’re already a Citrix administrator.

          Reply

    3. Ganesh Says:
      February 20, 2014 at 11:04 pm

      This is cool. Thanks a lot for sharing!

      Reply

    Leave a Reply

    Click here to cancel reply.

Support Script Development

I've spent numerous hours working on the many documentation and miscellaneous scripts, which are freely available, for both personal and commercial use, here on my site.

If you'd like to say thanks, please consider making a donation to keep them going!

Goliath Technologies

Goliath Technologies

SysKit Monitor

Cost-Effective Application on Any Device

Cost-Effective Application on Any Device

ControlUp

Next-gen EDGE OS for Cloud Workspaces

Next-gen EDGE OS for Cloud Workspaces

CTP Logo

Carl Webster is a Citrix Technology Professional

JOIN THE IGEL COMMUNITY

JOIN THE IGEL COMMUNITY

Parallels VIPP

Parallels VIPP

Experts Exchange Badge

#1
#2
#3
Questions Answered
Articles Written
Overall Points

CCE-V

Subscribe

Subscribe to our e-mail newsletter to receive updates.

Featured Downloads

  • XenApp 6.5 (138315 downloads)
  • All Scripts Zip File (63139 downloads)
  • XenApp 6 (49225 downloads)
  • Provisioning Services (PVS) Old (39357 downloads)
  • Active Directory (30666 downloads)
  • XenApp 5 for Windows Server 2003 (19976 downloads)
  • XenApp 5 for Windows Server 2008 (18674 downloads)
  • NetScaler Old (ns.conf) (15663 downloads)
  • Microsoft DHCP (13762 downloads)
  • Active Directory Health Check (13703 downloads)
  • Popular
  • Latest
  • Comments
  • Tags
  • Where to Get Copies of the Various Scripts September 30, 2011
  • Citrix XenDesktop 7.6, Provisioning Services 7.6 and the XenDesktop Setup Wizard with Write Cache and Personal vDisk Drives December 24, 2014
  • Citrix XenDesktop 7.1, Provisioning Services 7.1 and the XenDesktop Setup Wizard with Write Cache and Personal vDisk Drives January 28, 2014
  • Documenting a Citrix XenApp 6.5 Farm with Microsoft PowerShell October 7, 2011
  • Changing a Production XenDesktop 7.1 Site to use SQL Mirroring February 11, 2014
  • Microsoft Configuration Manager 2012 R2 PowerShell Documentation Script Version 2.37 April 24, 2020
  • Microsoft Active Directory Documentation Script Update Version 2.25 April 22, 2020
  • Microsoft Active Directory Health Check PowerShell Script Version 2.07 April 21, 2020
  • Figure 3 New Script: Update Active Directory DNS Reverse Lookup Zones from Sites and Services Subnets (Update-ReverseZonesFromSubnets.ps1) April 20, 2020
  • Microsoft DHCP Documentation Script Update Version 1.43 April 17, 2020
  • Carl Webster: Thanks for the shout out. I am glad you find the s...
  • Steve: Hey Carl, this script is excellent. Great way to ...
  • Carl Webster: From Guy Leech: It depends on what account you ha...
  • René: Hi is there a way to make a shedule task with t...
  • Carl Webster: I would never clone a DC. Build a new VM and promo...
certification citrix citrix secure gateway cloning data store dhcp documentation exams GPO Group Policy How do I how to imaging ipad java license license file license server MyCitrix.com Personal vDisk powershell PowerShell V3 provisioning services publish application PvD PVS pvs 7.1 script scripts secure gateway ssl certificate upgrading virtual machine web interface wildcard ssl Windows Server 2003 Windows Server 2008 Word Word COM Object xenapp xenapp 5 xenapp 6 xenapp 6.5 xendesktop xenserver

Categories

  • Active Directory (85)
  • Blog (77)
  • Certification (5)
  • Configuration Manager (6)
  • DHCP (12)
  • DNS (15)
  • Hyper-V (1)
  • NetScaler (24)
  • Nutanix (2)
  • PowerShell (360)
  • Presentations (15)
  • PVS (87)
  • Receiver (6)
  • SCVMM (1)
  • Secure Gateway (7)
  • Server 2012 (7)
  • SMS PASSCODE MFA (1)
  • StoreFront (11)
  • Uncategorized (2)
  • Vendor Articles (3)
  • VMware (32)
  • Web Interface (20)
  • Workspace Environment Management (1)
  • XenApp (106)
  • XenApp 5 for Windows Server 2003 (68)
  • XenApp 5 for Windows Server 2008 (38)
  • XenApp 6 for Windows Server 2008 R2 (68)
  • XenApp 6.5 for Windows Server 2008 R2 (92)
  • XenApp 7.x for Windows Server 2012+ (113)
  • XenDesktop (153)
  • XenMobile (1)
  • XenServer (27)

Recent Posts

  • Microsoft Configuration Manager 2012 R2 PowerShell Documentation Script Version 2.37 April 24, 2020
  • Microsoft Active Directory Documentation Script Update Version 2.25 April 22, 2020
  • Microsoft Active Directory Health Check PowerShell Script Version 2.07 April 21, 2020
  • New Script: Update Active Directory DNS Reverse Lookup Zones from Sites and Services Subnets (Update-ReverseZonesFromSubnets.ps1) April 20, 2020
  • Microsoft DHCP Documentation Script Update Version 1.43 April 17, 2020
  • The Mysterious Microsoft DHCP Option ID 81 April 16, 2020
  • I Updated the AllCurrentScriptFiles.zip File April 13, 2020
  • How to Report On Remote Worker Activity and Key Performance Indicators (Advertiser Post) April 1, 2020
  • Citrix XenApp/XenDesktop 7.8+ Documentation Script Update Version 2.33 March 30, 2020
  • Group Policy Default Settings Reference for Citrix XenApp and XenDesktop V1.30 March 28, 2020

Copyright © 2003 - 2019 Carl Webster. All Rights Reserved.