I require an automatic process to mount a network drive for a specific user on a Windows 10 computer after the system has started up. The user has running services that need access to the network drive.

I need to accomplish this without the need for manual input of credentials, and the drive must be mounted during bootup, not just login.

I have attempted to mount the drive using a method that is similar but not exactly what I need:

net use h: https://server.example.com/storage /savecred /persistent:yes

The network drive is mounted successfully by requesting the user’s login credentials and providing an option to save them for future use. However, upon restarting the system and logging in again, the drive appears as a listed resource but is not mounted.

Additionally, I am prompted to provide the password, which suggests that the /savecred option is not functioning as intended.

Askify Moderator Edited question May 2, 2023