How do you enumerate domain users mapped drives????

I'm migrating file shares from Windows 2003 file cluster to a Windows 2012 R2 DFS shares. Unfortunately, users that are mapped to those shares off the file cluster are not being mapped via GPO or logon script. I discovered that users have manual static mappings
that reconnect at logon. This, of course, makes it difficult to notify users or update network mappings. The answer? To see who mapping to those shares. Yes, I've looked at Open Files from Computer Management but I also need to double check this against a
script that can enumerate domain users mapped drives. 
I've tried the following and it returns nothing:
"GET-WMIOBJECT -CLASS WIN32_MAPPEDLOGICALDISK -COMPUTERNAME "NAME" | SELECT NAME, PROVIDERNAME"
Any know of powershell script that would work??? Thanks!

here are two similar questions, the responses to which might be of help:
http://social.technet.microsoft.com/forums/windowsserver/en-US/46881e57-62a4-446e-af2d-cd2423e7837f/report-on-remote-users-mapped-drives
http://social.technet.microsoft.com/Forums/en-US/56ba81a4-3836-48f9-ae7b-7e774c12655e/query-remote-xp-machine-for-list-of-mapped-network-drives-of-current-logged-on-user?forum=winserverpowershell
The long and the short of it is that it is not that easy to accomplish remotely. The simplest solution appears to be to run a script in the context of the logon session whose drive mappings you want.
Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

