Solved

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

Posted on 2008-10-29
3
770 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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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 process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

792 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