I have a batch file that I use to delete user profiles from remote PCs. It works great But now I want to modify it so that it can use a text file called <b>PcsLisl.txt</b> that would contain a list of computers. Sample of file below
\\PODA02
\\PODA03
\\PODA04
\\PODA1
\\PODA5
\\PODB02
\\PODB03
\\PODB04
\\PODB05
\\PODB1
\\PODBSW
\\PODC03
This is the current batch file below:
REM @echo off
net use x: "\\podA1\c$"
x:
rd "\Documents and Settings\gbertin\" /S
cd\
net use x: /delete
I know that this can be done with the FOR command but I have never used that command before and need help with the syntax. I know there are better ways live using Group Policy but I would really prefer to do it using a batch file remotely thus I can choose which workstations to delete the file from with having to use Active Directory