WebDav Cannot Find Network Path, and Error 67 Network Name Not Available

Nextcloud version 11.0.0
Operating system and version Debian 8
Apache or nginx version Apache 2.4.10
PHP version 5.6.29-0+deb8u1
Is this the first time you’ve seen this error and can you replicate it?: It happens often on installs.

The issue you are facing:

The output of your Nextcloud log in Admin > Logging: http://pastebin.com/r0SNXdmJ

So even after applying the needed registry edits to get nextcloud to work with webdav on Windows we are still facing issues on our network after running this command to mount the webdav. Some boxes work, some give this error until we execute the command repeatedly and reboot several times. -

net use S: \https:\cloud.prosperityerp.com\remote.php\webdav\ /USER:%username% * /PERSISTENT:YES
Type the password for \https:\cloud.prosperityerp.com\remote.php\webdav:
System error 67 has occurred.

The network name cannot be found.

Also after coming back overnight and trying to reconnect to the webdav drive I get the error ‘An error occured while reconnecting to S: to \https:\cloud.prosperityerp.com\remote.php\webdav\ Web Client Network: The network path was not found. The connection has not been restored.’

Please see the screenshot here - http://prnt.sc/dtuiyq

Here is the output of the config.php file (I removed sensitive information).
$CONFIG = array (
‘instanceid’ => ‘ocfct9rmlx5l’,
‘passwordsalt’ => ‘’,
‘secret’ => ‘’,
‘trusted_domains’ =>
array (
0 => ‘’,
1 => ‘cloud.prosperityerp.com’,
‘datadirectory’ => ‘/var/www/data’,
‘overwrite.cli.url’ => ‘’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘nextcloud’,
‘dbpassword’ => ‘’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,
‘ldapIgnoreNamingRules’ => false,
‘ldapProviderFactory’ => ‘\OCA\User_LDAP\LDAPProviderFactory’,
‘integrity.check.disabled’ => true,
‘maintenance’ => false,

The output of your Apache/nginx/system log in /var/log/____:
cat /var/log/apache2/error.log
[Tue Jan 10 06:25:02.102985 2017] [ssl:warn] [pid 27130] AH01906: server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jan 10 06:25:02.103013 2017] [ssl:warn] [pid 27130] AH01909: server certificate does NOT include an ID which matches the server name
[Tue Jan 10 06:25:02.103139 2017] [mpm_prefork:notice] [pid 27130] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured – resuming normal operations
[Tue Jan 10 06:25:02.103146 2017] [core:notice] [pid 27130] AH00094: Command line: ‘/usr/sbin/apache2’
[Tue Jan 10 08:10:44.318472 2017] [:error] [pid 28559] [client] PHP Fatal error: Allowed memory size of 419430400 bytes exhausted (tried to allocate 72 bytes) in /var/www/apps/ownbackup/service/backupservice.php on line 96