Page 1 of 2 12>
Topic Options
#104735 - 2003-09-02 10:56 AM @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


[Moderator (Sealeopard): Moved thread from 'Scripts' to 'General' forum due to lack of script in body]

I'm having some problems with the @userid
variable. The variable doesn't work with SOME Win95 clients.

I've read some topics about the @userid variable
and I'm sure it doesn't need the KXRPC service since it does work on some of the win95 clients.

All the win95 Clients run the same script.
I think it has something to do with the version of the Win95 clients or some specific files.

Can anybody tell me which files are being used when using the @userid variable?

Re-installing isn't an option [Frown]

[ 17. September 2003, 19:18: Message edited by: sealeopard ]

Top
#104736 - 2003-09-02 10:58 AM Re: @userid doesn't work with some Win95 Clients
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
@USERID (according to the manual) is the NT user id.

If this returns a blank value, try "@WUSERID", which is the Windows user ID.

Top
#104737 - 2003-09-02 11:54 AM Re: @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


Well I changed @userid to @wuserid, but it didn't work.

Here's some info from the script I'm using:

------------------------------------------------
$HomeShr = "H:"
$Ser1 = "\\Server1"

use $HomeShr $Ser1+"\@wuserid$$"
------------------------------------------------

Top
#104738 - 2003-09-02 02:02 PM Re: @userid doesn't work with some Win95 Clients
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Does @WUSERID return a value for those Win95 clients which don't return @USERID?

code:
If @USERID $USERID=@USERID Else $USERID=@WUSERID EndIf

$HomeShr = "H:"
$Ser1 = "\\Server1"

use $HomeShr $Ser1+"\"+$USERID+"$$"
If @ERROR
"FATAL: Failed to map drive to "+$Ser1+"\"+$USERID+"$$"+@CRLF
" Error: "+@ERROR+" "+@SERROR+@CRLF
EndIf


Top
#104739 - 2003-09-02 03:33 PM Re: @userid doesn't work with some Win95 Clients
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Try displaying the returned values from each function as well. If you think that it is an OS version issue try using jens UDF OSID to see which flavour of Win95 is causing the problem. Then use the Writelog udf to write the OS version info to a log whenever the userid is returned as a blank.

Also which version of Kixtart are you using?
_________________________
Jack

Top
#104740 - 2003-09-02 05:07 PM Re: @userid doesn't work with some Win95 Clients
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there is some problems in some kixtart versions.
but not getting a proper reply does not help solving his problem.

that's purely what I think.
_________________________
!

download KiXnet

Top
#104741 - 2003-09-02 08:47 PM Re: @userid doesn't work with some Win95 Clients
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
If it is a really old version of Win95 without the msnet32 patches, it might be a msnet32.dll problem but without more info it is hard to tell. Also as a point of reference, the user manual says this about WUSERID.

quote:
Note: During the logon sequence, WUSERID is empty on computers running Windows 9x if Windows NT Networking has been configured as the system's primary network provider.


