Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Jazkal

psexec on WinpE2?

Recommended Posts

Wanted to see if anyone knows why psexec.exe wouldn't work on WinPE2?

Running the same command line that will work on my workstation, I get this error on WinPE2:

Couldn't access 10.x.x.x:

Access is denied.

And I can ping the box at the IP.

Any thoughts?

Edited by Jazkal

Share this post


Link to post
Share on other sites

after much googling, found that the local user account you are running psexec from cannot have a blank password. Windows wont let you run anything remotely if the account the request comes from has a blank password.

So now how do I set the local WinPE2 user account password? Much less how do I determine what account it uses?

Share this post


Link to post
Share on other sites

I believe the default account is Administrator, as it is in the command prompt title. After invoking a net user command in the PE environment it shows two accounts: Administrator and Guest. I tried using net user Administrator * to set the password. It reports that the password is saved, but psexec still doesn't work.

Share this post


Link to post
Share on other sites

Thanks for the info. I just need to figure out why it won't work. I'll mess with it on Monday.

Share this post


Link to post
Share on other sites

After further testing, it looks like WinPE uses the "NT Authority\System" account as the logged in 'user'.

All my searching online tells me that you can't/don't want to change this accounts password (which by default does not have a password).

So I need to find a way to use something like su.exe or runas.exe.

That is what I am currently looking at now.

EDIT:

To be able to use RunAs.exe and run psexec as the Administrator account, I will need to add these rights to that account:

"Act as part of the operation system"

"Logon as a batch job"

Anyone know how to do 'User rights assignment' via command line?

Edited by Jazkal

Share this post


Link to post
Share on other sites

ntrights.exe, part of the Windows Resource Kit. I haven't tried to use it in PE, but that is the way to modify it via command line.

Share this post


Link to post
Share on other sites

After I reset the Admin password, I used:

ntrights.exe -u Administrator +r SeBatchLogonRight

ntrights.exe -u Administrator +r SeTcbPrivilege

But I still get access errors. Arrrgggg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...