Video Screencast Help

Remotely Re-Install the Altiris NS Agent

Created: 07 Aug 2007 • Updated: 29 Feb 2008 | 9 comments
robertser's picture
0 0 Votes
Login to vote

Quick and easy script to uninstall and re-install the Altiris Agent remotely. It first pings the computer to verify that it is on-line and then executes a local command on the PC to uninstall the agent. Once complete it initiates a re-install. All progress of the script is shown real time in an IE window.

You will need to edit the first section of the script to change the domain names to match your network. Change the 2 variables strDomainName and strNSFQDN.

License: AJSL
By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License
Support: User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.

Comments 9 CommentsJump to latest comment

faigi's picture

Nice one! i can make use of this , Thanks for that

0
Login to vote
nrhudson's picture

Downloaded this script and using on our helpdesk and desktop support teams now. Would be nice to take this to the next level and automate this for the install on new machines. Example, check via login script for altiris agent and if not there, install it, if there but services stopped start services, otherwise exit. Would also be nice to add aclient install for Deployment Server as a check in the process too. Otherwise, I may tweak the code to satisfy needs further, but good script to use for immediate need on re-installs. Thanks

Nate Hudson
Senior Systems Engineer
West Bend Mutual Insurance

0
Login to vote
Brian Hodges's picture

i have tried this on 2 test clients so far, 1 2000 and 1 XP and both have given me this error:

5 Error Accessing WMI.. Exiting..

any ideas???

0
Login to vote
bhardy's picture

Like the previous post I also get the same WMI error - I have a vague idea - is there not a service that needs started to expose WMI to the network? I guess many lockdowns will disable this service.

I will post again if I fix this but its low priority at the moment.

Just a thought - but a good tool nonetheless.
Brian Hardy

0
Login to vote
ajpow365's picture

This script bombs out on every error handler. If I comment out the error handling, it completes the uninstall but then bombs on the install.

0
Login to vote
Fray's picture

Good script. 2 comments:

1. For those of you looking to use this file line 173 has a server name referenced. Must be changed.

2. I agree with nrhudson's comment. Too bad you hadn't taken this further. I too will have to tweak it.

Thanks for the script though - it's a very good starting point.

0
Login to vote
P JB's picture

Hi,

I am trying to install NSAgent 6.0.0.2416 on Windows 7 machines in logged off mode with the command AeXNSC.exe /install /s. It fails to install. It triggers and exits the install immediatly. Could anybody help me in installing NS Agent silently.

Thanks.

0
Login to vote
mgarza896's picture

The commands I use are:

(7.1)  start /wait AeXNSC.exe /s /ns=servername.FQDN /nsweb=http(s)://servername.FQDN/Altiris

or

(6)  start /wait AeXNSC.exe /s /ns=servername.FQDN /nsweb=http://servername.FQDN/Altiris

or

(6)  start /wait AeXNSC.exe /s /ns=servername.FQDN /nsweb=https://servername.FQDN:443/Altiris

HTH

Marco

0
Login to vote
cerdamarco's picture

Anyone still on this post? Great script but get this error every time it tries to install.

http://ENTWSYMSMP1.harrahs.org/altiris -p 50 -NOTRAYICON -NOSTARTMENU could not be started due to error: . Exiting...

0
Login to vote