Answer the question
In order to leave comments, you need to log in
How to collect a file from all win PCs in AD in Linux?
Hello.
Please tell me the simplest options on how to collect a file with a fixed address in Linux from all Windows computers in an AD domain. What would it be possible to automate in cron.
I repeat. Purpose: to collect a specific file in Linux from all computers in AD. There are many computers and their list can change from time to time, that is, it must be formed dynamically.
The easiest option is to display all PCs and balls as folders, but I don’t remember how to do this.
Answer the question
In order to leave comments, you need to log in
1. in general, it is easier to solve such things on clients, and not torturing the unfortunate server.
2. And why is this a tricky file such that it must be collected from all PCs? I feel in one place that this is some kind of sad crutch
smbtree # this is how we get a list of all machines, they will need to be parsed a little
mount.cifs # trying to connect to a new share and take the necessary file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question