If so, what is it? And if it does not, how can I set it when configuring my WIM?
Asked
Active
Viewed 3,623 times
1
-
Quick answer is no, unless you connect from within an existing OS. Are you using boot.wim to boot into PE? – Joe Feb 08 '16 at 21:10
-
@Joe Yeah, I'm using boot.wim. Is there any file (like winpesh.ini) that I could change and add the admin password there? – Tino Feb 08 '16 at 21:17
-
Why do you need to set the PE admin password. What are you trying to do? – Jim B Feb 08 '16 at 23:24
-
I'm trying to set up OpenSSH (the version released by Microsoft [here](https://github.com/PowerShell/Win32-OpenSSH/releases/tag/latest)) in WinPE. So far it runs and I can attempt a connection from another machine but it asks me for the password, and won't let me pass in a blank one. So that's why I'm interested in setting up the admin password on WinPE. – Tino Feb 09 '16 at 13:21
1 Answers
2
Try below command on WinPE console which will activate the administrator user with password mentioned.
net user administrator admin123\ACTIVE:YES
-
-
Confirmed this works, thanks very much!!! Huge shout-out to colleague that pointed me to this thread. Using WinXPE WinBuilder and source WinPE from Windows 10 Bus. Ed. v2004 (Nov 2020) ISO, I had to disable the firewall and set user password: ``` net user Administrator myPassword /ACTIVE:yes wpeutil.exe DisableFirewall ``` ... and that's all there was to it. – Omensan Dec 09 '20 at 00:05