Page 1 of 1 1
Topic Options
#38079 - 2003-03-19 05:58 PM Script will not run at login-what am I doing wrong
NKK Offline
Fresh Scripter

Registered: 2003-03-17
Posts: 37
Loc: Marshall Texas
Win2k workstation
Win2k Servers
v4 KIX

I have a test user that when I logon as it, the login script does not seem to run since there is no mappings to depts or home. The user is not in any groups mentioned in the script. It should just map home and depts. In the user's profile I have Login script set to kathy.bat it consists of
code:
  
%0\..\kix32.exe kktest.kix

kktest.kix is:
code:
 ;  LOG-IN SCRIPT
; Script written for NORIT Users 9/02

CLS

; For Marshall


use h: /delete/persistent
use g: /delete/persistent
use h: "\\TX-FS1\Marshall\home\%username%"
use g: "\\TX-FS1\Marshall\depts"

;MACOLA
if ingroup("TX-Macola Access")
Use M: /delete
USE M: "\\Tx-Apps\Apps"
endif

;MAPCON
if ingroup("TX-Mapcon")
Use O: /delete
USE O: "\\Tx-Apps\Apps"
$desktop = READVALUE("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")copy "\\tx-pdc\netlogon\shortcuts\mapcon.lnk" $desktop

endif
; LIMS
if ingroup("TX-LIMS")
$desktop = READVALUE("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")copy "\\tx-pdc\netlogon\shortcuts\flash.lnk" $desktop


;ORDERS
if ingroup("TX-Orders")
$desktop = READVALUE("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")copy "\\tx-pdc\netlogon\shortcuts\orders.lnk" $desktop
endif

;QUALITY
if ingroup("TX-Quality-System-DB")
$desktop = READVALUE("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")copy "\\tx-pdc\netlogon\shortcuts\quality.lnk" $desktop
endif

exit



Top
#38080 - 2003-03-19 06:04 PM Re: Script will not run at login-what am I doing wrong
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
%0\..\kix32.exe %0\..\kktest.kix

see the FAQ

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=10;t=000025

[ 19. March 2003, 18:12: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#38081 - 2003-03-19 06:11 PM Re: Script will not run at login-what am I doing wrong
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
BTW:
code:
 ; LOG-IN SCRIPT
; Script written for NORIT Users 9/02

CLS

; For Marshall


use h: /delete /persistent
use g: /delete /persistent
use h: "\\TX-FS1\Marshall\home\%username%"
use g: "\\TX-FS1\Marshall\depts"

$desktop = READVALUE("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")

;MACOLA
if ingroup("TX-Macola Access")
Use M: /delete
USE M: "\\Tx-Apps\Apps"
endif

;MAPCON
if ingroup("TX-Mapcon")
Use O: /delete
USE O: "\\Tx-Apps\Apps"
copy "\\tx-pdc\netlogon\shortcuts\mapcon.lnk" $desktop
endif

;LIMS
if ingroup("TX-LIMS")
copy "\\tx-pdc\netlogon\shortcuts\flash.lnk" $desktop
endif

;ORDERS
if ingroup("TX-Orders")
copy "\\tx-pdc\netlogon\shortcuts\orders.lnk" $desktop
endif

;QUALITY
if ingroup("TX-Quality-System-DB")
copy "\\tx-pdc\netlogon\shortcuts\quality.lnk" $desktop
endif

exit

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#38082 - 2003-03-19 06:49 PM Re: Script will not run at login-what am I doing wrong
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
if you have no win9x machines, you could remove that bat totally and just put in the usermanager:
"kix32 kktest"

as logonscript
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 847 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.051 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org