I'm calling WNetAddConnection2
during the login process for a 2008R2 box. The action happens right after userinit is run. I'm receiving a 1222 error or Network Not Available
. Right after doing this I'm also connecting a couple printers using the AddPrinterConnection
function. Both the printers and the network drives are on the same remote machine.
Why do the printer connections work but the network drive connections fail?