78 lines
4.1 KiB
HTML
78 lines
4.1 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="dc.language" scheme="rfc1766" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow"/>
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<title>Logon scripts</title>
|
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
|
</head>
|
|
<body>
|
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
|
|
|
|
|
<a name="logon_scripts"></a>
|
|
<h2 id="logon_scripts">Logon scripts</h2>
|
|
<p>Logon scripts are DOS batch files that the client downloads and runs during
|
|
the logon process. Logon scripts are placed in the NETLOGON share (by default,
|
|
the NETLOGON share is /QIBM/UserData/OS400/NetServer/NetLogon for iSeries NetServer™)
|
|
on the Logon Server. Special naming conventions must be followed for an iSeries
|
|
Logon Server to report logon script file names to the client. The following
|
|
steps are used by iSeries NetServer to determine the logon script name. Assuming a user
|
|
name of KRISTY, who is a member of the iSeries Primary Group PCGROUP.</p>
|
|
<p></p>
|
|
<ol type="1">
|
|
<li>If the file KRISTY.BAT (case does not matter for case insensitive file
|
|
systems) exists in the NETLOGON share, then that file is used as the logon
|
|
script.</li>
|
|
<li>Else if PCGROUP.BAT exists in the NETLOGON share, then that is used.</li>
|
|
<li>Else the file name QZLSDEFT.BAT is used. If that file does not exist
|
|
or is not accessible, then no logon script is processed.</li></ol>
|
|
<a name="wq93"></a>
|
|
<div class="notelisttitle" id="wq93">Notes:</div>
|
|
<ol type="1">
|
|
<li>Placing a new user or group logon script in the NETLOGON share is not
|
|
guaranteed to be picked up by the user at the next logon without restarting iSeries NetServer because
|
|
this item is cached. However, performing a CHGUSRPRF command on a user (with
|
|
or without options) will cause the cache to be updated during the next access
|
|
and the new logon script should be found.</li>
|
|
</ol>
|
|
<p>If the user is logging on from a PC with the IPLC, that client is limited
|
|
to DOS 8.3 logon script file names. For example, if the user logging on is
|
|
Administrator, and it matches a profile on the iSeries called ADMINISTRA (10
|
|
char max), then the first logon script file checked for will be ADMINIST.BAT.</p>
|
|
<p>Because many more environment variables are defined for Windows
|
|
2000 and Windows XP, these platforms are capable of running more flexible
|
|
logon scripts than the Windows 98 client. For example, from Windows NT with
|
|
service pack 4, the following environment variables are understood: %Homedrive%,
|
|
%Homepath%, %Homeshare%, %OS%, %Userdomain%, %Username%, %Logonserver%, and
|
|
%Processor_level%.</p>
|
|
<p>The following is an example of a logon script designed for users logging
|
|
in from NT clients: </p>
|
|
<pre class="xmp">echo Logged into domain: %Userdomain%
|
|
|
|
echo Mapping X drive to personal share...
|
|
net use x: %logonserver%\%username%
|
|
|
|
echo Mapping Y drive to operating system specific share...
|
|
net use y: %logonserver%\%OS%
|
|
|
|
echo Synchronizing PC time with the server
|
|
net time %logonserver% /SET
|
|
pause</pre>
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|