Quantcast
Viewing all articles
Browse latest Browse all 10386

PsTools : Changing admin password (pspasswd and psexec)

Author: tomcollins
Subject: Changing admin password (pspasswd and psexec)
Posted: 29 May 2013 at 9:13pm

I need to change the local admin password on Windows 7, but it must be done COMPLETELY silent...  NO command window pop-ups or banners.  The end user (without admin rights) will be launching an .exe which runs the PsTools commands.

The following doesn't work.  I've also tried v1.22 because of bug reports in v1.23, but the same problem remains- it acts like the "/?" switch was passed:
pspasswd -accepteula -u admin -p CurrentPassword admin NewPassword

Workaround, works, but not silent:
psexec.exe -accepteula -u admin -p CurrentPassword pspasswd -accepteula admin NewPassword

I've tried straight windows commands, but a window still flashes:
psexec.exe -accepteula -u admin -p CurrentPassword net user admin NewPassword

I need a solution which results in no pop-up windows.  I've tried using >nul and 2>&1 redirection, but can't find a working combination.



Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>