Add local account batch script?


  1. Posts : 812
    Win10
       #1

    Add local account batch script?


    Can someone please post an example of a command line batch script with includes the following below?

    -local account
    -username
    -display name
    -Admin group
    -password (but it can be left blank)
    -password never expires
    -user must change password at login

    Just need to add the above information and then run it as script or batch file.

    If no one can, it’s okay.
      My Computer


  2. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    They will be Net user commands.
    Net user - SS64
    The only examples I've kept are
    enforce password use [Ghot #14] - TenForums
    batch file - create Admin user - SO
    I think that these three links will help you do all the steps you want to do.


    Best of luck,
    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:40.
Find Us




Windows 10 Forums