[ 02. September 2003, 20:56: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#104742 - 2003-09-02 09:12 PM Re: @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


Sorry for the late reply, but I'm not behind my pc 24-7 [Smile]

I'm using Kixtart2001 4.21 and I'll have a look at those UDF documents and Richard's script at work 2morrow.

Thanks for replying!

Top
#104743 - 2003-09-03 09:52 AM Re: @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


Well I wrote this small script to see if @userid or @wuserid works on the win95 client.

-----------------------------------------------
? 'Hello, '+@USERID
GET $x
? 'Hello, '+@WUSERID
GET $x
-----------------------------------------------

Both don't work on the win95 client.

[ 03. September 2003, 09:53: Message edited by: Skillz ]

Top
#104744 - 2003-09-03 10:26 AM Re: @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


How do I use the OSID UDF from Jens Meyer?
How can I view the captured data?

Skillz feels like a total n00b... [Smile]

Top
#104745 - 2003-09-03 10:33 AM Re: @userid doesn't work with some Win95 Clients
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=10;t=000039
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#104746 - 2003-09-03 10:47 AM Re: @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


Thanks for the url R2D2.

And i've learned Dutch, dus Kix moet dan geen probleem meer zijn [Smile]

Top
#104747 - 2003-09-03 04:56 PM Re: @userid doesn't work with some Win95 Clients
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
If you think it is a OS version issue you might also look at this tecknet article. It will allow you to manually verify the version info.

How to Determine the Version of Windows 95/98/Me in Use

As to how to script what I suggested, you need to cut & paste the WriteLog2 & OSID from the UDF forum into word or wordpad & then save them in your script directory. Then use a script something like:

code:
dim $currentos[10]
$ScriptDir=@ScriptDir
call "$ScriptDir\OSID.udf"
call "$ScriptDir\writelog2.udf"
$currentos = osid()
$KixVer=@Kix
$Addr=@Address
$WUserID=@WUSERID
$UserID=@USERID
$LFile="c:\logdir\KixLogTest.txt"
$Msg = "OS Info="+Join( $currentos, " / " ) + " Kix Ver="+$KixVer+" UserID="+$UserID+"/"+$WUSERID+" Address="+$Addr
$RC=WriteLog2($LFile,$Msg,1)
exit

Change the $Lfile to point to a log file on the server & put this into the logon script & you will have a record of which type of machine fails. You can change the deliminators so you can import the file into Excel if you wish.

[ 03. September 2003, 19:34: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#104748 - 2003-09-04 11:34 AM Re: @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


After running OSID and looking at the Tech Doc from MS I found out the Win95 version is Windows 95 OSR2.0.

The "funny" thing is. so is the Win95 Client that DOES work...

Top
#104749 - 2003-09-04 01:15 PM Re: @userid doesn't work with some Win95 Clients
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, you have many choises here.
one is to upgrade those clients to something never than ... well.
another might be that you keep up looking what the problem is.

in the latter version you are gonna shed some tears, so watch out.
if you go on this path, you might want to start looking at the IE version on the computers.
another thing to check is what version is labeled on c:\windows\system\shell32.dll
_________________________
!

download KiXnet

Top
#104750 - 2003-09-04 01:44 PM Re: @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


Trust me, I'm allready shedding those tears :-)

I am going to update IE to the latest working version on Win95 (IE55SP2), but oh joy! MS doesn't provide the download anymore...

I'll have a look at SHELL32.DLL

Top
#104751 - 2003-09-04 04:07 PM Re: @userid doesn't work with some Win95 Clients
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
It is hard to say but my best guess is the updating/patching process was different in the 2 sets of machines. Win95 has a very convoluted & hard to understand patch history & MS has made made no attempt to help us create an optimal patching strategy. This problem predated MS dropping of support for Win95 & since then matters have just gotten worse. Jooel's suggestion of an IE upgrade related issue is possible but my bet would be it is one of the Networking or System patches.

You might try writing a script that does a file by file comparison of the Windows & Windows/System for the 2 machines. In particular, I would look for version/size/date differences in the network component files. This might help narrow down what are the differences between the 2 sets of machines. There are several UDFs in our UDF forum that can help you with this task.

Additionally, look at what software is installed on the 2 sets of machines. It could be that a 3rd party install has done something untowards. Also verify that the network setup on the 2 machines are exactly the same. With this type of problem fishing for differences may be the only way to pin down the problem.

PS: I have noted that several forums suggest you use IE5.5 SP2 for ME & that while running the direct update from the web will recognize the Win95 OS & it will use the proper WIN95 version.

Also check out this site: IE5.5 SP2 for Win95

[ 04. September 2003, 16:55: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#104752 - 2003-09-05 09:22 AM Re: @userid doesn't work with some Win95 Clients
Anonymous
Unregistered


Well, I installed IE55SP2 on the Win95 Client, but it still doesn't work...

I'll try to find & install some other (network) updates.

Thx for the great link Jack

Top
#104753 - 2003-09-05 02:05 PM Re: @userid doesn't work with some Win95 Clients
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
5.5 does not upgrade the system.
if your previous IE version wasn't 4.0 you can't upgrade your system anymore with IE.
now, did you check that shell32.dll?
_________________________
!

download KiXnet

Top
#104754 - 2003-09-05 02:25 PM Re: @userid doesn't work with some Win95 Clients
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Check out this site. It is dated but then so is Win95.

Windows 95 Patch history
_________________________
Jack

Top
Page 1 of 2 12>


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

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.067 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

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