DKBofh
(Fresh Scripter)
2016-08-24 04:02 PM
Windows 10 error ??

I have a kix script running in a win 7 enviroment + a few win 10 machines :-)

On the win 10 machines one thing will not work when login on but works fine when runned manually

RUN "c:\login\test.bat" - this is a test file - normally it is used for login in to a SSO client (starting it - linked through AD)

I made a test calling a lnk to a pdf document to rule out the application.
The PDF is called from the batch file.

I do not have that much hair left but this removes the last.

Tried with v4.53 + 4.66 - and nothing happens in windows 10 at logon,

Any experience regarding issues like this i hope some of you can and will share ??


AllenAdministrator
(KiX Supporter)
2016-08-24 05:26 PM
Re: Windows 10 error ??

What's the contents of the bat?
Have you put in any debug info in the bat to make sure its actually running it?


NTDOCAdministrator
(KiX Master)
2016-08-24 10:04 PM
Re: Windows 10 error ??

Check your Event Logs and make sure nothing is up there.

This applies to Windows 8.1 so I would guess it also applies to Windows 10, though I've not looked up the link for Windows 10


Logon scripts do not run for five minutes after a user logs on to a Windows 8.1-based computer
https://support.microsoft.com/en-us/kb/2895815

The Startup Script is Dead
https://blogs.technet.microsoft.com/askpfeplat/2015/04/26/the-startup-script-is-dead/


LonkeroAdministrator
(KiX Master Guru)
2016-08-25 01:31 AM
Re: Windows 10 error ??

This is a windows 10 computer. Nothing, absolutely nothing works right on those.

That being said, technically since NT4.0 in order to run .bat files, you need to specify the interpreter.
So you run command.com or cmd.exe with your script as an argument.

Your way was never SUPPOSED to work in the first place.


Arend_
(MM club member)
2016-08-25 09:40 AM
Re: Windows 10 error ??

 Originally Posted By: Allen
What's the contents of the bat?
Have you put in any debug info in the bat to make sure its actually running it?

I don't think Bruce would like that...


DKBofh
(Fresh Scripter)
2016-08-25 10:35 AM
Re: Windows 10 error ??

Hi .....

Will investigate further....


DKBofh
(Fresh Scripter)
2016-08-25 01:47 PM
Re: Windows 10 error ??

Hmmmmmm......

Shell ; SHELL "c:\login\sso12.bat" will not work :-( nor when i'm using sleep with it (see below)

But..... this do - after the sleep was inserted (started with 5 and it works but just to make sure i put on 2 ekstra secs.

IF $OS =W7
run "c:\login\sso12.bat"
GOSUB REGFIX
else
run "c:\login\sso12.bat"
sleep 7
ENDIF

GOSUB VELKOMST1 (the last thing to do - welcome the user before ending the script)

Why the H.... the sleep is needed makes me wonder but it works so I think i will leave it there and keep on testing to make sure i can login at least a 100 times on different machines before going "into production"


Mart
(KiX Supporter)
2016-08-25 02:05 PM
Re: Windows 10 error ??

Just a wild guess but I think you need the sleep because Run does not wait until the command it executed is done. It continues with the next command directly after the Run command. Shell does wait until the thing executed by Shell is finished before it continues to the next line in the script.

DKBofh
(Fresh Scripter)
2016-08-25 02:32 PM
Re: Windows 10 error ??

THX..... at least an explanation. :-)

/Erik


JochenAdministrator
(KiX Supporter)
2016-09-02 01:08 PM
Re: Windows 10 error ??

Hej my fellow BofH.

You may try it with Allens way to be found here: http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=209906&fpart=1

Have successfully replaced a GPO based, Network dependant, Printer mapping construct which ran for at least 15 seconds with an XML/ADODB based kix script which was timed with 0.010 to 0.030s if the printers were at least mapped once ;\)
Well, as it seems there is now a follow me print solution in place, but that's progress which is cool for BofHs