Win10 IoT Core Change Password (PowerShell)

Source: Internet
Author: User

Originally Microsoft gave the tutorial to change the password is no problem, but always feel uncomfortable, because the history can see all the commands, of course, including the text changed the command ...

So began to think how to encrypt, Linux that change password passwd really convenient ah.

Find is is and the ad Dynamic Directory related things, think of me to run the machine, there is no domain class, so did not try.

Try to roughly: Get and save an encrypted string, and then decrypted with the net user to change the password (actually do not encrypt it is OK, I just want to highlight the tall on the 2333)

The command is: (Running on the Raspberry Pi IoT core)

$SecurePassword = read-host-prompt "Enter password" –assecurestring

$SPpointer = [System.runtime.interopservices.marshal]::securestringtocotaskmemunicode ($SecurePassword)
$PlainPassword = [System.Runtime.InteropServices.Marshal]::P trtostringuni ($SPpointer)

NET user Administrator $PlainPassword

If you want to save it, use Set-content, then copy and paste it in one line ... Why not a VI-like editor Ah!

Reference link: http://social.technet.microsoft.com/wiki/contents/articles/4546. Working-with-passwords-secure-strings-and-credentials-in-windows-powershell.aspx

The two functions used in the original text are not on the Raspberry Pi, but the two functions should be a pointer to the plaintext password and read the data according to the pointer, with the tab can see what functions, turned over the above two closer so it is used, still works.

Alas, I didn't see anything with the Hdmi--dvi line.

Win10 IoT Core Change Password (PowerShell)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.