That works great. Thanks Jesse. My concern now is that I still want to delete the %appdata%\Citrix\PNAgent folder, even if no one is logged on (and delete the folder in all the profiles). Currently researching that one but any input would be helpful.
waithidden cmd.exe /C for /f “usebackq” %a in (dir /b /a "c:\documents and settings") do rd /s /q “c:\documents and Settings%a\Application Data\Citrix\PNAgent”
When I try and runn the following command (a variant of the commands mentioned in higher threads), it fails because it is reading the “All Users” folder as just “All”. When I manually run the following command from command prompt, it cannot find the path.
action:
for /f “usebackq” %a in (dir /b /a "c:\documents and settings") do del /f /q “c:\documents and Settings%a\Start Menu\Programs\Startup\Program Neighborhood Agent.lnk”
error:
del /f /q “c:\documents and Settings\All\Start Menu\Programs\Startup\Program Neighborhood Agent.lnk”
for /f “usebackq tokens=*” %a in (dir /b /a "c:\documents and settings") do del /f /q “c:\documents and Settings%a\Start Menu\Programs\Startup\Program Neighborhood Agent.lnk”