I would like to start the audit_windows script in the login-script from the AD-Server.
If i start the audit_windows script on the local machine everything is working.
But if the script started in the login-script it doesnt.
I'll make a note to write up some documentation on this, however this is a Windows configuration thing, NOT an Open-AudIT issue. There are multiple ways to configure active directory login scripts and they can change. You should really see Microsoft for documentation on this.
Just make sure you read the script documentation (in the script itself) and either set the variables in the script or pass them at runtime.
The Link in your answer helps!