如何动态获取任何本地用户组的用户列表?我正在尝试下面的代码,但它没有按预期工作

时间:2016-09-08 17:43:02

标签: batch-file echo

@Echo Off

:Start

Echo This will show Users belonging to any User Group

Echo.

Echo Please Select Local Group from below list

Pause

net localgroup

SET /P GroupName = Enter Group Name 

Echo %GroupName%

pause 

net localgroup %GroupName%

pause

CLS

GoTo Start

0 个答案:

没有答案