代码以自动删除最终具有1-500号数字的用户
我最近运行了一个程序,该程序会在虚拟机上自动生成500个用户,并且它使其滞后在锁屏上。基本上,它以:“ Userx(user1,user2,user3等)的格式生成500个用户。我想知道是否可以有一个批处理脚本 / powerShell脚本 /只是可以采取任何措施以删除所有这些用户。该过程可以使用NET USERX /DEL < /code>手动完成,但是它可能会再次使用同一命令自动化,但要计算数字。
I recently ran a program that automatically generates 500 users on a virtual machine, and it is making it lag on the lockscreen. Basically, it generates 500 users in the format of: "userX (user1, user2, user3 etc.). I was wondering if there could be a batch script / powershell script / just anything that could be done to remove all of these users. The process can be done manually using net user userX /del
but it could probably be automated using the same command again but with numbers counting up. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
或在批处理文件中:
Or if in a batch file: