Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Advertising ERROR!!!!

Advertising ERROR!!!!

Advertising ERROR!!!!

I'm getting this error when I try to advertise a program. It's a simple script file that creates local users on a PC.


An error occurred while preparing to run the program for advertisement "LG120057" ("LGLOIITM" - "LGLOIITM"). The operating system reported error 2147943648: No more local devices. Additional program properties:
Command line: LGLOIITMUSERRUN.bat
Working directory:
Drive letter (? = any): ?

Possible cause: This message most commonly occurs when the program’s command-line executable file could not be found, when a required drive letter connection to a distribution point could not be established, or when the program is configured to use the Windows NT Client Software Installation Account but the account is not specified, could not be found, or does not have the appropriate permissions.
Solution: Check each of the items listed above.

I also get the following error for the same script:

The program for advertisement "LG120058" failed ("LGLOIITM" - "LGLOIITM"). A non-zero exit code of 2 was returned.

Possible cause: SMS Advertised Program Manager (APM) determines status for each program it executes. If APM cannot find or correlate any install status Management Information Format (MIF) files for the program, it uses the program's exit code to determine status. A non-zero exit code is considered a failure.
Solution: For more information on the exit code, refer to the documentation for the program you are distributing.

Thanks in Advance!!

RE: Advertising ERROR!!!!

For the non-zero exit code error message, I suggest creating a batch file as your Program (this is commonly known as wrapping your installation).  This should prevent any error codes from being returned, therefore stopping this error.

Another more complicated solution would be to wrap your install in SMS Installer instead of batch.  This would allow you to use the return codes to actually return pertinent information.

RE: Advertising ERROR!!!!

Thanks it worked!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close