Score:0

AD User logon script on custom server

tw flag

Is it possible to run user logon script stored on a specific machine in domain, without using GPO?
I tried to set logon script for AD user as \\machine.domain.local\share\script.bat or cmd /k \\machine.domain.local\share\script.bat but it doesn't work.
there are no sessions at fsmgmt on script-storage-machine when user log in
eventvwr checked - no related events

Score:1
us flag

User Logon Script attribute does not support absolute UNC paths. It also does not support CMD commands. The way it works, it will look for the script in NETLOGON share and try to run it.

If you really need to keep your scripts on non-DC server, just put a launcher script to your NETLOGON share. The launcher script can call another script located anywhere

Launcher script example

@echo off
call \\machine.domain.local\share\script.bat
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.