Excellent thanks
When I run it on the local machine it works when I run it from System Center Configuration Manager it errors out
============================================================================
Severity Type Site code Date / Time System Component Message ID Description
Error Milestone DTS 11/25/2009 2:35:15 PM OPPMCCS6084TST Software Distribution 10006 The program for advertisement "DTS2007A" failed ("DTS00048" - "Test Deletion Altiris"). A failure exit code of 255 was returned. User context: NT AUTHORITY\SYSTEM Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the program, it uses the program's exit code to determine status. An exit code of 255 is considered a failure. Solution: For more information on the exit code, refer to the documentation for the program you are distributing.
any idea? which command fails?
I am trying to log some steps now...
Thanks,
Dom