S
S
Sicness2012-08-29 07:40:43
linux
Sicness, 2012-08-29 07:40:43

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

4 answer(s)
N
Nikolai Turnaviotov, 2012-08-29
@foxmuldercp

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

A
agmt, 2012-08-29
@agmt

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

S
smartlight, 2012-08-29
@smartlight

I, on the contrary, would make all means HELL.

S
stboris, 2012-08-29
@stboris

And who is the domain controller, Windows or Linux? If it's Windows, then it's easier to assemble it through PowerShell and put it where you need it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question