From MicroFocusInternationalWiki
Revision as of 19:30, 21 September 2005 by Campbb (Talk | contribs) (environment variable change)

Jump to: navigation, search

Got a nagging question you'd like to get help from the community about? That, my friend, is the very reason the Cool Solutions Wiki was started. Come on in, post your question, and see who pops forth with an article about it.

I took the liberty of posting some previously Novell internal notes and guides on ZENworks on my [Evil ZEN Scientist blog].

While I'm at it - who else blogs or writes about ZENworks?

Blogging about ZENworks

How about a Cool Solutions for the following that still plague me:

  1. Automatic uninstall of Microsoft Client for Windows Networks
  2. Automatic uninstall of File/Printer sharing, Win XP

Permanent environment variable change

I am trying to update the Path environment variable on Windows 2000 machines through Zenworks. I want the changes to be permanent. I need to delete one path, and add two more. I have tried making an application object and putting the two paths to be added in the 'Environment variables' section - appending to the 'Path' variable with a ; separator. I checked the Path value, and it had not been updated. Any thoughts on how this can be done? Thanks!

The Microsoft setx.exe utility, which have from the Windows NT 4.0 resource kit, allows you to change an environment variable from a command line such that it will survive a reboot. The version I have (1.0a 5/31/96) appears to work fine on Windows XP Tablet SP2 and Windows 2000. However, it does appear that it was also part of the Windows 2000 resource kit, and you can download it from http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/setx-o.asp

After you have the utility, you could have a NAL object execute something like
setx Path %Path%;newpath1;newpath2
to do what you requested.