I copied the below script straight from the Microsoft Scripting Center - and it
won't run on my PC. I am a domain admin and a local admin. I get the following
error: (null): 0x80005000

Any suggestions?

TIA,
Bill Burke
bill@2burkes.com

'****************************************
strComputer = "."
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
objUser.SetPassword "<newpassword>"
objUser.SetInfo
'****************************************

Re: (null): 0x80005000 by Gavin

Gavin
Mon Dec 29 10:49:25 CST 2003

Works like a champ for me on XP and 2k Bill.

What OS are you using?

WSH version?


Gavin D. Garley


"Bill Burke" <Bill_member@newsguy.com> wrote in message
news:bspk2402v55@drn.newsguy.com...
> I copied the below script straight from the Microsoft Scripting Center -
and it
> won't run on my PC. I am a domain admin and a local admin. I get the
following
> error: (null): 0x80005000
>
> Any suggestions?
>
> TIA,
> Bill Burke
> bill@2burkes.com
>
> '****************************************
> strComputer = "."
> Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
> objUser.SetPassword "<newpassword>"
> objUser.SetInfo
> '****************************************
>



Re: (null): 0x80005000 by Bill

Bill
Mon Dec 29 12:12:31 CST 2003

Gavin,

I'm using W2K Pro SP4. My system is a member of a W2K domain....

WSH version is v5.6

In article <#U876uizDHA.1708@TK2MSFTNGP12.phx.gbl>, Gavin Garley says...
>
>Works like a champ for me on XP and 2k Bill.
>
>What OS are you using?
>
>WSH version?
>
>
>Gavin D. Garley
>
>
>"Bill Burke" <Bill_member@newsguy.com> wrote in message
>news:bspk2402v55@drn.newsguy.com...
>> I copied the below script straight from the Microsoft Scripting Center -
>and it
>> won't run on my PC. I am a domain admin and a local admin. I get the
>following
>> error: (null): 0x80005000
>>
>> Any suggestions?
>>
>> TIA,
>> Bill Burke
>> bill@2burkes.com
>>
>> '****************************************
>> strComputer = "."
>> Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
>> objUser.SetPassword "<newpassword>"
>> objUser.SetInfo
>> '****************************************
>>
>
>


Re: (null): 0x80005000 by Gavin

Gavin
Mon Dec 29 13:36:04 CST 2003

Afraid I don't have a good answer for you Bill.

Shot in the dark,

Any password req policies coming into play? Perhaps the password you are
passing via the script is not long enough or something to that nature?

This is a member server from what I gather, not a domain controller?

Local Admin account hasn't been renamed to something else or disabled?


I'm out of ideas,

Gavin D. Garley

"Bill Burke" <Bill_member@newsguy.com> wrote in message
news:bspqqf0jqd@drn.newsguy.com...
> Gavin,
>
> I'm using W2K Pro SP4. My system is a member of a W2K domain....
>
> WSH version is v5.6
>
> In article <#U876uizDHA.1708@TK2MSFTNGP12.phx.gbl>, Gavin Garley says...
> >
> >Works like a champ for me on XP and 2k Bill.
> >
> >What OS are you using?
> >
> >WSH version?
> >
> >
> >Gavin D. Garley
> >
> >
> >"Bill Burke" <Bill_member@newsguy.com> wrote in message
> >news:bspk2402v55@drn.newsguy.com...
> >> I copied the below script straight from the Microsoft Scripting
Center -
> >and it
> >> won't run on my PC. I am a domain admin and a local admin. I get the
> >following
> >> error: (null): 0x80005000
> >>
> >> Any suggestions?
> >>
> >> TIA,
> >> Bill Burke
> >> bill@2burkes.com
> >>
> >> '****************************************
> >> strComputer = "."
> >> Set objUser = GetObject("WinNT://" & strComputer & "/Administrator,
user")
> >> objUser.SetPassword "<newpassword>"
> >> objUser.SetInfo
> >> '****************************************
> >>
> >
> >
>



RESOLVED ==>(null): 0x80005000 by Bill

Bill
Mon Dec 29 13:34:41 CST 2003

Well, it seems that on my system if there's a space between the "," and "user"
the script blows up.

Administrator, user <== will NOT work
Administrator,user <== will work

Runs fine!

In article <bspqqf0jqd@drn.newsguy.com>, Bill Burke says...
>
>Gavin,
>
>I'm using W2K Pro SP4. My system is a member of a W2K domain....
>
>WSH version is v5.6
>
>In article <#U876uizDHA.1708@TK2MSFTNGP12.phx.gbl>, Gavin Garley says...
>>
>>Works like a champ for me on XP and 2k Bill.
>>
>>What OS are you using?
>>
>>WSH version?
>>
>>
>>Gavin D. Garley
>>
>>
>>"Bill Burke" <Bill_member@newsguy.com> wrote in message
>>news:bspk2402v55@drn.newsguy.com...
>>> I copied the below script straight from the Microsoft Scripting Center -
>>and it
>>> won't run on my PC. I am a domain admin and a local admin. I get the
>>following
>>> error: (null): 0x80005000
>>>
>>> Any suggestions?
>>>
>>> TIA,
>>> Bill Burke
>>> bill@2burkes.com
>>>
>>> '****************************************
>>> strComputer = "."
>>> Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
>>> objUser.SetPassword "<newpassword>"
>>> objUser.SetInfo
>>> '****************************************
>>>
>>
>>
>


Re: (null): 0x80005000 by rrus

rrus
Fri Jan 23 01:22:42 CST 2004

Hi, Bill!

Try to use the following string:

Set objUser = GetObject("WinNT://" & strComputer & "/Administrator,user")

It must to resolve this issue.


> '****************************************
> Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
> '****************************************