Talentless Hack

  • All
  • Read
  • Write
  • Hack Contact
  • Friday Apr 25 2008 (11:14 am)

    Perpetually prompting

    Usually Prompted Macros in ZENworks application objects only prompt for values on their first runs. To create one that will prompt for a macro value every time, add the following to a Run after termination script (or append it to the end of your script if you already have one):

    RD C:\NALCache\ETREE\.Application-Name.OU.OU.O /S /Q

    REG.EXE DELETE HKCU\Software\NetWare\NAL\1.0\Distribute\TREE_NAME\XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /f

    REG.EXE DELETE HKLM\SOFTWARE\NetWare\NAL\2.X\Macros\TREE_NAME\XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /f

    Script Engine: %*WINSYSDIR%\cmd.exe /c
    Script Extension: .bat

    Replace .Application-Name.OU.OU.O with the DN of your application object.
    Replace TREE_NAME with the name of your eDirectory tree.
    Replace XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX with the GUID of the application object.

    Leave a Reply

    You must be logged in to post a comment.