LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2008, 09:03 AM   #1
cheeseslice
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Scripting chntpw for registry editing


Hi,

I'm not really sure where to post this question, I'm very new to linux and need a bit of guidance.

I'm an administrator on a windows network and I have had to use knoppix now and again but nothing too complicated. I have now encountered a problem where I will have to use it on a more regular basis and I wanted to write scripts or a program to automate the tasks.

My problem is that I have to use chntpw to edit registry hives on workstations which have become corrupt. This can be done manually but there are quite a few keys which need to be changed, which is time consuming by itself, never mind the fact that I usually end up having to read down a list as I can't normally remember their locations.

Is it possible to create a script that will do this automatically?

In windows this could be thrown together in a matter of minutes using something like autoit but as I'm not up to speed with how things are done in linux I have no idea how to go about this.

Is python the way to go?

Thanks in advance
 
Old 12-13-2008, 12:49 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hello and welcome to LQ.

Could be done in Python but in shell as well.
Here's some Bash scripting guides to start with:
http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://www.tldp.org/LDP/Bash-Beginne...tml/index.html
http://www.tldp.org/LDP/abs/html/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chntpw registry editor redmoon zero Linux - Software 2 01-01-2008 03:59 PM
Bash Scripting: Editing external files trek413 Linux - Software 1 11-02-2006 04:11 PM
knoppix-std --> chntpw EchO Linux - Software 1 07-17-2004 02:07 AM
bash scripting - editing files brian0918 Linux - Newbie 2 07-01-2003 02:27 PM
bash scripting - editing files brian0918 Programming 1 06-30-2003 06:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration