Windows network drive mounting

Certain aspects of Chef require me to run a recipe as a windows admin. However, mounting a network drive using admin privileges makes the drive invisible to the user in file explorer. I want the drive visible but I do not know how to do this with chef. Any ideas?

It’s not just that running as admin makes the drive letter invisible - drive letters are also invisible from one user to the other.

You could run a second per-user chef client, but your best bet may be to use the admin instance of Chef to create a login script that contains the “NET USE” command to mount the drive letter. I believe you can also push drive letter mounting through group policies.

Kevin Keane
Whom the IT Pros Call
The NetTech
http://www.4nettech.com
Our values: Privacy, Liberty, Justice
See https://www.4nettech.com/corp/the-nettech-values.html

Thanks for the reply! Do you know if it is possible to run a script at startup and have the drive mounted without logging in? That is my goal, to run chef at startup. And have the drive mounted without needing to login.