PDA

View Full Version : Kixtart



cprinciott
05-16-2001, 04:42 PM
Does anyone have a kixtart script to check OS WinNT/W2k and then to change the permissions on the DontDisplayLastUserLogon Key since you cannot be a regular user.

cmarti
07-05-2001, 07:55 PM
I don't have the last user logon part of the script but this script will get the OS ip address and get the current logged on user.

IF @INWIN = 1
$NTTYPE = READVALUE("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\ProductOptions","ProductType")
SELECT
CASE $NTTYPE="LANMANNT" $OS="Windows NT Domain Controller"
CASE @DOS=4.0 AND $NTTYPE="ServerNT" $OS="Windows NT Server"
CASE @DOS=4.0 AND $NTTYPE="WinNt" $OS="Windows NT Workstation"
CASE @DOS=5.0 AND $NTTYPE="ServerNT" $OS="Windows 2K Server"
CASE @DOS=5.0 AND $NTTYPE="WinNt" $OS="Windows 2K Professional"
ENDSELECT
ELSE
SELECT
CASE @DOS=4.0 $OS="Windows 95"
CASE @DOS=4.10$OS="Windows 98"
ENDSELECT
ENDIF


;MSGUSER
$MSG1= "Your machine name is @wksta"+CHR(10)+"Your ip address is @ipaddress0"+CHR(10)+"Your operating system is $OS"
$m = messagebox("$MSG1","Machine Infomation",64)


The best place I've found on the net for kixtart questions is: http://www.kixtart.org/cgi-bin/ultimatebb.cgi