Re: Password Last Reset
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 21 Apr 2007 22:12:02 -0500
In the statement:
Set objFile = objFSO.OpenTextFile(strFilePath, 2, True, 0)
the second argument, 2, means to open the file for writting. This
overwrites. Use 8 to append.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
"Ayth" <darrin.henshaw@xxxxxxxxx> wrote in message
news:1177204882.103271.113610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
No problem, I did some looking and noticed that. I do have a further
question, I'll explain a bit of what I'm doing.
Basically another script calls this script, if certain conditions are
met, the problem I'm running into now, is the second time the script
is called(which it could be called a lot of times. It overwrites the
values already in the text file, ie the first time ran the script
enters: HFXVMTEST1$ ; 11/8/2006 7:55:20 PM, then it will be
overwritten the next time it's called. I need it to append to the
file, rather than overwrite, is this possible? Thanks.
On Apr 21, 9:31 pm, "Richard Mueller [MVP]" <rlmueller-
nos...@xxxxxxxxxxxxxxxxxxxx> wrote:
Sorry, I forgot that all computer objects have sAMAccountName equal to
the
NetBIOS name of the machine with "$" appended on the end. I believe it is
to
ensure no conflict with other objects, like users or groups, since
sAMAccountName must be unique in the domain.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab -http://www.rlmueller.net
--
"Ayth" <darrin.hens...@xxxxxxxxx> wrote in message
news:1177197081.511196.158500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
.
- References:
- Password Last Reset
- From: darrin . henshaw
- Re: Password Last Reset
- From: Richard Mueller [MVP]
- Re: Password Last Reset
- From: Ayth
- Re: Password Last Reset
- From: Richard Mueller [MVP]
- Re: Password Last Reset
- From: Ayth
- Password Last Reset
- Prev by Date: Re: Object Browser
- Next by Date: Re: test please ignore
- Previous by thread: Re: Password Last Reset
- Next by thread: Cannot run VBS on Windows 2003 sever
- Index(es):
Relevant Pages
|