Jump to content
Welcome to our new Citrix community!
  • MCS Static Reboots in Studio


    cugcblogs

    raydavisrnd.png by Ray Davis

    During this COVID-19 pandemic, I had to build 500 VDI desktops. I could only use dedicated machines because of how some software is licensed. I didn’t really care for this, but I had to do what was needed to provide remote support. This was my experience, in getting an automatic reboot with MCS Static (dedicated machines).

    1. Set the Delivery Group to the following.
    2. I set the peak hours to be 24/7.
    3. I specified that when the user logs off, it will shut down the machine.
    4. I will explain this in more depth below.
    davis052720-01.png.e43cfb82b978abc51c98ac90c0d412cb.png

     

    5. We have a disconnect timer set to 5 minutes. After 5 minutes, it will log the users off. Based on the value set for “when logged off-Shutdown” (shown above), it will kick-in to send the machine into a shutdown state.

     

    davis052720-02.png.00ced2c1b5f0b297b7ae46db3f4c6629.png

     

    6. In order to have machines power on automatically during peak hours, run the following command against the Static/Persistent Desktop Delivery Group. I had to set the CLI in each DG to make it seem that the machines are assigned and to turn back on. I found this command on George Spiers' site. https://www.jgspiers.com/xendesktop-xenapp-power-management/

     

    Set-BrokerDesktopGroup -Name “test Desktop” -AutomaticPowerOnForAssignedDuringPeak $true

     7. The command will tell the Catalog to turn the machines back on during the peak hour windows. Being that our peak hour windows are set for 24/7, I guess you can say it created a reboot schedule 12.

     

    8. Here is an example of a Session that is in a Disconnected state.

    9. Session time in the disconnected state (in 5 minutes it will log me off, and trigger a shutdown)

    davis052120-03.png.b710b03b2377f2e85b429fd5cd296637.pngdavis052720-04.png.dc384ac76eef72a9e85978169925e1d8.pngdavis052720-5.png.a42b167ca1b8a358eaa3a1b89704354b.png

    10. After the timer hits 5 minutes you can see what happens below.

    11. In VMware the results, once the Disconnect time happens, or the user actually logs off.

    davis052720-06.png.194a6eb88548cf92aa243e31f07b6e76.png

    12. VDA registered 30 seconds later.

    13. Desktop Launched successfully. 7:41 pm 

    davis052720-07.png.d0ee92bdef2449e29ad6226f030333af.png

    This is a quick and simple way to get reboot on Static-dedicated MSC machines.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...