Hi Wasfi,
you have to follow below steps to creat a proper logon/logoff scrip in Group policy. Also please note only mention ip address of your auth connector server and not hte host name in your GPO Parameter and nothing else that only it will work.
It appears that the GPO is configured to run the script from Windows configuration as a “Startup” script. The aclogon script is a logon\logoff script, GPO should be configured to run it from “User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff)”
Please follow the below steps to run the script.
- Open the Group Policy Management console:
- Expand the Domains tree, right-click a domain or OU name, and select Create a GPO in this domain and Link it here.
- In the New GPO dialog box, give the GPO a descriptive name, then click OK.
- Locate the new GPO in the Domains tree (under the domain or OU that you selected above), right-click it, and select Edit.
- In the Group Policy Management Editor, navigate to User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff), then double-click Logon in the right pane.
- In the Logon Properties window, click Show Files. A folder whose name ends in User\Scripts\Logon\ is displayed.
- Copy the aclogon.exe files into this folder.
- In the Logon Properties window, click Add.
- Click Browse to open the logon script directory, then select aclogon and click OK.
- Verify that the aclogon script now appears in the list on the Logon Properties window, then click OK.
- In the Script Parameters option enter the hostname or IP address of your Auth Connector server. (Take a look at the Aclogon release notes for other optional parameters)
- To configure log off script, repeat steps 5 through 9. This time, double-click Logoff at Step 5 and copy aclogon file into the folder that opens.
- Close the Group Policy Management Editor window for your GPO, then close the Group Policy Management window.
- Repeat this procedure on each domain controller in your network, as needed.
Attachment for your reference
Thanks.