PSEXEC and Scripts
Posted on 2010-09-23
I have a windows server 2008 R2 machine that is in a workgroup. I'm trying to run a vbscript I wrote and it keeps telling me it can't find the file. I copied the file over earlier when connected to the file share. I have enabled winrm on the machine and all firewall rules. I also tried using psxec -c "filename" to copy the file over again and try running, same result. I run psexec \\server-name -u user -p password cmd.exe, that works, I then say run the file and it runs it. I have a fair number of machines and would like to just run the scripts from the command line with one psexec command not from an interactive command prompt, but it never sees the file (i've checked the name of the file and path ad nauseum, just doesn't find it). Any one have ideas?