• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 832
  • Last Modified:

script to install windows 2008 Features remotely in 200 servers

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
cawasaki
Asked:
cawasaki
  • 4
  • 3
1 Solution
 
Krzysztof PytkoActive Directory EngineerCommented:
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
 
cawasakiAuthor Commented:
any exemple script?
0
 
Krzysztof PytkoActive Directory EngineerCommented:
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
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
cawasakiAuthor Commented:
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
 
cawasakiAuthor Commented:
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
 
Krzysztof PytkoActive Directory EngineerCommented:
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
 
cawasakiAuthor Commented:
Work perfectly thanks
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now