?
Solved

script to install windows 2008 Features remotely in 200 servers

Posted on 2011-03-01
7
Medium Priority
?
830 Views
Last Modified: 2012-06-27
hello,

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:

server1
server2
server3
server4
.........

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

Thanks for your help
0
Comment
Question by:cawasaki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
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
http://technet.microsoft.com/en-us/library/cc748918%28WS.10%29.aspx

How to use it
http://www.windowsnetworking.com/articles_tutorials/Windows-Server-2008-Servermanagerexe-CLI-tool-Add-Remove-Server-Roles.html

and link to PsExec
http://technet.microsoft.com/en-us/sysinternals/bb897553

Regards,
Krzysztof
0
 

Author Comment

by:cawasaki
ID: 35009703
any exemple script?
0
 
LVL 39

Accepted Solution

by:
Krzysztof Pytko earned 2000 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
http://blogs.technet.com/b/josebda/archive/2009/07/18/changes-in-roles-role-services-and-features-from-windows-server-2008-to-windows-server-2008-r2.aspx

Krzysztof
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:cawasaki
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.

thanks
0
 

Author Comment

by:cawasaki
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?

thanks
0
 
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

Krzysztof
0
 

Author Closing Comment

by:cawasaki
ID: 35016163
Work perfectly thanks
0

Featured Post

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

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
Suggested Courses

800 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