[RESOLVED] Batch file question
I'm not sure if this post should go in this thread so feel free to move it if it belongs somewhere else.
We're running a Windows network on a mixed Windows 2000/2003 domain. We use simple batch files as login scripts for all of the user's. We have a situation where, through one of these batch files, we'd like to create a new directory on each PC's hard drive, copy files into that directory from a fileserver location, and than copy another single file to the All Users desktop folder and have it overwrite an existing file located there with the same name.
We'd like to do all of this through a batch file so I'm wondering if there is a way to run a batch file as another user, if that makes sense. Is there some way to run a script as a domain admin, even if you are a regular user? Perhaps calling another script and having a runas command in there or something?
Let me know what you think. Thanks. Oh yeah, and let's try and stick with simple batch files...