Search found 2 matches

by kethies83
18 Mar 2016 01:56
Forum: DOS Batch Forum
Topic: Localgroup Administrators
Replies: 5
Views: 5549

Re: Localgroup Administrators

Hi Squashman,

thanks for the great help.. just 1 small favor. the output has the "-------". can it be removed.
thanks in advance

admins are
-------------------------------------------------------------------------------
ASIAPACIFIC\Domain Admins
ASIAPACIFIC\user1
hpadmin
hpdisabled
user2
by kethies83
10 Mar 2016 06:19
Forum: DOS Batch Forum
Topic: Localgroup Administrators
Replies: 5
Views: 5549

Localgroup Administrators

I have script that will collect members of local server administrator group. But however i need some help on the output method. can someone assist me please script @ECHO OFF SETLOCAL SET "admins=" SET "prev=" FOR /f "delims=" %%A IN ('net localgroup administrators') DO ...