Solved

Using Kixtart to show splash screen when users logon on certain days

Posted on 2008-10-29
3
759 Views
Last Modified: 2010-05-18
We are on a Windows 2003 network and I have been asked to create a logon script for one of the companies we support which will display a small jpg image from a shared folder on the network.  The idea is that it would only apply to those in a specific security group, only run two days a week (Mon and Wed) and show a different image on each of those days.  I understand it might be possible using case statements. I want to use Kixtart to do this but do not have much experience using it so I would appreciate any help or guidance anyone could offer.
0
Comment
Question by:davehaines99
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Dudge669 earned 500 total points
ID: 22832648
Well, I'm not sure about kixstart but it can be done using regular Windows batch commands with the help of a Microsoft resource kit utility called IFMEMBER available here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=07c2f6d7-815e-4fa0-9043-4e4635ccd417&displaylang=en

Another utility mentioned in the script below, called NOW is available here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=85b1a39e-d381-4bb7-9e58-e51379cb6542&displaylang=en

If you want your script to not be a little more silent and not so "showy" with all of the commands below, you can add  >NUL to the end of the ifmember and date/now commands
IFMEMBER yourdomain\grouptocheck

if %errorlevel%==0 goto :eof

REM ifmember returns errorlevel 1 if logged on user is member of

REM specified group, 0 if NOT
 

REM As long as the typical Windows "short date" format hasn't changed,

REM the day of the week should show when you do a DATE /T command

REM Download NOW.EXE if you want to be sure
 

date /t|find "Mon"

if %errorlevel%==0 (

  start -path-and-filename-of-Monday-image-file

)
 

date /t|find "Wed"

if %errorlevel%==0 (

  start -path-and-filename-of-Wednesday-image-file

)
 

REM --------------------------------------

REM If you want to use the NOW command instead, it's a simple change:
 

now|find "Mon"

if %errorlevel%==0 (

  start ....

)
 

REM The syntax and check is the same.

Open in new window

0
 

Author Comment

by:davehaines99
ID: 22833142
This looks great.  I will try it out and let you know how I get on.
0
 

Author Closing Comment

by:davehaines99
ID: 31511173
This worked like a charm!  The now option for getting the day of the week worked best in my environment.  
Many thanks

Many thanks
0

Join & Write a Comment

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now