JNK
(Fresh Scripter)
2018-11-16 01:55 PM
Windows 10, build 1803 - @logonmode

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.


NTDOCAdministrator
(KiX Master)
2018-11-27 12:51 AM
Re: Windows 10, build 1803 - @logonmode

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.


Glenn BarnasAdministrator
(KiX Supporter)
2018-12-06 04:16 AM
Re: Windows 10, build 1803 - @logonmode

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


AllenAdministrator
(KiX Supporter)
2018-12-06 05:08 AM
Re: Windows 10, build 1803 - @logonmode

 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.


Glenn BarnasAdministrator
(KiX Supporter)
2018-12-12 12:38 AM
Re: Windows 10, build 1803 - @logonmode

So an old dog CAN teach you new tricks, eh? \:D

Arend_
(MM club member)
2018-12-12 12:52 PM
Re: Windows 10, build 1803 - @logonmode

Afaik the netlogon folder gets mapped to Z: during login.

Glenn BarnasAdministrator
(KiX Supporter)
2018-12-13 12:41 AM
Re: Windows 10, build 1803 - @logonmode

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


LonkeroAdministrator
(KiX Master Guru)
2018-12-13 03:13 PM
Re: Windows 10, build 1803 - @logonmode

Glenn, I believe I still see it happen. now, would I rely on that, nope.

mole
(Getting the hang of it)
2018-12-13 09:52 PM
Re: Windows 10, build 1803 - @logonmode

Think I recall that mapping netlogon to Z: a "wintendos" thing.

LonkeroAdministrator
(KiX Master Guru)
2018-12-14 02:55 PM
Re: Windows 10, build 1803 - @logonmode

yeah, it was mandatory with those things to use it, but it was/is accessible under the NT side too.