Hey everyone,
I hope someon can help me here, because this makes me mad.
I’m more like a linux guy, but sometimes I have to admin some windows stuff. Like, now.
I have a simple task but I just can’t get it to work. Surely I’m doing something wrong.
So this would be the job: on a bunch of windows workstations, there’s a CAD software installed locally. All the data is on a linux fileserver (which requires authentication). No domains or anything.
There’s a single file (a library) for the CAD, that has to be local on every workstation. This file is sometimes updated/expanded/changed, the master copy resides on the linux server, on the SMB share. It has to be distributed to all the workstations and must be copied to under C:\ProgramData, so it needs admin or higher privileges to be written. And again, the SMB needs authentication as well.
How should I do this?
My approach was a simple batch file, which checks if the file is available (i.e. the network is up) with a UNC path, and if it does. then it does an xcopy to ProgramData (only if the master file is newer than the local copy). And I execute this batch from a task scheduler job, every time any user logs in to the WS.
But this just won’t work for some reason. If I run this as the admin user, it won’t even start the job, despite the tick box is on “run this even if the user is not logged in”. Credentials are saved as well (or supposed to). Tried running as the builtin Administrators group, no joy. It doesn’t even see the network resources.
It only works If i run the job as a specified user (with highest privileges for the job) and only when that specified user logs in (any user logged it doesn’t work!), but that way I would have to do separate tasks for every single user.
So, I don’t know… Isn’t this how it supposed to work? How else should I do this?
Thanks for any help.