Link to home
Start Free TrialLog in
Avatar of ForLoop5
ForLoop5Flag for United States of America

asked on

WMIC command says "for - alias not found"

I am working on uninstalling Microsoft office from many computers on my domain.  I am trying to use the advice in this article to make it happen
http://www.milkacow.com/2011-05-27/remotely-uninstall-all-microsoft-office-installations-in-domain-with-one-single-command/#comment-361

It says that I should be able to use this command to uninsall office from a list of my comptuers.  
for /f %n in (all-domain-pcs.txt) do wmic /NODE:%n product where "name like '%Microsoft Office%'" call uninstall

But when I run the command in the WMIC console it says "for - alias not found"

Can anyone help me with this?
ASKER CERTIFIED SOLUTION
Avatar of Apothis
Apothis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ForLoop5

ASKER

Ahh.  Thank you.
No problem, good luck with the uninstall.