Installing Desktop-Experience on CloudServices WorkerRole with osFamily=3

I have a startup task that runs elevated for a worker role:
    <Startup>
      <Task executionContext="elevated" taskType="background" commandLine="startup.bat" />   
</Startup>
I have tried a variety of things but am left wanting:
powershell -command "Set-ExecutionPolicy Unrestricted" >> transcript.txt 2>&1
powershell -command "Install-WindowsFeature -Name Desktop-Experience -Restart" >> transcript.txt 2>&1
Another attempt:
REM : Install desktop experience if havent already
IF EXIST "step1done.txt" (
ECHO Already installed desktop experience so moving on >> transcript.txt
) ELSE (
ECHO ran desktopexperience install > step1done.txt
powershell -ExecutionPolicy Unrestricted -command "Install-WindowsFeature -Name Desktop-Experience" >> transcript.txt 2>&1
GOTO RestartForDesktopExperience
... OTHER SETUP STEPS ...
EXIT /b 0
:RestartForDesktopExperience
powershell -ExecutionPolicy Unrestricted -command "Restart-Computer" >> transcript.txt 2>&1
I have tried a variety of other things as well, but nothing seems to work. I would appreciate any thoughts?
Note: I am using osFamily=3 which is Server 2012 and therefore this link does not work for me: http://social.msdn.microsoft.com/Forums/en-US/8852425b-7253-4552-96c7-b26703f95521/action?threadDisplayName=install-desktop-experience-programmatically

Hi,
I test this powershell command line on my Server 2012 azure VM, the Desktop Experience install successful, so, maybe there is something wrong with the function that use a PowerShell Script as a Startup Task, please have a look at below document.
#http://msdn.microsoft.com/en-us/library/azure/jj130675.aspx
Best Regards,
Jambor
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.

Similar Messages

  • Does installing Desktop Experience on Windows Server 2008 R2 SP1 slow down the server / increase processor usage?

    Hello.
    I'm running a tekkit classic (Minecraft) Server on a dedicated server I got from OVH, Im just wondering - Im currently using ClamAV for an antivirus, But I would like windows defender.
    Im wondering if installing Desktop Experience on my dedi would increase processor usage or slow down the dedi even slightly.
    System Specs:
    RAM: 32GB DDR3 ECC 1600MHz
    CPU: Intel Xeon E3-1245v2
    HDD: 2x2TB SATA (Both used, specified as different drives)
    OS: Windows Server 2008 R2 SP1
    Theres only 1 indev tekkit server currently running on there, Im getting 0-5% processor usage. I may be setting up more modpack servers  - but im wondering if installing desktop experience would increase the processor usage or slow the dedi down.
    Thanks.
    Joseph

    Hi Joseph,
    This is the forum for Microsoft BizTalk Server, you've asked your question in the wrong forum.
    I suggest posting your question in the Windows Server forum
    http://social.msdn.microsoft.com/Forums/en-US/home#forum=winserver2008appcompatabilityandcertification&filter=alltypes&sort=lastpostdesc&content=Search
    Glenn Colpaert - MCTS BizTalk Server - Blog : http://blog.codit.eu

  • Unable to Install Desktop Experience Feature

    Hello,
    I'm configuring a 2012 R2 server as an RD Session Host.  Whenever I try to install the Desktop Experience feature, I get the below error.  This happens both from the GUI and from PowerShell.  The feature is listed with an Install State of
    "Available" in PowerShell.  I've tried specifying an alternate source path by pointing to the WinSXS folder on another 2012 R2 server with the same feature installed, but I still get the same error.  Rebooting has not helped.  On the
    problem server, I'm able to install other features without issue.  
    Has anyone else ever ran into this issue before?
    Thanks.
    Install-WindowsFeature : The request to add or remove features on the specified server failed.
    Installation of one or more roles, role services, or features failed.
    The system cannot find the path specified. Error: 0x80070003
    At line:1 char:1
    + Install-WindowsFeature -name desktop-experience
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
        Exception
        + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
       owsFeatureCommand

    Hi MDDDD,
    Please also check the event log and find the relevant error or failure information.
    In addition, we can specify the source file to a side-by-side store (referred to as SxS) in installation media or to a WIM file in the "-Source" parameter of the cmdlet "Install-WindowsFeature":
    installation media path:
    D:\Sources\SxS\              
    To specify a WIM file, add a WIM: prefix, and add the index of the image to use in the WIM file as a suffix, as shown in the following example.
    WIM:\\server_name\share\install.wim:4
    You can find the Index of the image file by typing:
    dism.exe /get-imageinfo /imagefile:\\server_name\share\install.wim
    For more detailed information to install feature, please go through this article:
    Install or Uninstall Roles, Role Services, or Features
    If there is anything regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

  • Can't Install Desktop Experience on Server 2012 - Sources problem

    Hi Guys,
    I have been struggling to install the Desktop Experience (Which includes Ink and Handwriting Services) feature on a new Server 2012 VM, and I haven't been able to.  It always says it can't find the sources ("Do you need to specify an alternate source
    path?"), even though the DVD image is readily accessible to the server I try yo deploy this to (the same server where I tried to add the feature from).
    I think I have tried pretty much everything (From UI through Server Manager, to PowerShell and DISM), and I get "The source files could not be found".    
    My preferred method would be the UI one, but I still can't figure out what I am missing.  The Server 2012 image is available on the server directly (through Hyper-V CD mount). 
    I know that by default, Windows will try to use Windows Update to get the feature files from (if no offline location is specified), but for some reason that one fails too.
    I tried using as a source location (My understanding is that the files are inside the WIM): 
    -    WIM:E:\Sources\Install.wim:2
    -    E:\Sources\SxS\
    -  Mounting the WIM in a folder on the C drive through DISM, and reference that path in the "Add Roles and Features screen"
    And of the countless times I've tried, I always get "The source files could not be found. Try installing roles, role services, or features again in a New Add Roles and Features Wizard session, and on the confirmation page of the wizard, click "Specify an
    alternate source path" to specify a valid location of the source files that are required for the installation. The location must be accessible by the computer account of the destination server."
    I have rebooted the server, and I have made sure the DVD image is available (by opening the E drive on windows explorer and browsing through the installer folders.
    As a side note, on this server I also installed .NET 3.5 from this same offline source, by referencing "E:\Sources\SxS\" as the install source, and everything went just fine.  Still not sure what I am missing.
    Thoughts?

    Thansk Yan!  
    That clarifies why try to install it was failing.  However, I have some other questions:
     - How did this happen (This OS was installed from the regular Server 2012 Standard - Not Server Core that was converted to the GUI version)?. 
     - How can I fix it (Make Desktop Experience be listed as "Available") ?
    UPDATE: 
    I tried installing the Desktop-Experience feature through PowerShell but this is what I got:
    PS C:\Users\administrator.MF> Install-WindowsFeature Desktop-Experience -Source WIM:D:\Sources\Install.wim:2
    Install-WindowsFeature : The request to add or remove features on the specified server failed.
    Installation of one or more roles, role services, or features failed.
    The source files could not be downloaded.
    Use the "source" option to specify the location of the files that are required to restore the feature. For more
    information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f0906
    At line:1 char:1
    + Install-WindowsFeature Desktop-Experience -Source WIM:D:\Sources\Install.wim:2
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
        Exception
        + FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsF
       eatureCommand
    Success Restart Needed Exit Code      Feature Result
    False   No             Failed         {}
    UPDATE 2:
    I mounted the WIM in a folder on the c drive through the command:
    C:\WIM\Windows\WinSxS>Dism /Mount-Wim /WimFile:D:\Sources\Install.wim /Index:2 /MountDir:C:\WIM /ReadOnly
    And ran the install feature again, now pointing to the actual WimSxS folder (as described here:
    http://technet.microsoft.com/en-us/library/hh831786.aspx):
    PS C:\Users\administrator.MF> Install-WindowsFeature Desktop-Experience -Restart -Source c:\wim\windows\winsxs
    Install-WindowsFeature : The request to add or remove features on the specified server failed.
    Installation of one or more roles, role services, or features failed.
    The source files could not be downloaded.
    Use the "source" option to specify the location of the files that are required to restore the feature. For more
    information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f0906
    At line:1 char:1
    + Install-WindowsFeature Desktop-Experience -Restart -Source c:\wim\windows\winsxs
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
        Exception
        + FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsF
       eatureCommand
    Success Restart Needed Exit Code      Feature Result
    False   No             Failed         {}
    I am still getting the same result.. Sources not found.

  • Installing desktop software on new laptop with Vista

    I had a laptop with XP and everything worked fine.  Got a new one with Vista and now the software will not install.  It did install properly (at least I thought) once, but then would not sync with the device.  I tried 4.2 and I tried 4.7, both from the Blackberry site.  I keep getting the error message "windows is shutting down the desktop software installation and will notify you of a solution".  This is after 20-45 minutes of downloading.  My device is a Verizon Curve.  Any thoughts?

    I installed it twice each time under program file as it wouldn't recognize the program file(x64) folder. I created an adobe folder under program file and installed there which when perfectly well including name, serial number until disc 3 of CS2 suite.
    Interestingly when I opened photoshop it showed the correct name and serial number but the error statement I first commented showed.
    Perhaps I am just going to have to spring for CS4

  • Installing Adobe Flash Player on W2K12 R2 without Desktop Experience

    I am trying to get Adobe Flash Player installed using some type of stand alone installer rather than enabling the Desktop Experience feature of W2K12 R2. Enabling Desktop Experience had undesirable performance degradation, so I am looking to just run a stand alone installer.
    I've spoken with Microsoft and they say this is not a Windows limitation, but rather something Adobe is not allowing. I've tried stand alone instalers for Flash 11, 12, and 13. 11 and 12 saying IE already has Flash built-in and 13 finishes installing, but is not shown as a plug-in in IE.
    Has anyone had any luck getting Flash Player without Desktop Experience? Any thoughts are helpful.

    Win2012, like Win 8, has Flash Player embedded into IE by Microsoft. The ActiveX plugin cannot be installed from any download here. There is a Windows Update KB patch and two registry keys that prevent it. Unless you manually remove those, the only way to do anything with Flash Player ActiveX for Win8 or Win2012 is through Windows Update.
    Those losers in Redmond (or India) only told you to get it fixed here because they REFUSE to accept responsibility for the gabrage browser they shoved down everyone's throats with IE11.
    If you're in a corporate environment and cannot use another browser, then the best you can do is repair IE (http://support.microsoft.com/kb/318378) and run Windows update again.
    If you need the "standalone" Flash Player Projector, it's here: Download the Windows Flash Player 13 Projector
    If you need the plug-in for other browsers, it's here: Flash Player Plug-in (All other browsers)
    But there is no updating the ActiveX plug-in from here, in spite of what Microsoft told you.

  • I don't know if this is the right section but I experience the following issue with Adobe Acrobat Pro XI installed on Windows 8.1. When I start Acrobat the related window opens normally but, after some scroll up and down along the document, it blocks, Acr

    I don't know if this is the right section but I experience the following issue with Adobe Acrobat Pro XI installed on Windows 8.1. When I start Acrobat the related window opens normally but, after some scroll up and down along the document, it blocks, Acrobat doesn't respond to any command I can give and, in place of the pointer arrow, a vertical bar, as the one of the text editor appears. The only way I can stop Acrobat is by means of the task manager. I tried to de-install and the re- install Acrobat but the behaviour is always the same. What can I do??

    Have you opened Acrobat and gone to Help>Updates to get an updated install?

  • Missing PC Settings after install of Desktop Experience

    I managed to installed the desktop experience and after a restart the option to change PC Settings was available.
    However, after running Windows updates and installing these the PC Settings option has now disappeared.
    Can anyone help please.
    Thanks
    Peter

    Hi,
    Thanks for the reply.
    Unfortunately, it was a fresh install and there were 30 odd updates installed.
    None of the updates failed so its almost impossible to say which if any may have casued the problem.
    You mentioned about disabling and re-enabling the feature, could you advise where I find this so I can check it out.
    Also on the metro style display the PC settings icon is still there but when you double click it, it fires up then dies.
    Thanks for you help.
    Peter

  • Will Installing LTR5 from CC  be compatible with full version LTR 5.7 on desktop ? will it over write any settings i have and what purpose will this serve?

    will Installing LTR5 from CC  be compatible with full version LTR 5.7 on desktop ? I bought the standalone LTR5  couple years ago .So  will CC LTR5 overwrite any settings i have in This application ?And simply merge with what I have on desktop without too much trouble ? I have over 10,000 photos in Libraryin LTR5.7   Do  I Leave LTR5 IN CC alone even tho I am  paying for the Photgraphy package at 9.99?. whats the difference between the Lightrooms ? Thanks on clarifying !

    There is only one version of the Lightroom program. The Lightroom standalone version, the student version, and the CC version are all the same program. The only difference is in how they are licensed. The standalone version that you are using is activated with a serial number. The CC installation is activated with your Adobe ID and Adobe password. I would suggest that you uninstall your standalone version. Then you will be able to install Lightroom from the creative cloud application manager. The application manager will keep track of updates for you as they are released. And when Lightroom 6 is released you will get it automatically, no additional charge, as part of your creative cloud subscription.
    Uninstalling your current Lightroom will uninstall the program, but will leave the catalog and all user files as well as all of your images on the computer. Once you have installed Lightroom from the creative cloud manager you will be able to simply double-click on the desktop icon (which will look just like the old one) and start right where you left off. Everything will be intact, business as usual. I know this because I went through the process I have described when I joined the creative cloud. It happened just as I have described. There were no problems in switching.

  • W2008 : Installing Feature "Desktop Experience"

    Hi,
    I'm trying to install the "Desktop experience" feature on my windows 2008 server but the installation get stucked on 10%, whatever I use the GUI interface or powershell.
    All updates are installed.
    I can't find any log about that ...Any idea about a solution ?
    Regards.

    Hi infoada33,
    1. Open “services.msc”, check “Windows Module Installer”, let me know the “startup type” of it.
     2. Change the startup type to “Automatic” if it was not.
    3. Backup and delete the PendingRenames folder and its contents in
    C:\windows\winsxs\temp
     5. Backup and delete the pending.xml file from
    C:\windows\winsxs\ (If any)
    Note: please check this in command line as it was a system/hidden file:
    Dir /a /s 
    C:\windows\winsxs\pending.xml
    Base on my experience it some times occur when System Center 2012 Endpoint Protection installed on 
    the server. After uninstall Endpoint the feature successfully installed, then reinstall the Endpoint.
    More information:
    Desktop Experience Overview
    http://technet.microsoft.com/en-us/library/cc772567.aspx
    I’m glad to be of help to you!
    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]

  • Install Disk Cleanup without Desktop Experience?

    Is it possible to install the Disk Cleanup utility in Windows 2012-R2 Server Core WITHOUT having to install the stupid "Desktop Experience"? If so, how is it done?
    Thank you,
    Ed

    Hi there
    Go to  C:\Windows\winsxs\ and search for cleanmgr, hopefully should be in there?
    Cheers
    Dale

  • Why do we need to need Desktop Experience to get Disk Cleanup?

    Why do we need to need Desktop Experience to get Disk Cleanup? What other options do we have?

    Hi,
    Disk Cleanup cannot be installed separately. This is part of desktop experience. 
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/2af659cb-51b2-4ca6-ba56-0a507979fe7d/disk-cleanup-cleanmgrexe-in-windows-2008-server-without-desktop-experience?forum=winserverManagement
    Regards,
    Rafic
    If you found this post helpful, please give it a "Helpful" vote.
    If it answered your question, remember to mark it as an "Answer".
    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

  • Can't install itunes due to a problem with windows installer package

    hello there i can't install itunes due to a problem with the windows installer package i found a page on this site (here is the link) http://docs.info.apple.com/article.html?artnum=304405 i done every thing on it and i still haven't been able to fix the problem i have tryed the following unstalling itunes deleteing the registry keys deleteing all the temp files disableing all anit-virus software and anit-spyware. runing cc clearner downloading a new installer for itunes and windows installer and the script thing. and trying to reinstall. nothing seems to work i don't know what else to do this is the error message i get when i try to install i tunes. "there is a problem with this windows installer package.
    A program required for thsi install to complete could not be run.
    Contact your suupport personnel or package vendor."
    Please Help i would be most greatfull for any advise given
    Message was edited by: Joe_TLC

    I pulled my brains out trying to figure this bug out and I may have a solution for you.
    All of it installed fine in my desktop, but a friend's laptop got the error you mentioned on quicktime, itunes, flash, officeXP and about anything else I tried to load for him.
    If you look in: C:\documents and settings\<username>\Local Settings\Temp there will be an iTunes install log...open it in Notepad and see if it isn't exiting with a 1619 error while running msiexec.exe
    If this is the case, this fix should work for you.
    Seems some configurations of XP (and possibly Vista) aren't allowing full administrator rights to the account you set up when you installed XP (even though User Editor says you do have those rights.)
    I read 2 MS articles and turned off simple file sharing, then gave ownership of the entire C: drive to the administrator. Logged the admin account off, logged his "admin" account in, and then gave rights to his personal directory to his account (c:\docs and settings\<username>)
    Once I did that, every install that had previously errored out performed flawlessly.
    The MS articles in question:
    http://support.microsoft.com/?kbid=316309 (1619 error)
    and
    http://support.microsoft.com/?kbid=308419 (how to set special permissions)
    Hope this helps!
    Doc

  • I am tryed to install ubuntu 14.4 lts along with windows 8.1 in my HP 2000 - 2d49tu

    I am tryed to install ubuntu 14.4 lts along with windows 8.1 in my  HP 2000 - 2d49tu, but ubuntu does not detect windows 8.1 in the system

    It is critically important for you to have created Recovery media before attempting to create a dual boot installation. Make sure that it works by performing a Factory Image recovery.
    Make sure that the Ubuntu type matches the Windows 8,1 type. That is critical for a dual boot installation.
     A 64-bit OS type will see or recognize other 32 and 64-bit operating system.  
    If you have a 32-bit Ubuntu it will not see Windows 8.1 as being present.
    A 64-bit version of Ubuntu will work well with a 64 or 32-bit version of Windows 8.1.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Install Windows 8 on macbook pro with external dvd drive

    My superdrive have broken, anyone have experience installing windows 8 on macbook pro with external dvd drive?
    Last night, I tried but end of with black screen.

    Bguzryanto wrote:
    the main point is 'anyone have exprerince install windows 8 with external dvd drive on macbook pro'
    Purchase new superdrive, takes 2-3 weeks for shipping at my city.
    It can't be done. If your computer has an internal optical drive, working or not, that is the drive you must use. Only computers such as the Macbook Pro Retina/Macbook Air that have no internal optical drive can install Windows from an external drive.

Maybe you are looking for

  • Need HELP with sync settings foe nokia E51

    Nokia E51 Hi, i am trying to setup the syc setting so i can attempt to transfer my contacts to my cars bluetooth, i have looked at some suggestions but they dont seem to work. This is how far i am at the moment. FIRST PAGE INCLUDE IN SYNC - YES DATAB

  • User decision step agent issue

    Hi All In my WF I get a user profile back from a method that check a ZTABLE for the correct user to receive mail and a user decision work item . The mail step is working correctly and sending mail to the user (as per the parameter returned from the m

  • I have two questions *NEW TO MAC PLEASE HELP*

    Hi I've been a windows user basically my whole life and am now entering the new realm of mac. For now I have two basic questions: (1) I want to select certain files and delete them, but I dont want to select all of them, and I dont want to select one

  • Import from Corel Photo Album 6

    I'd like to import a library of a few thousand photos from Corel Photo Album 6 into iPhoto '08. The photos in Photo Album include a Picture Title which is stored in the Photo Album database, not in the photo file and is different from the File Name.

  • Socket is kept alive when it shouldn't be .... Linger & Reuse For windows?

    Hello all! Hope I can get a hand on this problem I'm having. Problem is as follows: Extremely simplistic code is used to create a ServerSocket, and then connect to the port to get a datastream. The code isn't the problem. What is the problem is that