Subscribe: Posts | Comments
  • Home
  • About Webster
  • Download Scripts
  • Conferences
  • Contact
  • Archives
  • Sitemap
Carl Webster
  • Active Directory
  • Blog
    • Certification
  • PVS
  • Web Interface
    • Receiver
    • Secure Gateway
  • Presentations
  • PowerShell
  • XenApp
    • XenApp 5 for Server 2003
    • XenApp 5 for Server 2008
    • XenApp 6.0
    • XenApp 6.5
  • XenDesktop 5.x
  • XenServer
  • Adding the Local Administrator Account as a Full XenApp Farm Administrator Using Microsoft PowerShell

    January 26, 2014

    Blog, PowerShell, XenApp, XenApp 5 for Server 2003, XenApp 5 for Server 2008, XenApp 6.0, XenApp 6.5

    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







    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 to Carl Webster

    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!

Cost-Effective Application on Any Device

Cost-Effective Application on Any Device

10ZiG

Goliath Technologies

Goliath Technologies

DISRUPT 2021 Cloud Workspaces Experience

DISRUPT 2021 Cloud Workspaces Experience

ControlUp Get Virtualization Superpowers

ControlUp Get Virtualization Superpowers

Citrix Technology Professional Fellow

Carl Webster is a Citrix Technology Professional Fellow

vExpert 2020

vExpert 2020

Parallels VIPP

Parallels VIPP

IGEL VIP

IGEL VIP

Experts Exchange Badge

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

Subscribe

Subscribe to our e-mail newsletter to receive updates.

Featured Downloads

  • XenApp 6.5 (140210 downloads)
  • All Scripts Zip File (66147 downloads)
  • XenApp 6 (50423 downloads)
  • Provisioning Services (PVS) Old (40594 downloads)
  • Active Directory (34648 downloads)
  • XenApp 5 for Windows Server 2003 (20745 downloads)
  • XenApp 5 for Windows Server 2008 (19626 downloads)
  • NetScaler Old (ns.conf) (16495 downloads)
  • Active Directory Health Check (16415 downloads)
  • Microsoft DHCP (15604 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
  • Citrix Virtual Apps and Desktops Documentation Script V3.26 April 13, 2021
  • Citrix XenApp/XenDesktop 7.8+ Documentation Script Update Version 2.42 April 12, 2021
  • Citrix Virtual Apps and Desktops Documentation Script V3.25 April 2, 2021
  • Citrix XenApp/XenDesktop 7.x Documentation Script Update Version 1.48 April 2, 2021
  • Citrix XenApp/XenDesktop 7.8+ Documentation Script Update Version 2.41 April 2, 2021
  • Carl Webster: This was resolved through troubleshooting done by ...
  • Carl Webster: A fellow CTP should reach out to you soon to help ...
  • Deb Lauro: We are seeing the same thing, Carl, I have include...
  • Carl Webster: In my lab since everything is SSD or NVMe and all ...
  • No One: Option 81 manages the ""Always dynamically update ...
acrobat reader Active Directory adobe certification citrix citrix certification ctx129229 dhcp documentation exams excel How do I how to HP Moonshot learning license license server metaframe moonshot offline servers Personal vDisk powershell PowerShell V2 PowerShell V3 powershell V4 presentation server provisioning services PvD PVS pvs7 pvs 7.1 remoting script scripts server 2012 winframe Word word comobject Word COM Object xenapp xenapp 5 xenapp 6 xenapp 6.5 xendesktop xenserver

Categories

  • Active Directory (94)
  • Blog (91)
  • Certification (5)
  • Citrix Cloud (4)
  • Citrix Federated Authentication Service (4)
  • Citrix Virtual Apps and Desktops (113)
  • Configuration Manager (7)
  • DHCP (17)
  • DNS (21)
  • Hyper-V (1)
  • NetScaler (24)
  • Nutanix (3)
  • Parallels (2)
  • PowerShell (430)
  • Presentations (15)
  • PVS (93)
  • Receiver (3)
  • SCVMM (1)
  • Server 2012 (7)
  • SMS PASSCODE MFA (1)
  • StoreFront (8)
  • Uncategorized (3)
  • Vendor Articles (4)
  • VMware (49)
  • Workspace Environment Management (1)
  • XenApp (48)
  • XenApp 5 for Server 2003 (27)
  • XenApp 5 for Server 2008 (27)
  • XenApp 6.0 (64)
  • XenApp 6.5 (87)
  • XenApp 7.x through CVAD 2006 (9)
  • XenApp/XenDesktop 7.0 – 7.7 (102)
  • XenDesktop 5.x (53)
  • XenMobile (2)
  • XenServer (18)

Recent Posts

  • Citrix Virtual Apps and Desktops Documentation Script V3.26 April 13, 2021
  • Citrix XenApp/XenDesktop 7.8+ Documentation Script Update Version 2.42 April 12, 2021
  • Citrix Virtual Apps and Desktops Documentation Script V3.25 April 2, 2021
  • Citrix XenApp/XenDesktop 7.x Documentation Script Update Version 1.48 April 2, 2021
  • Citrix XenApp/XenDesktop 7.8+ Documentation Script Update Version 2.41 April 2, 2021
  • Citrix Virtual Apps and Desktops Documentation Script V3.24 March 25, 2021
  • Microsoft Active Directory Documentation Script V3.04 March 24, 2021
  • Group Policy Default Settings for Citrix Virtual Apps and Desktops That Changed Between 2012 and 2103 March 23, 2021
  • Group Policy Default Settings Reference for Citrix XenApp and XenDesktop V1.43 March 23, 2021
  • Home Office 2.0: Access Windows Virtual Desktop with Parallels RAS (Advertiser Post) March 15, 2021

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