msgbartop
Everybody get your shell on!
msgbarbottom

VB script to update NS Agent config

I ran across this the other day. This is a bit of VB script (Visual Basic script) that you can run on a Windows client to update the configuration of said client. Used in conjunction with a scripting method (say…Powershell?), this can be very handy for ad-hoc Altiris configuration updates of clients when then global refresh period wont cut it.

For instance, I use this in conjunction with Recovery Solution. When I make an important RS setting update (ie. a new exclusion, backup window updates, retention changes etc) I can run this against my environment to put the changes into effect immediately.

1
2
3
4
5
6
7
8
Option Explicit
Dim Client, IfUnchanged, IfBlocked
Set Client = CreateObject("Altiris.AeXNSClient")
Client.ClientPolicyMgr.Refresh
IfUnchanged = 1 'Sends the basic inventory even If it has not changed since the last transmission
IfBlocked = 1   'Sends the basic inventory even if the network connection has been blocked
Client.SendBasicInventory IfUnchanged, IfBlocked
Set Client = Nothing

To use this, simply put the above code into a file named something.vbs and run it on a Windows machine with the Altiris agent installed on it.

  • Twitter
  • Facebook
  • LinkedIn
  • Digg
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • Live
  • FriendFeed
  • Ping.fm
  • Print
  • email
  • PDF
  • RSS

Tags: ,

Leave a Comment