Using C# WMI I start an exe on another computer and this exe starts another exe using the C# Process class. The last exe tries to call Directory.CreateDirectory using a network path (aka \\comp1\d$\dir). Directory.CreateDirectory throws this exception:
Access to the path '\\\\blah\blah\blah' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
If I run the third exe directly in a console on the computer it exists on this exception isn't throw and everything works fine.
The security settings for the folder where the directory is being created has "Everyone" given full permissions.
Help!