Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Im using python on linux and trying to execute an exe on a remote window 2008/2012/2016 server.
But from my linux server via the python command, Im unable to use dfsutil.exe or dfscmd.exe to create DFS namespace links. I get error: Received exception from remote PAExec service: Failed to start "dfsutil.exe". The system cannot find the file specified. [Err=0x2, 2]
Those files are in C:\windows\system32, just like cmd.exe and cmd.exe works. Evironment variables are proper, I tried copying dfsutil.exe and dfscmd.exe to another directory and set the "working_dir" accordingly but it still does not work.
Permission on those two files are the same as cmd.exe. When I try "cmd.exe /c dir ., that returns file list excluding dfsutil.exe or dfscmd.exe, which is very strange? I also tried with full path to those exe, tried puttting command in a batch file and get the same result, Please advise?
There is an outstanding problem I need to fix where the psexec process is running as a 32-bit process on all systems. This means that
I’m leaving this open to track the progress on. Changing the process architecture to match the host OS in a future release.