Solved

How to enable a application upgraded message popup window , when the users logon into their PCs

Posted on 2014-01-02
8
337 Views
Last Modified: 2014-01-11
Hi

We use Windows 2012 AD and client as XP and windows 7 .I am going to do a software upgrade on our servers. After this upgrade  I want to communicate this  to all users through a popup window when they login into their PC on the next day. When they click OK on the message popup window , the window must disappear

I want to create a vbs script and call through the logon process.

I copied the following on a notepad and changed the file extension to .vbs and , when I double click , it throws with error

MsgBox("Application Server Upgraded")

Please note the server X application was updated on 30/12/13.Please run the X application  from the: Start -All Programs and please do not open any application while the PCs are getting udated.

Please post me the VBS syntax

Many Thanks
0
Comment
Question by:lianne143
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 22

Assisted Solution

by:mcsween
mcsween earned 500 total points
ID: 39752709
Enter the following code; Replace the section "Put your message here", do not remove the quotes.  Save to a file with a .vbs extension and setup as a login script.

option explicit

dim strMsg

strmsg = "Put Your Message Here"

msgbox strmsg

Open in new window

0
 

Author Comment

by:lianne143
ID: 39753447
Will I be able to put a Title Message  above the message. if so please post a  syntax for this.

Many thanks
0
 
LVL 22

Assisted Solution

by:mcsween
mcsween earned 500 total points
ID: 39754034
Option explicit

dim strMsg, strTitle
strTitle = "Put Your Title Here"
strMsg = "Put Your Message Here"

MsgBox strMsg,vbOKOnly,strTitle

Open in new window

0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:lianne143
ID: 39755976
Hi

I copied the above code to a text file and renamed it as AppUpgrade.VBS and when I execute on the desktop it successfully works.

I copied the AppUpgrade.VBS file to the following path. This where the Staff Login script.VBS resides

\\Server-001\NETLOGON\AppUpgrade.vbs

Then: I opened the StaffLogin.vbs and added the following line to this vbs script, so that it would call the: AppUpgrade.vbs , during the logon process.

Wscript \\Server-001\NETLOGON\AppUpgrade.vbs


When I login into any PC,  during the logon process I am getting the following error instead of the Popping the upgrade window to the users.

Windows Script Host

Script:\\Server-001\NETLOGON\StaffLogin.vbs
Line:82
Char:11
Error:Syntax error
Code:800A03EA
Source::Microsoft VBscript Compilation error

Any help much appreciated!
Thanks
0
 
LVL 22

Accepted Solution

by:
mcsween earned 500 total points
ID: 39756691
To call the script from another script you will have to use the wshell object.
Dim wShell

Set wShell = CreateObject("wscript.shell")

wShell.Run "WScript.exe  \\Server-001\NETLOGON\AppUpgrade.vbs"

Open in new window


Or you can just copy the script to the end of your app-upgrade script.  Just don't copy the option explicit line (this must be the first line of any script if used).
0
 

Author Comment

by:lianne143
ID: 39758106
Hi Mcsween

That worked like a charm :)

Thanks you so much for your help!
0
 
LVL 22

Assisted Solution

by:mcsween
mcsween earned 500 total points
ID: 39759722
Please don't forget to award points.  Thanks!
0
 

Author Comment

by:lianne143
ID: 39774028
Will I be able to alert you in my future posts.
Many thanks and your points awarded :)
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question