network storage
1 Topicnet use in system context and global SMB mount option cannot be removed
Hi folks, I am using the current psexec.exe on my Windows Server 2022 to run Powershell in system context. Then I mount a drive like this: net use X: \\192.168.2.2\X /USER:user password /GLOBAL The mapping works fine and the share is accessable from user context. But removing the mapping with net use is not possible anymore: net use X: /delete I will receive the following error message: The network connection could not be found. More help is available by typing NET HELPMSG 2250. To remove I have to call the Powershell function: Remove-SmbGlobalMapping X: \\192.168.2.2\X It seems that there is lack of functionality of net use?Solved13KViews0likes8Comments