Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Run as a different user in PE

Featured Replies

I need to run an application that will access the network - and this needs to be run as a user on the domain.

Using PE 2.1 / 3.0 (Vista SP1 / Win 7)

Naturally the minint admin does not have domain access.

I can't run runas because the secondary logon doesn't exist.

PSEXEC wont run locally presumabley for the same reason.

I'm unsure if I can get the secondary logon service installed and started in PE, but this sounds like the way to go.

Would anyone have any guidelines on how to do this? What files to copy across and what commands to initiate?

I have tried copying seclogon.dll and sc.exe and using the command:

> sc create seclogon binPath= "x:\WINDOWS\System32\svchost.exe -k netsvcs" start= auto DisplayName= "Seconday Logon"

Unfortunately this just shows the help text from sc, with all the possible parameters - it doesn't seem to process the command at all (no error or success message).

I also tried exporting the seclogon registry entry for the service and importing directly, but no joy (note I exported from Win XP - need to try with Win 7, but I'm not holding my breath there...)

Also, trying to start the service with the imported hive doesn't work...

> sc start seclogon
[SC] StartService FAILED 1083:
The executable program that this service is configured to run in does not implement the service.

> net start seclogon
System error 1083 has occurred.
The executable program that this service is configured to run in does not implement the service.

Otherwise there may be another way forward?

Any suggestions anyone?

Thanks!

Edited by mrbeatnik


  • Author

Hmmmn, I don't know what, but I must have got the command slightly wrong. This works:

> sc create "SecLogon" binPath= "x:\WINDOWS\System32\svchost.exe -k netsvcs"

Seems to start and be running.

However, the next issue is RunAs.exe.

Again I copied from XP, but RunAs gives an error:

The procedure entry point NetpGetDomainName could not be located in the dynamic link library NETAPI32.dll

Thanks!

Edited by mrbeatnik

  • Author

OK, added in runas.exe from Windows 7 (into PE 3.0) and the error doesn't appear.

However, the command doesn't seem to process correctly - nothing seems to happen.

> runas

> runas /user:administrator notepad
Enter the password for administrator:

  • Author

Thanks for the rpely (as usual!!), but it didn't work :(

Did:

net use y: \\192.168.0.1\c$ /user:domain\administrator

It maps the drive OK, but still tries to launch the application (local) in the context of the local user regardless.

If I move the app to the new share, then it strill tries to launch in the local context, but on the remote drive...

So either way the command tries to run as a local user, and the function gets an access denied because it needs to be run as a domain user...

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.