Saturday, October 22, 2016

Windows Container: Create local user on microsoft/nanoserver

Last time I showed you on how to download Windows Container images, this time we will work with one of the containers!
First of all download the microsoft/nanoserver image: docker pull microsoft/nanoserver
Now run the image: docker run -it microsoft/nanoserver cmd
The command "cmd" will open a cmd box on your container. To add users open Powershell by running powershell.exe in this container cmd windows.
And now we can add new users by using this command:
Finally add the user to the Administrators group:
For verification, run this script:

6 comments:

  1. Rumors began to spread that Google is building an online "free" Operating System and various other tools such as an alternative version to the dominating Internet Explorer.best office team timesheet solution

    ReplyDelete
  2. You know your ventures emerge of the crowd. There is something exceptional about them. It appears to me every one of them are truly splendid! remove taboola ads

    ReplyDelete
  3. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Folder Lock For Andriod Download - Don't Waste materials Time Seeking, Read Concerning PC Desktops On this page password protect folder in windows 7

    ReplyDelete
  4. PC Folder Lock Download - Don't Hang Around Browsing, Read through Exactly About PC Devices Here abramo

    ReplyDelete
  5. Depending what your climate are, buying a twofold sheet IG unit will get the job done. solar cells

    ReplyDelete