A
A
Alexey2018-11-16 09:34:11
System administration
Alexey, 2018-11-16 09:34:11

How to add a script when entering a domain network?

There is a program called Frendly Pinger. I planned to use it to inventory computers on the network.
The scheme is as follows, there is a file (Collect.exe) that collects information about the computer (does not require administrator rights), I placed it on the server itself.
And actually the script \\SERVERNAME\netlogon\Collect.exe -s:NAMECOMPUTER-a -Desktop -StartMenu The batch
file added to netlogon. I also added a batch file to the login script.
It seems that I did everything, but nothing works) I'm new to this business, maybe tell me something. Seems like I'm missing something.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saiputdin Omarov, 2018-11-17
@generalx

The network directory must be attached as a net use drive How to use net use correctly? and run the script from under it.

S
sanglyb, 2018-11-22
@sanglyb

You can add a domain to the trusted zones so that the exe shnik does not swear at security at startup - https://www.mytechnote.ru/article/dobavlenie-domen...
If it still does not start, then this program will need to be from the batch file run:
start \\path\to\prog-parameters

E
EvilSide, 2019-10-09
@EvilSide

There was a similar situation, if I'm not mistaken, I was helped by placing the script along the path "C:\Windows\SYSVOL\sysvol\domain.local\scripts" (I created a couple of scripts and did not share them with policies) and prescribed it for the user (one big note, the name of the script should be without spaces ).
Didn't realize it's been a year...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question