How to install roles and features via a script linked to an OU, to automate server builds

Hi all
I like to automate the installation of roles and features applied to servers via GPO script.
For my bare metal 2008 R2 installations, a simple .cmd script with something similar to below...
ServerManagerCmd.exe -install NET-Framework-Core Hyper-V Desktop-Experience SNMP-Service -restart
...added to the RunOnce registry key via GPO would deliver Roles and Features reliably.
This method does not work for me in 2012 R2.  I've spent a day searching the internet.  I cannot find a guide.  I assume I need to use Powershell now.  I am uncertain if signing scripts is a requirement for this to work for me?  Please
could you let me know a method to automate the installation of Roles and Features to 2012 R2 via scripts delivered to bare metal servers via GPO.

I think you would do better by posting in the Windows 2012 forum.  The issue is more likely that the exact name of the service or package has changed.
There are new tools in 2012 to install features and roles. I do not think they can be run from a GPO. 
Here are the instructions:
http://technet.microsoft.com/en-us/library/hh831809.aspx
They show you explicitly how to discover the available Features and Roles on 2012 and how to use PowerSHell to install them.
¯\_(ツ)_/¯

Similar Messages

  • Install Roles and Features Behavior MDT 2013

    I'm setting up a Task Sequence in MDT 2013 to try out installing Windows 8.1 for the first time. We need to add .NET Framework 3.5 so I thought I'd add a Install Roles and Features step in the State Restore section to take care of that.
    When I kick off the Task Sequence, I now see a new dialog that shows the Install Roles and Features for me to choose from. Didn't I just create a step for this? Why is it showing up asking me for my choices when I already specified what I needed? I thought
    maybe I messed up adding the step in my Task Sequence but after checking, it's still there enabled. Will .NET try and install twice now?  I have never seen the new dialog before.
    After some testing I found that if I disabled the step I added, I no longer get the Install Roles and Features dialog at the beginning. Is this expected behavior or am I missing something?
    Orange County District Attorney

    Sandy, this is known behavior when adding Roles and Features from the task sequence. Leave your TS step as is and add
    SkipRoles=YES to the customsettings.ini file.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • MDT 2013 Roles and features failing to install for server 2012 r2

    I am having issues trying to apply Server 2012r2 Roles and features via MDT 2013.
    Below I have attached the log.
    <![LOG[Microsoft Deployment Toolkit version: 6.2.5019.0]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[The task sequencer log is located at C:\Users\ADMINI~1\AppData\Local\Temp\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log.]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole"
    context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[Roles will be installed.]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[Roles specified in Role:]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  FileAndStorage-Services]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[RoleServices specified in RoleService:]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  File-Services]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  Storage-Services]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[Features specified in Feature:]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  NET-Framework-Features]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  NET-Framework-Core]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  NET-WCF-TCP-PortSharing45]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  InkAndHandwritingServices]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  Server-Media-Foundation]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  RDC]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  SNMP-Service]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  SNMP-WMI-Provider]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  Telnet-Client]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  User-Interfaces-Infra]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  Server-Gui-Mgmt-Infra]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  Desktop-Experience]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  Server-Gui-Shell]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  PowerShellRoot]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  PowerShell]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[  PowerShell-V2]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[No items were specified in variable OptionalOSRoles.]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[No items were specified in variable OptionalOSRoleServices.]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[No items were specified in variable OptionalOSFeatures.]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[ZTI Heartbeat: Processing roles (0% complete]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[Property Parameters is now = -FeatureName FileAndStorage-Services]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[Validating connection to \\WIN-7VSNJRF3PNO\DeploymentShare$\Operating Systems\Windows Server 2012 R2 SERVERSTANDARDCORE x64]LOG]!><time="10:45:23.000+000" date="08-25-2014" component="ZTIOSRole" context=""
    type="1" thread="" file="ZTIOSRole">
    <![LOG[Mapping server share: \\WIN-7VSNJRF3PNO\DeploymentShare$]LOG]!><time="10:45:24.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[Already connected to server WIN-7VSNJRF3PNO as that is where this script is running from.]LOG]!><time="10:45:24.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="1" thread=""
    file="ZTIOSRole">
    <![LOG[Copying source files locally from \\WIN-7VSNJRF3PNO\DeploymentShare$\Operating Systems\Windows Server 2012 R2 SERVERSTANDARDCORE x64\sources\sxs]LOG]!><time="10:45:24.000+000" date="08-25-2014" component="ZTIOSRole"
    context="" type="1" thread="" file="ZTIOSRole">
    <![LOG[ZTI ERROR - Unhandled error returned by ZTIOSRole: Path not found (76)]LOG]!><time="10:45:27.000+000" date="08-25-2014" component="ZTIOSRole" context="" type="3" thread="" file="ZTIOSRole">

    I have narrowed this issue down to .net 3.5 install.
    I have boot, efi, sources, support, autorun, bootmgr, bootmgr.edi, and setup.
    I have confirmed that the sxs folder is there. 
    I also just added WindowsSource=%DeployRoot%\Operating Systems\Windows Server 2012 R2 SERVERSTANDARDCORE x64\sources\sxs to my customsettings and updated the boot iso.  I am still receiving the errors.  
    One last bit of information I am able to get to the deployment share with the sxs folder in it from the reference machine I am creating but when I manually try to install .net 3.5 from roles and features to the share it fails. But if I copy the files local
    they work fine.
    I seem to have permission issues with other subfolders also.
    Thanks,
    Anthony

  • Server Manager error 0x80070422 - Roles and features are not accesible

    Hi
    I cannot view Roles and Features in Server Manager on my Server 2008 R2 box. The error is:
    Unexpected error refreshing Server Manager: The service cannot be started, either because it is disbaled or because it has no enabled devices assicaited with it (Exception from HResult: 0x80070422)
    I have looked at my services - but don't know what service to look for, everything seems to be in order.
    After some investigation on the net, I understood that I need to setup the win readiness tool, I did and the output in CheckSur file is as follows
    =================================
    Checking System Update Readiness.
    Binary Version 6.1.7601.21645
    Package Version 12.0
    2011-05-31 19:02
    Checking Windows Servicing Packages
    Checking Package Manifests and Catalogs
    (f) CBS MUM Corrupt 0x00000000 servicing\Packages\Package_for_KB2296199_RTM~31bf3856ad364e35~amd64~~6.1.1.1.mum  Expected file name Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7600.16385.mum does not match the actual
    file name
    (fix) CBS MUM Corrupt CBS File Replaced Package_for_KB2296199_RTM~31bf3856ad364e35~amd64~~6.1.1.1.mum from Cabinet: C:\Windows\CheckSur\v1.0\windows6.1-servicing-x64-apr29.cab.
    (fix) CBS Paired File CBS File also Replaced Package_for_KB2296199_RTM~31bf3856ad364e35~amd64~~6.1.1.1.cat from Cabinet: C:\Windows\CheckSur\v1.0\windows6.1-servicing-x64-apr29.cab.
    Checking Package Watchlist
    Checking Component Watchlist
    Checking Packages
    Checking Component Store
    Summary:
    Seconds executed: 4058
     Found 1 errors
     Fixed 1 errors
      CBS MUM Corrupt Total count: 1
      Fixed: CBS MUM Corrupt.  Total count: 1
      Fixed: CBS Paired File.  Total count: 1
    Here again, it seems that everything is fine.
    Thanks in advance for your help

    Hi,
    Please try to install Windows Server 2008 R2 Service Pack 1 directly and check the result. Service Pack 1 for Windows Server 2008 R2 includes all the
    previous released Windows Updates and hotfixes.
    If it does not work, you will need to copy these files from another working Windows Server 2008 R2 system to replace the corrupt ones.
    Otherwise, you will need to perform an In-Place upgrade to repair the system.
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to install plugin and exta filter in photoshop cs ? and any special filter for special effects ?

    how to install plugin and exta filter in photoshop cs ? and any special filter for special effects ?
    kindly recommend me any best one and tel me step by step how i will add more plugins n filters

    A Plug_in normally come with an installer or install instructions. Check the documentation for the plug-in you trying to install.  It sounds like you don't know what plug-ins you want to install.  In that case you don't need to install any.  At some point you may read about a plug-in and what it can do and feel you have a need for it.  Then you will have a reason to install a plug-in that is not installed by default.  There may also be a cost involved most worthwhile plug-ins are not free.
    Adobe Optional Plug_ins downloads are Plugins Adobe want to remove from Photoshop  and no longer install by default. Also at some point in time these will no longer install into the current Photoshop for Adobe will remove feature or interfaces the use. For example the CS5 optional plugins will install in Windows CS6 perpetual version 13.0.1.3 but not in Subscription version 13.1.2 or perpetual Mac version 13.0.6 fot its 64bit only and the Mac CS5 optional plug-in for Picture package is only a 32bit plug-in.
    You will need to keep and maintain old versions of Photoshop if Adobe remove features you use in new versions of Photoshop.

  • Hello, I have long been using Mozilla Firefoh, but I can't restore a theme (in the browser before I used the theme in anime), I do not remember how to install it and where to find, maybe it was not a topic, and skin. Please help me solve this problem.

    (in the browser before I used the theme in anime), I do not remember how to install it and where to find, maybe it was not a topic, and skin.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • How to block youtube and facebook via HTTPs in CX on ASA-X ?

    How to block youtube and facebook via HTTPs in CX on ASA-X ?
    now i use decrypt feature on CX module but can not block https traffic. Could you help me.

    Hi,
    Double-check your CX configuration with this guide:
    http://tools.cisco.com/squish/fCA6D
    And make sure you are redirecting HTTPS traffic to the CX
    Luis Silva
    "If you need PDI (Planning, Design, Implement) assistance feel free to reach us"
    http://www.cisco.com/web/partners/tools/pdihd.html

  • I bought 500gb iCloud storage for ł30 with my macbook air, how to install it and will i still be charged a monthly fee?

    Iibought 500gb iCloud storage for ł30 with my macbook air, how to install it and will i still be charged a monthly fee?

    sebek104 wrote:
    Iibought 500gb iCloud storage for ł30 with my macbook air, how to install it and will i still be charged a monthly fee?
    There is no 500GB iCloud storage plan, 20, 200 or 1000 are the available plans.
    What did you actually buy?

  • How to install sound and vibration toolkit 8.5

    Hello all, I have just started using labview and would like to run the "SVXMPL_Third Octave Analysis for Multiprocesor" example as an example for multithread programming, but I run into the issue that the "Sound and Vibration" toolkit is required before running the example.  I have installed the labview 8.5. I have gone through the posed link and gone through  the list of products installed in my machine (ControlPanel>Add and Remove Programs> National Instruments Software), but I couldn't find the "sound and vibration toolkit". I have tried to run the installation setup in order to add the toolkit. it looks like I have already installed all the available software. I don't know how I should install the toolkit.  I appreciate on any comments on how to install the toolkit.   I appreciate if you can help me on how to install "sound and vibration toolkit" in my machine.  

    Never mind.  I got it.

  • How to install forms and reports 6i

    I am facing a problem while installing Forms 6i. The following are the details.
    I successfully installed Oracle 9i first under F:\oracle\ora90. While installing Forms 6i, I selected the "Typical" and gave the path as "F:\oracle\ora90" and clicked on the Next Button. Immediately I got an error message as "The location specified, 'F:\oracle\ora90' is already used as an Oracle home for 'Oracle 82 Beta'. It cannot be used as an Oracle home for 'nt'".
    Could any one give the information of how to install forms and reports 6i. It ll be of great help to me.

    use F:\oracle\ora90 as your oracle-db-home
    use F:\oracle\forms6 as your forms-home
    try it
    Gerd

  • How to install videos and movies on to i touch

    i am not able to get any video files on to my i touch.it is giving a message that this format cant be played on your i pod.how to install videos and movies on to my i touch

    Videos must be in a format that iTunes and the iPod can accept. See:
    http://support.apple.com/kb/HT2729?viewlocale=en_US
    If your videos are not on the appropriate format, you'll have to convert them. Search this forum for "video convert" and you should find a number of threads about converting videos for use with an iPod.
    Regards.

  • How to install ORAESB and ORAWSM schema

    I installed oracle database 10.2. I'm not clear as to how to install ORAESB and ORAWSM schemas which are required for SOA Suite 10.1.3 installation.

    Please ignore the previous question. I've located the soa_schema directory.

  • How to install itunes and docusign in ios simulator for monodevelop

    Hi All,
    Can anyone tell me on how to install iTunes and other applications like Docusign in ios simulator that is run on Mac(monodevelop).
    Thanks

    Hi there rj 138,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Registry settings" warning when opening iTunes
    http://support.apple.com/kb/ts3299
    -Griff W. 

  • How to Install XI and EP on Single server

    Hi,
    How to install XI and EP on same server. I tried to install XI then EP . After EP installed then iam not able to access XI j2ee engine . I think some where port conflicts . I gave system number for XI : 00 and EP : 02
    Can any one help for this. Where did i made mistake.
    Thanks
    Kristene

    Hi Kristene,
    I have installed XI and EP on the same server (for test purposes) without any problems, so it should be possible. I installed them in a different order (first EP then XI), but I don't think that matters much.
    The only real difference is that I kept the system number the same.
    What do you mean exactly with not being able to access the XI j2ee engine? How did you try to access it?
    Regards,
    Martin

  • How to install html5 and css3 in my DW cs6 i cant download updates from adobe :/

    how to install html5 and css3 in my DW cs6 i cant download updates from adobe :/

    What do you mean you can't write HTML5 code?  Are you working within an HTML5 doc type?
    To make HTML5 your default doc type, go to Edit > Preferences > New Document.  Click on screenshots below.
    To create a new page, go to File > New > Blank page > HTML.  Select none from the 3rd column.  Select HTML5 doc type.  Hit Create button.
    Nancy O.

