ForLoop5
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No problem, good luck with the uninstall.
ASKER