Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Remotely Re-Install the Altiris NS Agent

Updated: 29 Feb 2008 | 8 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

faigi's picture
07
Aug
2007
0 Votes 0
Login to vote

Nice one!

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

nrhudson's picture
08
Aug
2007
0 Votes 0
Login to vote

Nice script, how about automating it?

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

Brian Hodges's picture
30
Aug
2007
0 Votes 0
Login to vote

WMI errors

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???

bhardy's picture
07
Sep
2007
0 Votes 0
Login to vote

WMI error again

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

ajpow365's picture
29
Feb
2008
0 Votes 0
Login to vote

Error handling

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.

Fray's picture
28
Nov
2008
0 Votes 0
Login to vote

Just a Few Comments ...

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.

P JB's picture
09
Aug
2010
0 Votes 0
Login to vote

Install NSAgent Silently using scheduled task.

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.

mgarza896's picture
09
Sep
2011
0 Votes 0
Login to vote

Silent install

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