Search found 2 matches
- 12 Aug 2015 09:22
- Forum: DOS Batch Forum
- Topic: Help with the 'For' command
- Replies: 4
- Views: 2442
Re: Help with the 'For' command
I added this /f "usebackq delims=" FOR /f "usebackq delims=" %%L IN ("%_localadmins%") DO ((net localgroup administrators %%L /delete ) && echo %%L) Thank you very much!! That worked and I have been stressing over it for a while now! What exactly is the useback...
- 12 Aug 2015 07:06
- Forum: DOS Batch Forum
- Topic: Help with the 'For' command
- Replies: 4
- Views: 2442
Help with the 'For' command
So, basically I am trying to run this command to batch delete local admins that are domain users. However, when I get to the below code, it is attempting to run the command on the name of the file as opposed to the file contents (the echo below verified this). The %_localadmins% variable is the name...