I am currently using the ‘wmic netuse’ to get the smb mappings of a machine. However, the command only returns the mappings for the current user. If I run my script as an administrator it returns nothing.
Is there a way to either:
- Run the command in a way that will allow me to see the mappings created by any/all users. OR
- Get a list of users, and run the individual command repeatedly as each user.
Additional Note: It is prefered that this is Powershell V2.0 compatible. Hence why I am using wmic instead of an SMB-related cmdlet.