Provide the ability to expose the Powershell commands behind any OS config change
When using GUI tools for the management of Windows, it would be beneficial to have an option to expose the underlying Powershell commands that a configuration change is running under the hood. This would be similar to the "Script to new query window" functionality in SSMS or the ability to see the Powershell commands being run in Exchange configuration. This would ease automation efforts and decrease the amount of time required to automate system configuration changes.
If I understand correctly, you’re looking for functionality like this one provided by System Center VMM: https://technet.microsoft.com/en-us/library/hh875023(v=sc.12).aspx
Unfortunately, this is something that would have to be implemented in each individual management application, and would only be possible on those which are actually calling PowerShell under the hood.
I highly recommend that the supporters of this suggestion file suggestions on the management GUIs where they’d like to see this functionality.
For example, if you want to see this in SMT, file something here: https://windowsserver.uservoice.com/forums/295071-management-tools
Or for SMSS, file something on their MS Connect: https://connect.microsoft.com/SQLServer/Feedback
Sorry I can’t be more help here, everyone. This just isn’t functionality that we can provide generically to all your GUI tools. :(
Tim Cerling commented
The only 'export configuration settings' I am familiar with is in Server Manager that outputs an XML file defining the initial configuration. What is needed is the ability to invoke a procedure to output the currently installed and configured implementation of any role/feature as a set of PowerShell cmdlets to recreate that environment. For example, one might have Hyper-V installed with multiple virtual switches/virtual SANs/other Hyper-V settings. A click in the Hyper-V Manager console or an Export-HyperVConfiguration cmdlet would dump the cmdlets necessary to exactly recreate that environment. And as DSC becomes more complete, output of DSC information would be very useful, too.
David Jones commented
I would love to see the PowerShell behind any change done in Server Manager or other associated tools.
Kevin Gould commented
This exists in some places. For instance, step through adding roles and features, and right before you click the "Install" in the final stage, there is an "export configuration settings" which will export a deployment template, and hovering over that link gives you the Powershell command to invoke to use it. Some effort has been put into making this facility available, so keep an eye out for it when you're using the gui to perform operations.