Forum Discussion

ondeso666's avatar
ondeso666
Copper Contributor
Dec 23, 2021

net 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 /GL...
  • Harm_Veenstra's avatar
    Harm_Veenstra
    Dec 29, 2021
    C:\WINDOWS\system32>net use x: \\localhost\admin$ /global
    The command completed successfully.


    C:\WINDOWS\system32>net use x: /global /delete
    x: was deleted successfully.

    That does work?

Resources