Mapping a drive in the manner you show only works while the user who made the mapping stays logged in. If an application running under a service identity needs to access that file share, things can be more complicated. It would be of benefit to show that common scenario.