Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use vbs to realize the script of adding users locally

Shulou Source: shulou.com Published: 2022-06-03 08:36:13 11月15日 Update

This article is about how to use vbs to implement scripts to add users locally. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Dim WshShell set WshShell = CreateObject ("wscript.Shell") WshShell.Run "cmd / k" for I = 1 to 3 WScript.Sleep 500 WshShell.SendKeys "net user admin" & I & "abcd@123 / add" WshShell.SendKeys "{ENTER}" next WshShell.SendKeys "exit" WshShell.SendKeys "{ENTER}" Thank you for reading! This is the end of this article on "how to use vbs to add a script for users locally". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: Users scripts content more articles good practical articles read knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker Apple Shulou Tech Info macOS