Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > TaskKill

Reply
 
 
Peter Marshall
Guest
Posts: n/a

 
      06-04-2010
I am attempting to kill a running task on a domain-member PC (name is PC1)
from my one of my domain-member servers (name is Server1) with the following
command. The server is logged into the domain as the domain administrator.

taskkill /S PC1 /U domain1\administrator /P pass /PID 999 /F

where
/S is the system (computer) name PC1,
/U is the administrator user name on domain1,
/P is the administrator password,
/PID is the running process ID on PC1,
/F to forcefully terminate the process.

As a result, I get the error message "Logon failure: unknown user name or
bad password.". What gives? Is there something in Active Directory that
needs to be done to allow this?

Peter Marshall
Manager Information Services
Ohio Coatings Company


 
Reply With Quote
 
 
 
 
neo
Guest
Posts: n/a

 
      06-05-2010
I have found that I don't have to supply the user account/password when
doing this between two domain member devices and I'm logged in with a domain
user id that has administrators rights on both devices. Do you get the same
results when dropping the "/u and /p" switches?


"Peter Marshall" <> wrote in message
news:%23upiFB$...
>I am attempting to kill a running task on a domain-member PC (name is PC1)
>from my one of my domain-member servers (name is Server1) with the
>following command. The server is logged into the domain as the domain
>administrator.
>
> taskkill /S PC1 /U domain1\administrator /P pass /PID 999 /F
>
> where
> /S is the system (computer) name PC1,
> /U is the administrator user name on domain1,
> /P is the administrator password,
> /PID is the running process ID on PC1,
> /F to forcefully terminate the process.
>
> As a result, I get the error message "Logon failure: unknown user name or
> bad password.". What gives? Is there something in Active Directory that
> needs to be done to allow this?
>
> Peter Marshall
> Manager Information Services
> Ohio Coatings Company
>


 
Reply With Quote
 
Peter Marshall
Guest
Posts: n/a

 
      06-07-2010
If I don't provide the /U and /P parameters, I am still prompted for the
domain\administrator password and it still tells me "Logon failure: unknown
user name or
bad password.".

--

Peter Marshall
Manager Information Services
Ohio Coatings Company
"neo" <> wrote in message
news:%...
>I have found that I don't have to supply the user account/password when
>doing this between two domain member devices and I'm logged in with a
>domain user id that has administrators rights on both devices. Do you get
>the same results when dropping the "/u and /p" switches?
>
>
> "Peter Marshall" <> wrote in message
> news:%23upiFB$...
>>I am attempting to kill a running task on a domain-member PC (name is PC1)
>>from my one of my domain-member servers (name is Server1) with the
>>following command. The server is logged into the domain as the domain
>>administrator.
>>
>> taskkill /S PC1 /U domain1\administrator /P pass /PID 999 /F
>>
>> where
>> /S is the system (computer) name PC1,
>> /U is the administrator user name on domain1,
>> /P is the administrator password,
>> /PID is the running process ID on PC1,
>> /F to forcefully terminate the process.
>>
>> As a result, I get the error message "Logon failure: unknown user name or
>> bad password.". What gives? Is there something in Active Directory that
>> needs to be done to allow this?
>>
>> Peter Marshall
>> Manager Information Services
>> Ohio Coatings Company
>>

>



 
Reply With Quote
 
Matija Kapraljevic [Revenger]
Guest
Posts: n/a

 
      06-07-2010
On Mon, 7 Jun 2010 11:25:34 -0400, Peter Marshall wrote:

> If I don't provide the /U and /P parameters, I am still prompted for the
> domain\administrator password and it still tells me "Logon failure: unknown
> user name or
> bad password.".


It's just a wild guess, but did you try logging in with local admin
password of the member PC (if local admin is enabled)? I know it should
work with the domain admin but you could try this...

--
Pozdrav
===========
 
Reply With Quote
 
Peter Marshall
Guest
Posts: n/a

 
      06-09-2010

I had tried that but tried it again; same result:."Logon failure: unknown
user name or bad password.".

--

Peter Marshall
Manager Information Services
Ohio Coatings Company
"Matija Kapraljevic [Revenger]" <> wrote in message
news:15lt2c1qi91n1$....
> On Mon, 7 Jun 2010 11:25:34 -0400, Peter Marshall wrote:
>
>> If I don't provide the /U and /P parameters, I am still prompted for the
>> domain\administrator password and it still tells me "Logon failure:
>> unknown
>> user name or
>> bad password.".

>
> It's just a wild guess, but did you try logging in with local admin
> password of the member PC (if local admin is enabled)? I know it should
> work with the domain admin but you could try this...
>
> --
> Pozdrav
> ===========



 
Reply With Quote
 
Matija Kapraljevic [Revenger]
Guest
Posts: n/a

 
      06-09-2010
On Wed, 9 Jun 2010 08:16:01 -0400, Peter Marshall wrote:

> I had tried that but tried it again; same result:."Logon failure: unknown
> user name or bad password.".


Well, the only other thing that comes to my mind is the ADMIN$ share.
Can you check if it's enabled, and, if not, enable it, then try again?
Also, take a look at this:
http://www.hsc.fr/ressources/breves/..._tools.html.fr
And check that your firewall isn't blocking something (RPC ports and so
on).

--
Pozdrav
===========
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59