Create a script to copy .opt file from multiple servers to one location
Posted on 2011-03-03
Throughout our enterprise we have 400+ Windows 2003 and 2008 servers that use Tivoli® Storage Manager to backup files and directories.
Each server has an options file named dsm.opt in the following location:
I would like to create a script that would
1. Pull server name from server.txt file(our server names all have hyphens in the name
2. Copy dsm.opt file from the following path
a. \\ServerName\c$\Program Files\Tivoli\TSM\baclient
3. Copy to Server or PC I am running Script from
a. Create a folder with the server name and copy the .opt file to that folder.
I have zero scripting experience, any help would be appreciated.
Thanks - brewersewer