Best way to save login script changes Server 2008

cookd47
cookd47 used Ask the Experts™
on
Login scripts are currently saved if SYSVOL folder, currently I open notepad with elevated permissions and browse to the script and edit; I need to make changes to about 20 scripts, is there a better method?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015

Commented:
Run notepad as administrator then open script file from that notepad then modify and save it.
Mohammed KhawajaManager - Infrastructure:  Information Technology

Commented:
Copy the scripts to local drive, modify them, open a command prompt with privileged credentials and then copy them to the location in sysvol share.

Author

Commented:
I was trying to avoid both of above methods
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Mohammed KhawajaManager - Infrastructure:  Information Technology

Commented:
Files need to be edited, how else do you think it could be done?  

What is the change you are making (ie are you adding, editing or deleting same thing on all files and if so then it could be done differently).

Author

Commented:
Adding same net use command to each
Manager - Infrastructure:  Information Technology
Commented:
I believe what you could do is the following:

Logon to the DC via RDP
Open Command Prompt as Administrator
Navigate to the folder where the scripts are
Run dir /b
Copy the output of the script fillenames
Open excel and paste it column B1
in column A1 type in Echo followed by your net use >> 
(Ie echo net use x: \\server1\share1 >>)
Copy A1 to all the rows where there is a value for B1
Copy the data and paste it to your command prompt and you are done


I could also write you a loop that goes through all the scripts but this should do it

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial