Skip to content

VBScript execution through SCCM advertisement

Featured Replies

Hello

 

I am trying to deploy a vbscript through SCCM which pops for postpone or install though a message box for installing a partcular software. However when I deploy its not showing any message box, In advertisement setting I am using whether or not user is logged in

  • 2 years later...

Hello sccmkbk,

 

Sorry for this late reply (almost 2 years) :) . Recently I found out how to do it so it would be usefull to you in the future or for someone else whose facing this...

First of all to deploy a vbscript using "whether or not user is logged in" you must handle the situation when the user is not logged on to avoid that the advertisement fail due timeout, waiting for some user interaction if nobody is logged. This can be easily made using a WMI query in Win32_ComputerSystem, where the value UserName will be empty if nobody is logged on. You can see more information here (http://www.activexpe.../vbscript/0383/)

Regarding the issue you had, this only happens if you do not check the box "Allow users to interact with this program" right below the "Run with administrative rights".

 

Cheers!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.