myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


           



Vbscript

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Vbscript Page: [1]
Login
Message << Older Topic   Newer Topic >>
Vbscript - 4/27/2008 12:49:55 PM   
smsjourney

 

Posts: 40
Score: 0
Joined: 11/29/2006
Status: offline
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
Post #: 1
RE: Vbscript - 4/28/2008 12:17:42 AM   
rtruss


Posts: 212
Score: 10
Joined: 11/4/2004
Status: offline
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!

_____________________________

Roger Truss
Assistant Windows Administrator
SMS Admin
Trend Micro Admin
ImageUltra Admin

Please rate my post ;)

(in reply to smsjourney)
Post #: 2
RE: Vbscript - 5/2/2008 2:48:56 PM   
crhoad

 

Posts: 26
Score: 2
Joined: 8/28/2002
Status: offline
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.

(in reply to smsjourney)
Post #: 3
RE: Vbscript - 5/2/2008 3:49:19 PM   
aparrott

 

Posts: 22
Score: 3
Joined: 12/1/2005
Status: offline
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.

(in reply to crhoad)
Post #: 4
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Vbscript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.203