How do I add a feature/role to an offline .vhdx file?

Hello to Anyone that can help with this frustrating task that should be easy,
Ok I looked at Example 3 here:
http://technet.microsoft.com/en-us/library/jj205467.aspx
and tried to use that format to install features and files to a .vhdx file.  I tried different syntax but no luck.  I don't know what i typed wrong or what i should type?  If i wanted to install dns to an offline .vhdx file and that file is in
my c drive, how would i type the syntax?  I have tried and failed over and over again.  Here are some of the syntax i have tried in powershell:
install-windowsfeature dns -vhdx c:\
install-windowsfeature dns -vhdx c:\VM TEST.vhdx
install-windowsfeature -dns -vhdx c:\
install-windowsfeature -dns -vhdx c:\VM TEST.vhdx
install-windowsfeature -name dns -vhdx c:\
install-windowsfeature -name dns -vhdx c:\VM TEST.vhdx
All these syntax are wrong and am frustrated.  btw, the file i want to add dns to is "VM TEST.vhdx" 
I have researched and found this video:
http://www.youtube.com/watch?v=r30BxBawNOE
but the guy doesn't give a specific example for me to follow in regards to location of his vhd file and I am using a .vhdx.  Again all i would like to learn is how to add features and/or roles to an offline .vhdx file and i am trying with "dns"
since it is so easy to type.  What would be the proper syntax?  If anyone can chime in that would be great for this seems to be a simple 101 type of question especially for mcsa or mcse certified people out there.  I am totally new to this and
can't do this one simple task.  Help please.

Hi,
You install a feature/role to a VHD with the -Switch VHD (even if it is a .vhdx you are pointing at...)
See my example below, that installs the DNS server on a vhdx. The switch -IncludeManagementTools do also give you the management Tools for DNS (both Powershell and MMC...)
Add-WindowsFeature -Vhd "C:\SERVER.vhdx" -Name DNS -IncludeManagementTools
MCT | MCSE: Private Cloud/Server, Desktop Infrastructure

