Sysprep: Does it remove Windows Credentials from an user account?

I was using this method so I can create an image that already has a mounted network drive. What I found out was that my automated process (Packer), even if it was running under the same account, does not share the script session's credential and the user session credential.

Mounting a network share via a script (regardless if it is running on the same account) and expecting the share to be mounted in user sessions/applications will not work. The credential is not shared between the two.

What I did was I had my script create a batch file that mounts the network share as soon as my service runs, I know my service will be running on the session as the authenticated session, so I can just call my batch file and mount the network share from my service and my service should be able to access the network share.

It's interesting to note that if my service is authenticated as my account and it mounts the network share, I would be able to RDP and access the network share without providing credentials, which indicates that the application session is shared between an user interactive session.