Here's a script Harris that uses the Windows 2000 Resource Kit tool Cusrmgr.exe to change the Local Administrator Password. You can do more with this tool, but the script will only change the Local Administrator password. Once you compile the script as an EXE file, you can run it through SMS with Local Admin rights.
Code:
Document Type: IPF
item: Global
Version=6.0
Title English=Change Local Administrator Password.
Flags=01011000
Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LanguagesList=English
Default Language=2
Japanese Font Name=MS Gothic
Japanese Font Size=10
Start Gradient=0 0 255
End Gradient=0 0 0
Windows Flags=00010000000000000010110000011000
Message Font=MS Sans Serif
Font Size=8
Disk Filename=SETUP
Patch Flags=0000000000001001
Patch Threshold=85
Patch Memory=4000
FTP Cluster Size=20
end
item: Custom Graphic
Width=1010
Height=615
Flags=0000000010000000
item: Rectangle
Rectangle=0 0 509 56
Flags=11100001
Pen Width=1
Brush Style=1000
Extra Flags=00000100
end
item: Text
Text English=Local Administrator Password Change.
Rectangle=7 7 506 48
Pen Color=16777215
Pen Width=1
Extra Flags=00000011
Name=Century Gothic
Font Style=-19 0 0 0 400 0 0 0 0 3 2 1 34
end
item: Rectangle
Rectangle=772 582 1010 615
Pen Width=1
Brush Style=1000
Extra Flags=00000100
end
item: Text
Text English=Created By: Anand Upadhyay
Rectangle=781 590 975 608
Flags=00010011
Pen Color=16777215
Pen Width=1
Extra Flags=00000011
Name=MS Sans Serif
Font Style=-12 0 0 0 0 0 0 0 0 0 0 0 0
end
end
remarked item: Remark
Text=Note: Compile this script to EXE and run it through SMS with Local Admin rights
end
item: Set Variable
Variable=DEST_C
Value=C:
end
remarked item: Remark
Text=Make sure Cusrmgr.exe is available on C:\ drive before you compile this script.
end
remarked item: Remark
Text=Cusrmgr.exe is available on Windows 2000 Resource kit but it is also compatible with NT 4.0
end
remarked item: Remark
Text=Installing tool which will be removed later.
end
item: Install File
Source=c:\Cusrmgr.exe
Destination=%DEST_C%\Cusrmgr.exe
Flags=0000000000100010
end
remarked item: Remark
Text=Getting Computername from Registry and putting it into Variable.
end
item: Get Registry Key Value
Variable=COMPUTERNAME
Key=SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
Value Name=ComputerName
Flags=00000100
end
remarked item: Remark
Text=Resetting Local Administrator Password
end
remarked item: Remark
Text=Change **Administrator** name in below line, only if you need to
and change **password** in below line with your custome password.
end
item: Execute Program
Pathname=%DEST_C%\Cusrmgr.exe
Love you all from Harris
Last edited by pludi; 03-31-2010 at 02:37 AM..
Reason: removed unneccesary self-promotion
We are currently using ssod daemon, included with SFU 3.5, to synchronize passwords from AD to Solaris 8.
We are now upgrading to a new Solaris 10 server. I loaded out the sso.conf, and the ssod on the server. Ssod seems to start up fine, but it gives an error on the console when I change a... (0 Replies)
Hi,
a friend of mine uses windows and he changed his password (using some weird non-english characters). Now when he logged into windows, it asked for the admin password and he couldn't enter those characters (you can only turn that on once you're in windows). So is there anyway to login or... (0 Replies)
Hi.
My workstation is Windows. I use putty to connect to unix servers. The problem is that i'm doing it many times a day and each time i need to supply password. I have no control on ssh configuration on servers, because of account restrictions. So i can't use key authentication, how is suggested... (4 Replies)
Hi Friends.
I am new to scripting now i want to change the root password using the script with standard password.
which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
HI,
Can anybody tell me..about recovering windows administrator password in case of Forget it.
Now in Unix OS and any database,there is a fascility of recovering root/admin password....
Can window provide any such kind of fascility?....Also tell me any other normal users password recovery... (5 Replies)
i want user to prompt for password when ever he tries to login into solaris box using vnc software. is it possible.. each time the user tries to access a solaris box should be prompted for password.
and each user can set his own password for his session?
if all the above are possible which... (3 Replies)
I installed the OpenSSH on my Windows Machine. I want to connect to the remote Linux machine without typing password. I followed the bellow instructions but the SSH needs password to establish the connection yet.
Open CMD and run: ssh-keygen -t rsa (The public and private keys are generated in... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
LEARN ABOUT DEBIAN
condor_store_cred
condor_store_cred(1) General Commands Manual condor_store_cred(1)Name
condor_store_cred securely - stash a password
Synopsis
condor_store_cred [-help]
condor_store_credadd[ -c | -u username] [-p password] [-n machinename] [-f filename]
condor_store_creddelete[ -c | -u username] [-n machinename]
condor_store_credquery[ -c | -u username] [-n machinename]
Description
condor_store_credstores passwords in a secure manner. There are two separate uses of condor_store_cred:
1. A shared pool password is needed in order to implement the PASSWORD authentication method. condor_store_cred using the -coption
deals with the password for the implied condor_pool@$(UID_DOMAIN) user name.
On a Unix machine, condor_store_cred with the -foption is used to set the pool password, as needed when used with the PASSWORD authen-
tication method. The pool password is placed in a file specified by the SEC_PASSWORD_FILE configuration variable.
2. In order to submit a job from a Windows platform machine, or to execute a job on a Windows platform machine utilizing the run_as_own-
erfunctionality, condor_store_cred stores the password of a user/domain pair securely in the Windows registry. Using this stored pass-
word, Condor may act on behalf of the submitting user to access files, such as writing output or log files. Condor is able to run jobs
with the user ID of the submitting user. The password is stored in the same manner as the system does when setting or changing account
passwords.
Passwords are stashed in a persistent manner; they are maintained across system reboots.
The addargument on the Windows platform stores the password securely in the registry. The user is prompted to enter the password twice for
confirmation, and characters are not echoed. If there is already a password stashed, the old password will be overwritten by the new pass-
word.
The deleteargument deletes the current password, if it exists.
The queryreports whether the password is stored or not.
Options-c
Operations refer to the pool password, as used in the PASSWORD authentication method.
-f filename
For Unix machines only, generates a pool password file named filenamethat may be used with the PASSWORD authentication method.
-help
Displays a brief summary of command options.
-n machinename
Apply the command on the given machine.
-p password
Stores password, rather than prompting the user to enter a password.
-u username
Specify the user name.
Exit Status
condor_store_credwill exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.
Author
Condor Team, University of Wisconsin-Madison
Copyright
Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
Licensed under the Apache License, Version 2.0.
See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu
September 2012 condor_store_cred(1)