Loginscript kann Mac-Adresse nicht mehr auslesen
Geizhals » Forum » Netzwerk » Loginscript kann Mac-Adresse nicht mehr auslesen (26 Beiträge, 191 Mal gelesen) Top-100 | Fresh-100
Du bist nicht angemeldet. [ Login/Registrieren ]
......
Re(6): Loginscript kann Mac-Adresse nicht mehr auslesen
18.06.2007, 15:29:38
IF $ClientMAC="NoTerminalServer"
$ClientMAC=@ADDRESS
ENDIF

;Set the time on the WS same as on the Server
SETTIME @LSERVER

;Set the P_Station env variable to equal the clientname (for citrix env)
set P_STATION=%CLIENTNAME%
SETM P_STATION=%CLIENTNAME%
SHELL "$L P_STATION=%CLIENTNAME%"

;Set variables for shares
$fiddata="\\alois003" + "\" + "MFDATA" + "$"
$program="\\alois003" + "\" + "PROGRAM" + "$"
$batch="\\alois003" + "\" + "BATCH" + "$"
$diverse="\\alois003" + "\" + "DIVERSES" + "$"
;$user="@LSERVER" + "\" + "USER" + "$"
$netlogon="@LSERVER" + "\" + "NETLOGON"

$printsales="\\alois003\aloid001"
$printconvention="\\alois003\aloid002"
$printkitchen="\\alois003\aloid003"
$printtechnik="\\alois003\aloid004"
$printaccounting="\\alois003\aloid005"
$printhr="\\alois003\aloid006"
$printhk="\\aloiw029\aloid013"
$printdirektion="\\alois003\aloid007"
$printfrontdesk3="\\alois003\aloid008"
$printfrontdesk4="\\alois003\aloid009"
$printreservation="\\alois003\aloid010"
$printfrontdesk2="\\alois003\aloid011"
$printbackoffice="\\alois003\aloid012"
$printsalescolor="\\alois003\aloic001"
$printsalesxerox="\\alois003\xerox3535"
$printfoxerox="\\alois003\xerox1632"
$printspa="\\alois003\aloid013"
$printfrontdesk1="\\alois003\aloid014"

IF @userid="Fidelio"
GOTO FID
ELSE
IF @userid="Interface"
GOTO FID
ELSE

IF INGROUP ("FidelioUsers")
GOTO FIDELIO
ELSE
GOTO USER
ENDIF

:USER
;Set envioment variables for WinNT clients
SET "YES=Y"
SET "PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;G:\PROG\FIDELIO\PROGRAM;G:\PROG\FIDELIO\UTILITY\DIVERSES"
SET "P_STATION=$ClientMAC"
GOTO END

:FIDELIO
;Set envioment variables for WinNT clients
SET "YES=Y"
SET "PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;G:\PROG\FIDELIO\PROGRAM;G:\PROG\FIDELIO\UTILITY\DIVERSES"
SET "P_STATION=$ClientMAC"
GOTO END

:FID
;Set envioment variables for WinNT clients
SET "YES=Y"
SET "PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;G:;U:;V:;X"
SET "P_STATION=$ClientMAC"
GOTO MAP4

:MAP4
; Drop any mappings on drives that we need
; USE * /DELETE
; Now map the drives
USE F: $netlogon
USE J: $fiddata
USE U: $program
USE V: $diverse
USE X: $batch
GOTO END

:END

CLS

;Display login information
Small
Color r+/n
Box (7,15,18,65,SINGLE)

Color w+/n
AT ( 9,20) "Userid       : "    ; display some text strings
AT (10,20) "Full name    : "
AT (11,20) "Privilege    : "
AT (12,20) "Workstation  : "
AT (14,20) "Domain       : "
AT (15,20) "Logon Server : "
AT (16,20) "Current Time : "

Color w+/n
AT ( 9,35) @userid              ; ...and some macro''s
AT (10,35) @fullname
AT (11,35) @priv
AT (12,35) @wksta
AT (14,35) @domain
AT (15,35) @lserver
AT (16,35) @time
SLEEP 5
; ----------------------------------------------------------------------------------------------
;  General Printer Handling for all Workstations

;ALOIW012 - Front Office I WS
IF $ClientMAC="xxxxxxxxxxxxxxxxxx"
GOTO END2
ENDIF
;ALOIW008 - Front Office II WS
IF $ClientMAC="0xxxxxxxxxxxxxxxxxx"
GOTO END2
ENDIF
;ALOIW007 - Front Office III WS
IF $ClientMAC="xxxxxxxxxxxxxxxx"
GOTO END2
ENDIF
;ALOIW027 - Front Office IIII WS
IF $ClientMAC="xxxxxxxxxxxx"
GOTO END2
ENDIF

USE LPT1 /DEL
USE LPT2 /DEL
USE LPT3 /DEL
USE LPT4 /DEL

:END2

; ----------------------------------------------------------------------------------------------
;  Printer Handling by %P_STATION%

;*** DIREKTION


;ALOIL001 - General Manager LT
IF $ClientMAC="xxxxxxxxxxxxx"
USE LPT1 $printdirektion
USE LPT2 $printdirektion
USE LPT3 $printdirektion
ADDPRINTERCONNECTION ("$printsalesxerox")
ADDPRINTERCONNECTION ("$printdirektion")
IF SETDEFAULTPRINTER ("$printdirektion") <> 0
SLEEP 3
SETDEFAULTPRINTER ("$printdirektion")
ENDIF
ENDIF

18.06.2007, 15:32 Uhr - Editiert von systemnoob, alte Version: hier
Antworten PM Übersicht Chronologisch Zum Vorgänger
 
Melden nicht möglich
 

Dieses Forum ist eine frei zugängliche Diskussionsplattform.
Der Betreiber übernimmt keine Verantwortung für den Inhalt der Beiträge und behält sich das Recht vor, Beiträge mit rechtswidrigem oder anstößigem Inhalt zu löschen.
Datenschutzerklärung