January 25th, 2013

PowerTip: Install the File and Storage Services Tools

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to install the File and Storage Services tools.

Hey, Scripting Guy! Question How can I add all of the File and Storage Services tools by using Windows PowerShell?

Hey, Scripting Guy! Answer Use the Get-WindowsFeature cmdlet to enumerate the required tools for File and Storage Services and pipe the results to the Add-WindowsFeature cmdlet. (On Windows Server 2012 with Windows PowerShell 3.0, Add-WindowsFeature is an alias for the Install-WindowsFeature cmdlet.) This technique is shown here.

Get-WindowsFeature *file* | Add-WindowsFeature

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.