Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help creating a script to replace files.

Status
Not open for further replies.

MITPRO

IS-IT--Management
Jan 4, 2006
137
US
Hello guys,

I edited a file called helpaccept.htm located in C:\WINDOWS\PCHealth\HelpCtr\System\Remote Assistance and a file called TakeControlMsgs.htm located in C:\WINDOWS\PCHealth\HelpCtr\System\Remote Assistance\Interaction\Server.

What these files now do is answer the question that allow me a network administrator to offer remote assitance and not wait on the user to answer the question on the screen. I can just get in there and start working.

What i need is a script to now replace these file in those directories for all users across site. Of course i cannot do this via user configuration because users do not have full access to certain files and folders. I do do this via computer configuration, but i do not want the files to keep replacing everytime the script runs. There has to be some if, else parameters.

Can anyone help me with this? A starter, complete script, anything would be great.

Also if i am in the wrong forum, please direct me to a forum that i can get help.

Do not pray to have an easier life, pray to be a stronger man!!!

B.S. Computer Information Systems
Masters of Information Technology in Network Security
CompTIA A+, Net+, Security+,
MCP, MCSA: 2003
70-298 (In-Progress)
70-299 (In-Progress)
MCTS: Exchange Server 2007 (In Progress)
MCTS: Server 2008 (In Progress)
MCTS: Windows Vista (In P
 
Do you have SMS in your environment?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
I do not have it. I have requested this be installed for some time now; obviously the techs do not want to move to more simple ways of rolling out software, scripts, and handling users.

I do know how to use SMS, but this is irrelevant at this point.

They would rather script, so of course, i now need to become more familiar with scripting.

I will also need to get more involved with shell scripting because of Server 2008 and Exchange 2007. This can mean do or ide in enterprise server environments.

Sorry, for the rambling, but if you can assist in anyway or point me in the right direction, i will appreciate it.

Do not pray to have an easier life, pray to be a stronger man!!!

B.S. Computer Information Systems
Masters of Information Technology in Network Security
CompTIA A+, Net+, Security+,
MCP, MCSA: 2003
70-298 (In-Progress)
70-299 (In-Progress)
MCTS: Exchange Server 2007 (In Progress)
MCTS: Server 2008 (In Progress)
MCTS: Windows Vista (In P
 
So if you do not have SMS, do you have some other automated way to run scripts as an elevated account?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
As i understood, kix32, i think should allow it, or it is just another scripting environment.

YOu have any suggestions other than SMS? I do not want to come to a dead end. If this is the only way, i will push to have this installed.

After you answer if you have any other suggestions, how does the licensing work? We have over 500 users. Please let me know what is the best solution in my situation, or what i can do to accomplish this.

Do not pray to have an easier life, pray to be a stronger man!!!

B.S. Computer Information Systems
Masters of Information Technology in Network Security
CompTIA A+, Net+, Security+,
MCP, MCSA: 2003
70-298 (In-Progress)
70-299 (In-Progress)
MCTS: Exchange Server 2007 (In Progress)
MCTS: Server 2008 (In Progress)
MCTS: Windows Vista (In P
 
I cannot talk to the licensing structure for SMS. I work very hard to stay out of any financial discussions whenever I can. :)

I believe that kix can elevate a command. That would obviously be a question for a kix forum. Let's assume that you have a way to elevate the script. If all you need to do is copy a couple of files from a central location to the user's machine, search this forum for FileSystemObject and .CopyFile to find example code.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top