6/16/2023 0 Comments Mapped drives registry![]() Besides other things, drive mappings are not shared between “Admin” and “User” contexts. With other words: the drive mapping is run in the “Admin” context.ĭue to security reasons, the two contexts do not share all available information. In our case, the application is “ net use”. Windows 7 Lusrmgr.exe – (Use the Modern-UI in Windows 8.x to run it) The easiest way to do that is typing in “ lusrmgr.msc” into the Start menu: You can view all members of the local administrator group by starting “Local User Manager”. View members of local administrator group Here the application (here: the command line cmd.exe) has been started in the privileged context.Īnother specialty is that login scripts are always run in the “admin“ context in case the user is member of the local administrator group. As soon as he or she wants to use his or her administrative privileges, the system prompts him or her to confirm it: Most of the time, the user works in the standard context. ![]() When a user who is a local administrator logs in to his or her PC, two contexts are created: Since Windows Vista, Microsoft offers the User Account Control (UAC). Note: It is generally not recommended to make your users local admins.īackground: standard and privileged context After a quick analysis I realized that these users were in the local administrator group on their PCs. Usually this is not a problem, but in my case the script seemed not to work for some users. Without the parameter “/persistent:no” the connection would be there even without network connection / login script after the next login.įor this reason, it is common practice to set “/persistent:no” for drive connections. In case the user logs off and then in again without a network connection (or without the login script), the drive is no longer connected. The validation will be lost after the user logs off. Please pay attention to the parameter “ /persistent:no”: it validates connections only during one session. This command causes a connection to the share „share“ and the subfolder „folder“ on the server „server“ with the drive letter „X:“. Net-use X: \\server\share\folder /persistent:no
0 Comments
Leave a Reply. |