Maybe you are looking for

  • 23" Cinema Display hook up to DirecTV receiver?

    I have tried hooking up my 23" Cinema display directly to my HD DirecTV receiver. My DirecTV receiver has HDMI output. So I bought a HDMI to DVI adapter. I was not able to get a picture on the display. The monitor was continusly flashing the power LE

  • Mdt 2012 + WDS service on the same server. DHCP question

    Hi, I am using MDT 2012 on Server 2008. Boot images are placed on 6 years old WDS server running on 2003. I need to remove WDS server (2003). Cannot find exact instructions for enabling PXE for MDT2012. I don't need introduction guides. But clear few

  • How do i remove a incompatible addin that is still working ?

    I had Kaspersky anti banner working on my previous version of Firefox, Auto updated Firefox, now says anti banner is incompatible with this version of firefox! BUT it is still working, and stopping me logging into some sites. I want to disable or pre

  • Participate in an Oracle Usability Evaluation!

    The Oracle Usability group is seeking software developers to participate part in a usability study of a new Oracle product under development. The study will be held in June and July at the usability labs in Thames Valley Park, Reading UK. Participati

  • Can't see the new version of the website after clearing cache and history

    I am updating images and changing my location but FF still shows me old images. I have cleared the cache and history but nothing worked. For location thing, I switched my location from NY to HI and back to NY but my browser still shows content from H