Question

Locked

suppress logon script

By blair.gardiner ·
How do I stop logon scripts from running on a particular server when users logon to using their domain credentials (which normally triggers logon script to run)

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Talk to the domain administrator...... <nt>

by ThumbsUp2 In reply to suppress logon script
Collapse -

Duh

by blair.gardiner In reply to Talk to the domain admini ...

I guess this means you have no idea either.

Collapse -

I can think of 2 ways

by Churdoo In reply to suppress logon script

I can think of 2 ways. And I'm assuming your logon script is a .bat or .cmd file.

1) Apply a Group Policy to that server which will override the typical logon script setting so the server will not process the typical script.

2) The second and easiest, is in your logon script, test for the COMPUTERNAME environment variable and skip the working part of the script if COMPUTERNAME equals the particular server name, something like this

if "%COMPUTERNAME%"=="THISSERVER" goto end
(normal script statements here)
:end

This of course will not stop the script from processing, but will skip all of the statements within the script that do anything.

Collapse -

Appreciated

by blair.gardiner In reply to I can think of 2 ways

Thanks I'll give this a go.

Back to Networks Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums