Download the Flash player at www.macromedia.com.
Home
Solutions
Solution Archives
Software Products
Site Search

 

03-Apr-05, ZWDynaUser Article posted! (Pt. 1)

28-Mar-05, Windows Process Authority article posted!

28-Mar-05, ZWXPDrive article posted!

22-Mar-05, ZENworks Enhancement Software Posted!

22-Mar-05, Site Updated!

Legacy Article - Some Information May be dated.

 

Zenworks Polymorphism

Many of those new to Zenworks overlook a very simple and yet very powerful ability of Zenworks.  This tool is the variable.  I make extensive use of variables in my ZENWORKS application objects which allow them to be used across many sites, attaching to many different servers, using many different computer configurations.

Variables can be used to define a portion of a UNC path as shown above.  This single app will run NWADMIN from each users local server without having to define a different application for each server from which the application is run. 

These variables can based upon criteria such as IP address,  IPX network, group membership or the users' OU.

The Drives/Ports Tab of the application properties is one area where the power of the variable can be well demonstrated.  The app shown above could be used without modification for many users across many physical locations who user many different servers and print to many different printers.

The servers to which drives are mapped and the queues to which ports are captured can be specific servers or queues. They can also point to servers based upon a local environment variable. In the example above, one drive letter is mapped to a central corporate server, possibly across a WAN, which contains central data. A second drive letter is mapped based upon an environment variable which points to a generic application server which can vary from user to user based upon where the workstation is physically located.

The same principle could be applied to print queues. An environment variable containing the name of the default print queue for a given user logging into a certain workstation could be set. Therefore wherever and whoever ran the application, it would capture to a local printer and run the application from a local server while connecting to a central corporate server for data.

Variables can also make fault tolerance much simpler.  I frequently create a single application object that will remap users' network drives based upon the %failapps% variable for all network based applications.  If user's application server becomes unavailable and they try to run the ZEN APP, it will run the fail-over application which remaps the user to a working server.  One minor drawback to this is the first time a user clicks on the application, it will appear to do nothing when it actually remaps the user to a working server.  The user will need to click on the application for it to successfully run.  Optionally a message can be presented with the fail-over app such as "Network Error Corrected - Please Try Again."  This single app can be used by all user's regardless of the servers they use, which can significantly reduce network administration costs.