Re: Local Admin Password Change Scripting
- From: sjparry@xxxxxxxxxxx
- Date: 7 Jun 2006 03:01:51 -0700
Wonderful, that gives me a flying headstart - thanks very much!
I'm not so hot on the VB, but I'm sure I can get a computername lookup
working myself... unless you'd like to help again? ;)
Thanks again.
Roger Abell [MVP] wrote:
' vbscript snippet with transform outlined
' save as xxx.vbs and at cmd run
sComp = "computer-001254-pc" ' from running context
sText10 = "alphabetab" ' from user input, force to 10 char
' note: the above actually from dynamic acquisition
sBlob = Mid(Left(sComp,InStrRev(sComp,"-")-1),InStr(sComp,"-")+1)
For iTmp = 0 to 9
sBlob = Replace(sBlob, CStr(iTmp), Mid(sText10,iTmp+1,1))
Next
wscript.echo "password" & sBlob
' now get group obj for Administrators and loop over
' user members applying variations for new passwords
<sjparry@xxxxxxxxxxx> wrote in message
news:1149613064.991847.196310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Can anyone help me with creating a script to change local administrator
passwords using a lookup file?
The basic idea that I would like to achieve is to have a lookup word 10
characters long (eg. alphabetab, a=0,l=1,p=2,h=3,etc.)
Then, the script would take the machine name computer-001254-pc, take
the numerical section and apply the characters from the lookup word to
create the new password. (eg new password = passwordaalpba)
Preferably a dos script I'd find easier, but java would be good also.
I'm currently trying using FOR /F commands after outputting the
%computername% variable.
Help would be much appreciated.
Thanks.
.
- Follow-Ups:
- Re: Local Admin Password Change Scripting
- From: sjparry
- Re: Local Admin Password Change Scripting
- References:
- Local Admin Password Change Scripting
- From: sjparry
- Re: Local Admin Password Change Scripting
- From: Roger Abell [MVP]
- Local Admin Password Change Scripting
- Prev by Date: Re: Local Admin Password Change Scripting
- Next by Date: Re: Local Admin Password Change Scripting
- Previous by thread: Re: Local Admin Password Change Scripting
- Next by thread: Re: Local Admin Password Change Scripting
- Index(es):
Relevant Pages
|