psexec run process as different user
up vote
0
down vote
favorite
Lets say I have two users:
user1 -- admin
user2 -- limited
and I need to start a remote process as user2.
I cannot use the limited user (user2) to start the remote process, since psexec requires the user be an admin in the remote computer.
I tried the following:
psexec \server -u domain/user1 -p password -d -i sessionID runas /user:domainuser2 cmd /c command
but it did not work, I guess because runas needs the user2's password.
Is there any way to achieve this?
windows-server administration psexec
add a comment |
up vote
0
down vote
favorite
Lets say I have two users:
user1 -- admin
user2 -- limited
and I need to start a remote process as user2.
I cannot use the limited user (user2) to start the remote process, since psexec requires the user be an admin in the remote computer.
I tried the following:
psexec \server -u domain/user1 -p password -d -i sessionID runas /user:domainuser2 cmd /c command
but it did not work, I guess because runas needs the user2's password.
Is there any way to achieve this?
windows-server administration psexec
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Lets say I have two users:
user1 -- admin
user2 -- limited
and I need to start a remote process as user2.
I cannot use the limited user (user2) to start the remote process, since psexec requires the user be an admin in the remote computer.
I tried the following:
psexec \server -u domain/user1 -p password -d -i sessionID runas /user:domainuser2 cmd /c command
but it did not work, I guess because runas needs the user2's password.
Is there any way to achieve this?
windows-server administration psexec
Lets say I have two users:
user1 -- admin
user2 -- limited
and I need to start a remote process as user2.
I cannot use the limited user (user2) to start the remote process, since psexec requires the user be an admin in the remote computer.
I tried the following:
psexec \server -u domain/user1 -p password -d -i sessionID runas /user:domainuser2 cmd /c command
but it did not work, I guess because runas needs the user2's password.
Is there any way to achieve this?
windows-server administration psexec
windows-server administration psexec
asked Aug 13 '16 at 5:49
JuanJO
10112
10112
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1113077%2fpsexec-run-process-as-different-user%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown