Solved

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

Posted on 2008-10-29
3
774 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
[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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Activity directory migration 4 23
DNS forwarders "unable to resolve" 1 67
Query inactive computers in AD. 12 37
Move files based on file names? 8 28
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In-place Upgrading Dirsync to Azure AD Connect
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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