LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-Nov-2009, 06:11 AM
Junior Member
 
Join Date: Nov 2009
Posts: 2
Ragnart 0 reputation points
Default Problem with .bat script through zenworks

Hi,

Im trying to run the following line thruogh a zen object:

wmic printer where "PortName LIKE 'ipp%%'" delete

This is to delete all iprint printers. The script works if I run it locally, but once i use a zen object to distribute the script it fails.

The problem is that the %% is left out, and the line that runs is:
wmic printer where "PortName LIKE 'ipp'" delete
And no printers are deleted.

Any idea on how to get the script to run properly?

I'm running 7.0.1.4

Best regards
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 03:44 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2