Assign User to net use to change another users password

0

Is it possible to assign a user to make net use run as a certain person(admin) to change another users password? Like so?:

"/c net user /user:domain\Administrator <admin-pwd> username password /domain"

Maybe some how using a runas or something to tell the command to run as a certain individual?

David Brierton

Posted 2017-02-17T16:31:34.550

Reputation: 111

What problem are you trying to solve exactly. There are easier ways to chnage a user's password as an Administrator – Ramhound – 2017-02-17T19:34:46.067

@Ramhound this is what I am trying to do. http://stackoverflow.com/questions/42234407/cfexecute-assigning-it-to-run-with-administrator-rights/42276531#42276531 Basically everyone is telling me cf runs the command as local system which on ours does not have permission to run net use and the network administrator will not let me change it. So i was trying to see if I can bypass it through the command line its running.

– David Brierton – 2017-02-17T20:44:28.720

Answers

0

with net user you can specify the user and password to use:

https://technet.microsoft.com/pt-br/library/cc771865(v=ws.11).aspx

So, yes, if someone knows the admin password, "it is to change another user's password"

Lord PinkFloyd

Posted 2017-02-17T16:31:34.550

Reputation: 29

no i know you can use net user <username> <password> /domain to change the password but can I assign the person this cmd runs as. Because I am calling this command through coldfusion that does not have permissions to run net user on the service so i was trying to bypass it by giving this command admin rights. Make sense? – David Brierton – 2017-02-17T18:46:05.413

I think you should change your question to "how to assign permission to coldfusion to run specific command in windows", and you could read this "https://helpx.adobe.com/coldfusion/kb/running-coldfusion-specific-user.html"

– Lord PinkFloyd – 2017-02-18T12:38:37.540