Page 1 of 1 1
Topic Options
#213615 - 2018-11-16 01:55 PM Windows 10, build 1803 - @logonmode
JNK Offline
Fresh Scripter

Registered: 2006-04-11
Posts: 33
Loc: USA
We recently went through a Windows 10 upgrade from build 1607 to 1803. Our Logon Script utilizes the @logonmode macro to trigger (or not trigger) certain events. It appears build 1803 always returns a 1. Bug?

Kix versions 4.66 and 4.67 tested.

Top
#213626 - 2018-11-27 12:51 AM Re: Windows 10, build 1803 - @logonmode [Re: JNK]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Hello JNK

Not sure. I don't have a machine with that build to test. But it would not surprise me, as Microsoft keeps locking down Windows 10 tighter with each build. Might need to do registry read to check for now until this can be confirmed and possibly fixed.

Top
#213631 - 2018-12-06 04:16 AM Re: Windows 10, build 1803 - @logonmode [Re: NTDOC]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
The @LOGONMODE macro has been intermittently unreliable over the years. This has ALWAYS worked for me:
 Code:
If @LOGONMODE Or InStr('%PATH%', 'NetLogon')
  $LOGONMODE = 1
This assumes you don't do anything weird like putting NetLogon in the system PATH variable.. \:\)

During login, Windows automatically adds the NetLogon folder to the system path. Once the login process completes, it's gone.

If it's always returning true, just use the PATH method.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#213633 - 2018-12-06 05:08 AM Re: Windows 10, build 1803 - @logonmode [Re: Glenn Barnas]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
 Quote:
During login, Windows automatically adds the NetLogon folder to the system path. Once the login process completes, it's gone.


First I ever heard of this. Interesting. Thx.

Top
#213637 - 2018-12-12 12:38 AM Re: Windows 10, build 1803 - @logonmode [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
So an old dog CAN teach you new tricks, eh? \:D
_________________________
Actually I am a Rocket Scientist! \:D

Top
#213638 - 2018-12-12 12:52 PM Re: Windows 10, build 1803 - @logonmode [Re: Glenn Barnas]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
Afaik the netlogon folder gets mapped to Z: during login.
Top
#213639 - 2018-12-13 12:41 AM Re: Windows 10, build 1803 - @logonmode [Re: Arend_]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
That stems from back in the day when we were told to never map the Z: drive (for that reason). I don't think that's been valid for a while now. \:\)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#213640 - 2018-12-13 03:13 PM Re: Windows 10, build 1803 - @logonmode [Re: Glenn Barnas]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Glenn, I believe I still see it happen. now, would I rely on that, nope.
_________________________
!

download KiXnet

Top
#213641 - 2018-12-13 09:52 PM Re: Windows 10, build 1803 - @logonmode [Re: Lonkero]
mole Offline
Getting the hang of it

Registered: 2003-01-01
Posts: 76
Loc: Indian Head, Maryland, USA
Think I recall that mapping netlogon to Z: a "wintendos" thing.
_________________________
mole

Who is John Galt?

Top
#213642 - 2018-12-14 02:55 PM Re: Windows 10, build 1803 - @logonmode [Re: mole]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yeah, it was mandatory with those things to use it, but it was/is accessible under the NT side too.
_________________________
!

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 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.06 seconds in which 0.024 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