[THIN] Re: ifmember and Usrlogon.cmd

  • From: "Walter, Chris" <christopher.walter@xxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Mon, 6 Jun 2005 11:20:34 -0400

I agree, you should use some sort of scripting tool for you login scripts.
I would also look at using a Select..Case statement where your user would
only fall into one category instead of running through many IF Statements.

Chris

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of Matthew Shrewsbury
Sent: Monday, June 06, 2005 10:47 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: ifmember and Usrlogon.cmd

Kix is easier I think, but personally I'd use WSH Javascript.

Here is a simple kix example.

IF INGROUP ("domain users")
  USE G: /DEL
  USE G: "\\Server\Share" 
ENDIF   

Matthew Shrewsbury, MCSE+Internet MCSE 2000 CCA Server+
Senior Network Administrator
-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of msemon@xxxxxxx
Sent: Monday, June 06, 2005 10:42 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] ifmember and Usrlogon.cmd

Trying to remember the syntax to map a bunch of groups with ifmember.exe
in Usrlogon.cmd file. So far I have something like this:


echo off

ifmember hr
if errorlevel 1 goto hr

ifmember marketing
if errorlevel 1 goto marketing

ifmember administrators
if errorlevel 1 goto administrators

goto end

:hr
net use M: \\server1\hr_share$
goto end

:marketing
net use N: \\server1\marketing_share$
goto end

:administrators
net use O: \\server1\admin_share$
goto end

:end
Exit

Anyone have a better way of doing this?

Thanks,

Mike



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


********************************************************
This Weeks Sponsor: ThinPrint GmbH
Now available: The new version .print Engine 6.2 with SSL encryption 
and certificate management.
http://www.thinprint.com
********************************************************** 
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
ThinWiki community - Excellent SBC Search Capabilities!
http://www.thinwiki.com
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm
********************************************************
This Weeks Sponsor: ThinPrint GmbH
Now available: The new version .print Engine 6.2 with SSL encryption 
and certificate management.
http://www.thinprint.com
********************************************************** 
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
ThinWiki community - Excellent SBC Search Capabilities!
http://www.thinwiki.com
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm
********************************************************
This Weeks Sponsor: ThinPrint GmbH
Now available: The new version .print Engine 6.2 with SSL encryption 
and certificate management.
http://www.thinprint.com
********************************************************** 
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
ThinWiki community - Excellent SBC Search Capabilities!
http://www.thinwiki.com
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

Other related posts: