script to install windows 2008 Features remotely in 200 servers

Posted on 2011-03-01
Last Modified: 2012-06-27

i need a script in powershell or other language to install this features:

"Removable Storage Manager"

the script must take the server name from the txt file like this:


I appreciate if i have a log with successfull install of features or fail.

Thanks for your help
Question by:cawasaki
  • 4
  • 3
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 35009542
You can use ServerManagerCMD command to install roles/feature and PsExec to do it on remote servers from text file.

ServerManagerCMD explanation at

How to use it

and link to PsExec


Author Comment

ID: 35009703
any exemple script?
LVL 39

Accepted Solution

Krzysztof Pytko earned 500 total points
ID: 35009895
is this Windows Server 2008 not 2008 R2, right (because "Removable Storage Manager" feature is removed in R2 :) )

so, for R1 use on a server

ServerManagerCMD -install Removable-Storage

using PsExec from one of your server or workstation with RSAT installed

psexec @text_file_with_servers ServerManagerCMD -install Removable-Storage

where "text_file_with_servers" is a text file with servers names, one per line

All Roleas and Feature to install you will find on this blog

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why


Author Comment

ID: 35010338
ok i will try this command tomorow:

psexec @text_file_with_servers ServerManagerCMD -install Removable-Storage

and report if it work or not.


Author Comment

ID: 35010595
just tested and have error.

If my remote server have other language, for exemple frensh, its work or i need to change "Removable-Storage" feature to the frensh name?

LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 35011167
You need to use Removable-Storage feature's name in OS language :)

in case of syntax problem you can also try with

psexec @text_file_with_servers ServerManagerCMD "-install Removable-Storage"

where "Removable-Storage" is in OS language


Author Closing Comment

ID: 35016163
Work perfectly thanks

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question