Similar Messages

  • Report on remote users mapped drives

    After a very thorough search, I can't find anyone else who has had this question answered.
    I have a need to on-the-fly report on the mapped drives and their letters of users on remote computers. Running "Get-WmiObject -Class Win32_MappedLogicalDisk | select Name, ProviderName" only returns my drives under my credentials, not the remote user. Looking
    at HKU:\sid\network apparently only reports persisent mapped drives or drives mapped by the customer and not drives mapped by logon script that are not persistent.
    There doesn't seem to be a way to do this on-the-fly which is dissapointing, so I'm hoping you'll have a trick up your sleeve!
    The only way I can figure to get the information, but not on the fly, is to have a logon script run as the user and grab the info and save it somewhere. I'm really hoping not to resort to that. All of that becomes historical info and won't reflect changes
    that happen after logon, so it's not going to always be a true reflection of reality.
    The key seems to be running a wmi query as someone else that you don't have credentials for. Is that possible? Or do you have another suggestion?
    Ian

    I believe this post may already be closed.  I, however, would like to add my findings:  When I run this against different pc's with different users logged on:  Get-WmiObject
    -Class Win32_MappedLogicalDisk -ComputerName <remote computer> | select Name, ProviderName
    (Keep in mind that I'm a local admin on my pc as well as the destination pc's
    as well.)
    1. The logged on user is non-admin on their pc.
    Mapped drives are not retrieved
    2. The logged on user is admin on their pc.
    Mapped drives are retrieved
    3. I'm logged on to the remote pc (local admin)
    Mapped drives are retrieved
    Conclusion:  As long as the target pc logged on user is local admin on that pc then the
    mapped network drives will be pulled by the previously mentioned command.  Otherwise, it will come back empty.
    A question posted previously was:  "I'm
    curious why you need to know mapped drives??" In my case, I am trying to back up mapped network drives for all domain users.  However, logon or logoff scripts are not
    an option.
    The real question should be: Why is the previously mentioned command not pulling the mapped network drives when the logged on user is not a local admin on the target pc?
    I believe the answer is that the drives are not mapped to the remote computer per se, but to the user's process on the remote computer. And while an admin on that computer has significant power over the hardware and operating system, it cannot take control
    of the process, which is locked by the user's credentials.
    Consider remote control. My regular account is logged onto another computer. I run mstsc to establish a remote control session on that remote system under the same credentials. The effect is to disconnect the other remote session and lock the system on its
    console, and for the new session to inherit the original process, seeing the same desktop with the same apps open.
    I then run mstsc to establish another remote control session, this time using an account that is an administrator on that system. It tells me my regular account is already logged on, and gives me two options, abort my new session, or log the user out. using
    my admin credentials, I cannot take over the user's session and see what applications he has open or what drives he may have mapped.
    Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

  • How  do you repair a user acct?

    How do you repair a user acct?
    I seem to have a corrupt admin user acct.
    I created another admin acct and the problem does not re-occur. I can open it by Command O and also clicking the finder.
    All other GUI mouse functions appear to be working properly. This problem also exhibits itself on a Jump drive if it is mounted.
    Additionally the "A" icon on the Applications folder mysteriously disappeared. It now displays just a plain folder.
    I am on a MBP running 10.6.8
    Thank you all in advance

    Everything else seems to be working fine.
    I opened terminal and something is puzzling
    it says:
    bryinc-g5:~ bgould$
    This seems to refer to an older mac I have in my office.
    It's not even on nor has it been for sometime.
    My MBP that I am experiencing this issue with was never on the network when the G5 was in use.
    The user name is what the G5 had but is not what this mac is using.
    Very weird
    I am not sure I understood what you meant by dragging the house Icon from the root folder also
    This is what I have so far
    Last login: Mon Oct  3 08:48:55 on console
    bryinc-g5:~ bgould$ ls -la
    total 40
    drwxr-xr-x+ 17 bgould  staff    578 Oct  3 08:48 .
    drwxr-xr-x   7 root    admin    238 Oct  1 17:59 ..
    -rw-------   1 bgould  staff      3 Sep  8 17:55 .CFUserTextEncoding
    -rw-r--r--@  1 bgould  staff  12292 Oct  2 21:56 .DS_Store
    drwx------   2 bgould  staff     68 Oct  3 08:48 .Trash
    -rw-------   1 bgould  staff    219 Oct  2 20:25 .bash_history
    drwx------   3 bgould  staff    102 Sep 11 12:39 .cups
    drwx------+  6 bgould  staff    204 Oct  2 22:17 Desktop
    drwx------+ 12 bgould  staff    408 Sep 26 12:02 Documents
    drwx------+ 15 bgould  staff    510 Sep 26 09:28 Downloads
    drwx------+ 38 bgould  staff   1292 Oct  2 21:13 Library
    drwx------+  4 bgould  staff    136 Sep 20 13:39 Movies
    drwx------+  4 bgould  staff    136 Sep 23 17:27 Music
    drwx------+  5 bgould  staff    170 Sep 10 12:30 Pictures
    drwxr-xr-x+  5 bgould  staff    170 Sep  8 17:55 Public
    drwxr-xr-x+  5 bgould  staff    170 Sep  8 17:55 Sites
    drwxr-xr-x   7 bgould  staff    238 Oct  1 17:58 untitled folder
    bryinc-g5:~ bgould$ /Users/bgould

  • On an IMAC, how do you block other users id showing up on your wifi settings?

    On an IMAC,
    how do you block other users id showing up on your wifi network?

    Can you clarify what you mean?
    If you're seeing multiple wifi networks as well as yours, that's normal. It will display any networks within range. It doesn't mean you're connected to them or that they're on your network.
    Matt

  • How do you add multiple users to an itunes account

    how do you add multiple users to an itunes account

    First :
    Using an iPhone without a wireless service plan
    Then restore the iPod to factory settings/new iPod on the computer your kids will use:
    iTunes: Restoring iOS software
    If you are using the same computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • HT201250 How do you add an external Hard drive to time machine and share on network?

    How do you add an external Hard drive to time capsule and share it on local network?
    Lee

    Ensure it's formatted as Mac OS Extended, FAT16, or FAT32, connect it to a self-powered hub, and plug it into the Time Capsule's USB port. If the drive is Ethernet and not USB, ignore everything else and just plug it in.
    (71787)

  • How do you tell the free hard drive space on macbook pro 10.6.8

    how do you tell the free hard drive space on macbook pro 10.6.8

    Open Activity Monitor and look at the drive space info
    see graphic here
    Why is my computer slow?

  • TA24960 How do you set a user photo from your photo library?

    How do you set a user photo from your photo library?

    What version of OS X are you running?

  • How can you change a user defined swatch

    How can you change a user defined swatch

    Double click on the swatch in the swatches palette.
    In most case you can do that , unless for example you have a placed image that has that color in a spot channel.

  • How do you create a user defined functions  UDF and passing a value like a ID to GEt a Value.

    How do you create a user defined functions UDF and passing a
    value like a ID to GEt a Value.
    using a query.
    are there example.
    Thanks

    tons of examples at cflib.org - good place to start, even
    though many
    udfs there are a bit outdated in their code...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • How do you setup mobile users

    I want my users to login on one among three laptops and find their files even when on travel.
    how do you setup mobile users?
    I could not find it in Server or workgroup manager.
    Mobile Setting in client is greyed out.
    Currently I am using dropbox but wanted to migrate to mobile users on the server.

    After I re-installed the server as per below, the problem was solved.
    TIPS: OS X server installation lessons learnt (for non Guru)

  • How to allow non domain users to map to print drivers?

    Greetings,
    We have a Windows Server 2008 (non R2) 32 bit server that acts as print server. It's also on a domain. Users who are on the domain can easily add the print driver simply by going to device and printers and clicking Add Printer and selecting Network since
    I list it in the AD.
    The problem arise with well over 100 realtors that walk in and out and need to print. These users are not on the domain. They need to have the print drivers on their computers. I'm hoping we can at least get them to map to the drivers as opposed to unending
    local installs.
    The management does not want to hear about security, and wants the simplest possible way for their realtors to get up and printing from their computers when they arrive to the office.
    Any advice is welcomed.
    Thank you!

    In the end they got a domain user account that they share to add printers...
    Thanks for sharing in the forum. Your time and efforts are highly appreciated.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How do you move a user account to a different drive?

    I recently bought a Mac Pro and installed a second hard drive. The plan is to have the boot drive contain the Opperating system and priogram files and have all user accounts and documents on the second drive.
    How do I move my user account (which is currently on the boot drive) to my secondary drive?

    This used to be done using NetInfo Manager, but that's not part of Leopard. I assume you're running Leopard since you've just bought the Mac Pro.
    In Leopard, location of home directory is controlled by System Preferences -> Accounts. Select the user in the list and control-click to bring up "Advanced Options..."
    Choose the directory on your second drive which corresponds to the one in "Users" that you copied. Don't change any of the other things.
    By the way, it's always a good idea to have an extra admin account with home directory on the boot drive. That way, if something goes wrong with your second drive, you can still log in. As the admin, you can correct problems with your "primary" or "main" account.

  • How to add an image from mapped drives?

    Hi all,
    Currently I've a BSP service running some picture are stored within the service directory (using import MIME) in the WEBAS like ...
    http://webhost/sap/bc/bsp/sap/zris/GFX/logo.gif
    but now how can I display in the same service pictures taken from a mapped drive ? (ie: l:\pictures\logo.gif) without importing them into the WEBAS service?
    Is there a possibility to create a virtual directory in the service mapped to the l:\pictures or something like that?
    Thanks in advance
    Best Regards
    Erik

    Hi all thanks for your answers,
    <img src="file://c/images/pictureOfTheDay.JPG">
    that's what I was using during my test, but the thing is that it need to have the drive mapped locally on the computer running the browser. Now I just want to map those drives on the WAS.
    about installing apache on the file server, well I'm in a big corporate ... so you know ... security, policies, dmz etc.. etc...
    I will check out the parameter.
    Cheers
    Erik

  • How do you assign a user or group FULL access to all Exchange 2013 DAG mailbox databases?

    How do you assign a group or user FULL mailbox access rights to ALL mailboxes in the Organization or DAG mailbox databases?
    Commands I've tried with no avail:
    get-mailboxdatabase -server “exch01″ | add-adpermission -user “domain admins” -AccessRights GenericAll
    get-mailboxdatabase -identity "DAG database" | add-adpermission -user "user" -accessrights FullAccess
    Please let me know if you can help! Thanks.

    Get-Mailbox | Add-MailboxPermission -Identity UserMailbox -User "Domain\Group" -AccessRights FullAccess - worked for me! Thanks again!

Maybe you are looking for

  • Core dump in malloc

    I get a core dump while making a call to malloc. Owing to waht reasons can malloc give a coredump?

  • HP Photo Creations - Save as image file

    I've just spent the best part of 3 hours creating two photo collages in this application and cannot for the life of me see how I save the project as an image file. The only option I have found is to save it as a 'project'. Please tell me I haven't wa

  • KODO JDO Exception - kodo.util.FatalDataStoreException

    Using <b>Kodo Version - 3.3.4</b>, getting following exception when we try to <b>COMMIT</b>. Please let us know the reason for this kind of exception. java.lang.NullPointerException> kodo.util.FatalDataStoreException: java.lang.NullPointerException a

  • Checkbox in midp

    does anyone know how I can implement a checkbox in midp? Is there anything tht I can do to simulate a check box or radio button in midp? I would appreciate any comments :) cheers cleoppatra

  • Nokia 3125: contact list disappears suddenly

    in my nokia 3125 contact list disappeared suddenly and now it saves just one contact. pls help