I'm running a few Server Core servers and on a few occasions have had to add a Feature or two. Recently, I was missing a few prereqs for the certain feature I was trying to install.
However, the only way I was able to determine what exactly I was missing, I had to resort to a GUI install of Server 2012 to see what exactly I was missing from my install.
My question is: Is there a way to determine prereqs for a Feature via powershell. I know there are a few flags for the Install-WindowsFeature cmdlet, but none of which get me the information I need.
Thanks so much and keep up the awesome job!
Determining WindowsFeature prerequisites via POSH
I'm not sure this is the most elegant way to do this...actually, I'm sure it's not the elegant way to do it.
First, run the Get-WindowsFeature. Make sure you can find the name of the feature you're trying to install.
Second, you can use the -whatif flag to help...this will simulate the install but not actually do it, so it will tell you if you're ready to install or not. I'm not sure if it will give you everything you want but it's worth a try.
e.g. Install-WindowsFeature -Restart-Whatif (should simulate install and if a restart is necessary as well.)
check out this link for more details:
http://books.google.com/books?id=FSSKAwAAQBAJ&pg=PA340&lpg=PA340&dq=Install-WindowsFeature+Hyper-V+–Restart+–Whatif&source=bl&ots=ehY-Rv8ZzP&sig=nujGrZdDLvBWoj7wjqUS3L4KS1I&hl=en&sa=X&ei=8ukOVPq-G4vKgwSEt4HYAQ&ved=0CCgQ6AEwAQ#v=onepage&q=Install-WindowsFeature Hyper-V –Restart –Whatif&f=false
*if the post above has answered the question, please mark the topic as solved.
**All "answers" and responses are offered "as is" and my opinion. There is no implied support or guarantee by the ITProTV team.