Similar Messages

  • How can I add a user Role member that is from a different domain

    We are currently building out SCOM 2012 R2 to provide monitoring as a service to some of our customers.  As of now we have the RMS on our own department's domain (Domain A) which we have full control of and we have a gateway server that is on the company
    wide domain (Domain B) so that we can monitor other departments devices as the leverage this system.
    Monitoring is working just fine on both domains and we are just working on fine tuning SCOM so that we can roll it out as a service we offer to our customers.  One of the next steps we are working on before rolling it out is giving specific users access
    to view only their own devices, dashboards, and groups.  So I created a Read-Only profile and went to add a user to test it out, but that user is on Domain B and SCOM is unable to resolve this account.  I'm seeing Event ID 26319 with Error Code 1332.
    How can I get SCOM to discover devices on a different domain so that I can give them different permissions for accessing the Operations Console and/or Web Console?  Is this possible?
    Here is the Error I'm seeing.
    Log Name:      Operations Manager
    Source:        OpsMgr SDK Service
    Date:          2/4/2015 1:11:59 PM
    Event ID:      26319
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      xxxxx.xxxx.xxxxxxxx.xxx
    Description:
    An exception was thrown while processing UpsertUserRolesV2 for session ID uuid:f3b4015e-9583-4237-b7a6-406826434553;id=40.
     Exception message: The creator of this fault did not specify a Reason.
     Full Exception: System.ServiceModel.FaultException`1[Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException]: The creator of this fault did not specify a Reason. (Fault Detail is equal to Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException:
    Unable to resolve the user [email protected] associated with the user role. Error code 1332. Check your active directory configuration.).
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="OpsMgr SDK Service" />
        <EventID Qualifiers="49152">26319</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-04T21:11:59.000000000Z" />
        <EventRecordID>172748</EventRecordID>
        <Channel>Operations Manager</Channel>
        <Computer>xxxxx.xxxx.xxxxxxxx.xxx</Computer>
        <Security />
      </System>
      <EventData>
        <Data>UpsertUserRolesV2</Data>
        <Data>uuid:f3b4015e-9583-4237-b7a6-406826434553;id=40</Data>
        <Data>The creator of this fault did not specify a Reason.</Data>
        <Data>System.ServiceModel.FaultException`1[Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException]: The creator of this fault did not specify a Reason. (Fault Detail is equal to Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException:
    Unable to resolve the user [email protected]  associated with the user role. Error code 1332. Check your active directory configuration.).</Data>
      </EventData>
    </Event>
    Thanks for any help I can get in resolving this issue.
    Jake

    The SCOM Management Server is in Domain A.  I've tried it already and it has failed.  
    So just to clarify the method I used was to go to Administration>Security>User Roles.  Then New User Role>Read-Only Operator.  In the Create User Role Wizard I then gave the User Role a name, Clicked "Add" under User Role Members.
     Then the Select Users or Groups window pops up and I changed the Locations from Domain A to Domain B and searched for the user, which it's able to find, then clicked "OK" to add it to the User Role members which it does just fine.  On
    the next page which is Group Scope I checked the one group I want this account to have access to and then click next.  This brings me to Dashboards and Views where I click the radio button for "Only the dashboards and views selected in each tab are
    approved" and chose the folder of dashboards I want this account to access and then click next.  This brings me to the Summary and I click "Create".  At this point it thinks for a moment then closes out the wizard but the new Read-Only
    Operator does not appear.  I then look in Event Viewer and see the Event I pasted above.
    Am I doing something wrong here?  Any guidance on how to get around this issue would be much appreciated.
    Thanks,
    Jake

  • How can I add a logo when I want to send files with Adobe Send?

    I have bought adobe send today. when I wanted to send the file in the pdf reader (after opening an account for adobe send), the system asked me whether I wanted to add a company logo / signature to the sent file. I confirmed, but then a pop-up window came and said I have to change some settings -----but WHERE? Cannot find a place in the menu to do this

    Hi Dirk6343,
    That feature isn't available directly through Adobe Reader. Please log in directly to your account at https://cloud.acrobat.com/send. On the right side, you'll see a box labeled Recipient Page. Select Add Your Logo & Color, and then click Edit. Click Add Logo, and then navigate to where your logo is stored on your hard disk.
    Please let us know how it goes!
    Best,
    Sara

  • How do I add time/date stamp to my screen capture file names?

    I'm on mac osx.
    I'm trying to add time/date stamp to my screen capture file names. (at the moment it's just 'Picture 1' etc..)
    I've tried the following command  in terminal but have not had success. please help!!
    defaults write com.apple.screencapture name "datestamp" at "timestamp"
    killall SystemUIServer

    Surely someone else will provide a better solution. Meanwhile, however, you might want to try the following script. Copy and paste the script into the AppleScript Editor's window and save it as an application. Then drop your screen capture files on the droplet's Finder icon.
    on open theDroppedFiles
        tell application "Finder"
            repeat with thisFile in theDroppedFiles
                set theFileName to name of thisFile
                if (word 1 of theFileName is "Picture") and ¬
                    (word 2 of theFileName = word -2 of theFileName) then
                    set theExtension to name extension of thisFile
                    set P to offset of theExtension in theFileName
                    set theCreationDate to creation date of thisFile
                    set dateStamp to short date string of theCreationDate
                    set timeStamp to time string of theCreationDate
                    set name of thisFile to "Screen Shot " & dateStamp ¬
                        & " at " & timeStamp & "." & theExtension
                end if
            end repeat
        end tell
    end open
    Message was edited by: Pierre L.

  • How can you add autonumber feature in an entity class?

    Hi guys!
    Can you pls help me with this problem, I'm new to java EE. I've got an entity class and I want to implement an auto number feature using the following code:
    { *{color:#ff0000}private static final long serialVersionUID = 1L;*
    *{color}* *{color:#ff0000}@Id*
    * @GeneratedValue(strategy=GenerationType.AUTO)*
    *{color}* @Basic(optional = false)
    @Column(name = "CUST_ID")
    private Long custId;
    But this doesn't work, it gives me the following error: "java.sql.SQLSyntaxErrorException: Table/View 'SEQUENCE' does not exist.". Can you also briefly explain to me how the database will accept this with configuration(if it will accept).

    GenerationType.AUTO:
    Indicates that the persistence provider should pick an appropriate strategy for the particular database. The AUTO generation strategy may expect a database resource to exist, or it may attempt to create one. A vendor may provide documentation on how to create such resources in the event that it does not support schema generation or cannot create the schema resource at runtime.
    http://java.sun.com/javaee/5/docs/api/
    I use Hibernate as a provider and Oracle as ad DB and had to create a seuence called HIBERNATE_SEQUENCE
    m

  • The previous owner of my iTouch deleted the option to view the itouch's playlists and videos from iTunes. I'm wondering how to re-add these features.

    No idea how to solve this. Or to word the question to research the solution on my own.

    Nevermind, I played around with it a little more and just overrode the previous sync and it fixed it.

  • How do I add meta tag data to a TIF image file

    I'd like to add information such as camera type, shutter speed, and other measurement parameters to image files that I'm creating with my IMAQ application. I have not found a good source of information on how to accomplish this. Does anybody else have any suggestions, leads or pointers?
    Thanks in Advance,
    Derek

    I've looked at IMAQ Write Image and Vision Info File 2.vi. According to the documentation, "Writes an image, along with extra vision information associated with the image, to a PNG file. This extra vision information includes overlay information, pattern matching template information, and calibration information. Note that this vision information can only be saved with the PNG file format."
    I have used the Write Custom Data.vi to write several keys to the image, before using the Write Image and Vision Info VI noted above. It does not seem that the keys can be read as metadata from the file by windows or other applications.
    It is discussed on LAVA at
    http://lavag.org/topic/5297-embedding-additional-txt-in-a-png-file-imaq-82/
    It seems like the solution should be quite simple.... not there yet.

  • How do I add a new IP to the local host file?

    One of the sites I manage has been migrated to a dedicated server. Before changing the nameservers, I need to proof all the pages. To do so, I need to add the new IP number to my local computer local host file.
    How is that done?
    OSX 10.9
    david

    Download TextWrangler, choose Open File by Name from the File menu, provide /private/etc/hosts as the path, and enter them using the same format as the 127.0.0.1 line.
    (92337)

  • When viewing the applications tab of my firefox preferences, PDF file formats are not in the list of possible formatts, how do I add it so that I can open PDF file in my browser?

    I am running OSX 10.5.8 currently, and have followed all of the tips and advice on the help sites (IE. uninstalling, installing pluggins, programs like adobe, and reinstalling firefox). I tried deleting and resetting the mimetypes.rdf file and the pluginreg.dat files. I have noticed that when you open the FF preferences window, and look at applications, there is no Portable Document Format file type listed. How do I fix this?

    Install '''PDFescape''' extension from the FF add-on gallery. I think it may help to your problem

  • How to I add options to the Context Menu for html files under Site Content

    Currently in Web Page Composer...  if a developer wants to get the Target URL to an html page in a WPC site (i.e. under the Site Content folder) they have to take several steps...   Content Menu -> Details -> Settings -> Properties -> Access Links -> copy the Target URL.  I would like to add this ability (i.e. to copy the target URL to clipboard) as a option to the "context menu" of each html file.  Does anyone know if this is possible and if so how it can be done?   It can be a global change if necessary.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Also check the Mouse driver settings in the Control Panel.

  • How can I add lyrics to media (mp3, wma, etc.) files?

    Is there any possibility to add lyrics in media files (mp3, wma, etc.) in Windows 7? I didn't get it

    For various reasons, that feature was intentionally removed from WMP12 for Win7.
    Please, please note that tags can still be edited from within Windows Explorer; however, the 'lyrics' feature was removed there.
    See zachd's responses in this thread:
    WMP 12 - Where is the Advanced Tag Editor?
    There, you'll see the reasons that ATE was removed from Media Player, as well as why 'lyrics' went away.
    HTH,
    Chris[If this post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others find the answer faster.]

  • Opted out of password mgmnt when installing Firefox; now I need it. How to add the feature?

    When installing Firefox, there was a list of items to install. I UNchecked the last one (for password mgmt) because I was going to use a different password mgr. The different password mgr (LastPass) wants the Firefox mgr to be installed. How do I add that feature I UNchecked? It does not seem to be in the "add-on" list.
    I tried to reinstall Firefox and got the message that I already have the latest version. While writing this info it occurred to me that I might UNinstall Firefox and reinstall it. Or is there a better way?

    Are you sure that this wasn't about setting up Sync?
    *https://support.mozilla.org/kb/what-firefox-sync
    See:
    *Tools > Options > Security: Passwords: "Remember passwords for sites"
    See also:
    *https://support.mozilla.org/kb/password-manager-remember-delete-change-passwords
    *http://kb.mozillazine.org/Password_Manager

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

  • How can I add jar files into the namespace in code?

    My friends:
    I need to add jar files into my namespace dynamicly in my code.But the jar files might be repeated, I am not sure.so, i wonder how can I add them into my namespace, ignoring the repeated files?
    This is my code:
    URL[] urlArrayA = new URL[5];
    urlArray[0] = sample1;
    urlArray[1] = sample2;
    URL[] urlArrayB = new URL[5];
    urlArrayB[0] = sample3;
    urlArrayB[1] = sample4;
    URLClassLoader urlClassLoaderA = URLClassLoader.newInstance(urlArrayA);
    URLClassLoader urlClassLoaderB = URLClassLoader.newInstance(urlArrayB);
    how can i visit classes in urlClassLoaderA from classes in urlClassLoaderB?

    could anyone please answer the question for me ? thank you...

  • How can if add multiple addresses into Contacts

    In OS 10.9.5 how can if add multiple addresses from from a tab separated file into contacts.
    I have a txt file with fields separated by tab and each and each record terminated a return,
    Importing using file>import tries to put all the data onto a single card
    Help

    Contacts – Import/Export

Maybe you are looking for

  • Relatório Crystal Reports (Usuário/senha)

    Boa Tarde ! Estamos utilizando a conexão OLE DB - Microsoft OLE DB Provider for SQL Server, mesmo assim este driver está exigindo a senha durante s execução dos relatórios do Crystal Reports através do Menu FerramentasVisualizar "Arquivo Crystal Repo

  • Service entry sheet report

    I would like to know, if there is any transaction that give and output on a list of -Service entry sheet number -Purchase Order Number -Condition of Service entry sheet (status: blocked, ereased) -last person who modified Service entry data sheet -pe

  • Touch Firmware- Treble Probl

    Hi Everyone, I am going to get a Zen Touch 40gig. I understand from reading previous posts that there was a problem with the firmware upgrade that the treble adjustment was not sounding right (this would be important to me as I like to be able to adj

  • Saving message when locking a window

    How do we save a message that can be used whenever we lock a remote computer. eg. Computer is no longer available for use. thanx E.D.

  • Why can't I reinstall Reader ?

    I am having trouble in installing Reader.  I always had it but was having problem in reading anything.  I removed it and tried to install by downloading again.  But it is not completing installation as it comes back with an error message about runnin