So performing that operation was fairly straight forward, but there is one slight problem -on Server Core the servermanager feature is not enabled by default. This means that we are not able to import the servermanager module and therefore unable to utilize the get-windowsfeature and add-windowsfeature cmdlets. The net result? It is not possible to enable the failover-clustering feature through PowerShell without first having the servermanager feature enabled. Thankfully Windows Server Core provides many ways to enable Windows Features. One way could be to use the tools provided by Windows 2008 Server Core such as oclist and ocsetup. Alternatively the more powerful and unified tool provided by Windows 2008R2 could also be preferred, and this is called dism. Now we know that it is possible to enable Windows features without requiring PowerShell, we have essentially one of two choices to make. The first would be to enable the failover-clustering feature directly using dism (or ocsetup) which could be desirable should you never wish to add, remove or get Windows features through PowerShell. The second option would be to first enable the servermanager feature on Server Core allowing us to simply run through the previous script listed earlier to enable the failover-clustering feature (or any other available feature) through PowerShell. To do this we simply have to run the following code from the command line :- C:\>dism /online /enable-feature:ServerManager-PSH-Cmdlets
Richard Mueller edited Revision 3. Comment: Modified title and tags
Richard Mueller edited Revision 2. Comment: Removed (en-US) from title, adjusted title casing, added tags
Patris_70 edited Original. Comment: added en-US tag and title