Vbscript (Full Version)

All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager



Message


smsjourney -> Vbscript (4/27/2008 12:49:55 PM)

I am having a problem launching a notification for end user to see before an application  is to be loaded. I found a script to do just the job but it would not lauch . It is scheduled to execute first then the app will begin once they click ok. I used cscript.exe file.vbs in the package and it is not working . If ran manually it will work and yes I am using an account with sufficient right in sccm to run the program. Can some look at this script and let me know how to implement this properly.

Set WshShell = Wscript.CreateObject("Wscript.Shell")
set oEnv = WshShell.Environment("PROCESS")
oEnv("SEE_MASK_NOZONECHECKS") = 1
WshShell.Popup "The  Adobe Reader 8 Installation will now begin." & VBLF & "Please save your work and close all open programs." _
& VBLF & "After Installation your workstation will reboot." & VBLF & "Click OK to begin installation.", 3600," sample", 0 + 64

oEnv.Remove("SEE_MASK_NOZONECHECKS")
wscript.quit


smsjourney




rtruss -> RE: Vbscript (4/28/2008 12:17:42 AM)

Perhaps you could try this, mininotify.
http://www.myitforum.com/forums/searchpro.asp?phrase=mininotify&author=&forumid=ALL&topicreply=both&message=body&timeframe=%3E&timefilter=0&language=single&top=300&criteria=AND&minRank=0&sortMethod=r&submitbutton=+OK+

someone from the forum turned me on to it and It is the bomb!




crhoad -> RE: Vbscript (5/2/2008 2:48:56 PM)

I was trying to use a script similar to this to notify the user when the install was finished. 
I’m currently using 2003.  I saw the same thing as you, when run manually it works perfect but when run through SMS it wouldn’t popup. The problem is its running under the System account and not the user account so the user will never see it.  There are ways to imitate the user so they could see it however I haven’t found a way to get it to work yet.




aparrott -> RE: Vbscript (5/2/2008 3:49:19 PM)

If you are running using LocalSystem and you want the user to interact you need to check the Program option (Environment dialog); "Allow users to interact...". 

Hope this helps.




smsjourney -> RE: Vbscript (5/23/2008 11:26:02 AM)

aparrot,

thanks for you advice it works great!!!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.3588867