Map Network drive in Windows 8.1

Hi Guys,
I was suffering a weird problem about mapping network drive in Windows 8.1.
I ran the command "net use ...." to map a network drive and the command was running successfully. Then I used the "net use" command to check the status for the network drive mapped before, it showed good. But when I opened "my computer",
I couldn't see the network drive mapped before in the explorer.

Hi,
After you created the mapped network drive with "net use", are you able to find the mapped driver letter information in the registry HKCU\Network?
Please also try to map the network drive via GUI tool under Explorer "Map network drive" option, check the result.
for net use command, please make sure that you've set the correct parameters
https://technet.microsoft.com/en-us/library/gg651155.aspx
Yolanda Zhu
TechNet Community Support

Similar Messages

  • Location is not available to mapped network drive in Windows 8 using Synology NAS

    Original Thread:
    http://answers.microsoft.com/en-us/windows/forum/windows8_1-files/location-is-not-available-to-mapped-network-drive/ca7eac5c-0e3d-494b-b488-e245978e4db9
    I have recently upgraded to Windows 8.1 standard edition. I have come across a problem when using the option for mapped network drives. Under Windows 7 I would normally map a network drive (Synology NAS) and I could access all files, copy and paste, install
    apps, and link media, all from within the mapped network drive. However, under Windows 8.1 I have come across a couple of problems.
    1. When I try to copy a file from my "Mapped Network Drive" to the C:\Drive (OS Boot Drive), I get the following error,
    "E:\ is unavailable. If the location is on this PC, make sure the device or drive is connected or the disc is inserted, and then try again. if the location is on a network, make sure you're connected to the network or internet, and then try again. If the
    location still can't be found, it might have been moved or deleted."
    However, if I copy a file from the "NETWORK/Network Location" the file copies just fine with no problems. And, If I also copy a file from a "Added Network Location" the file also copies just fine with no problems. And, if I copy a file from
    my "Mapped Network Drive" to my D:\Drive (non OS Drive), the file copies just fine with no problems.
    2. When I try to install apps from my "Mapped Network Drive" they will sometimes install and sometimes not (I am also choosing the option to run the programs as Administrator). Again if I try to install using either the "NETWORK/Network Location"
    or an "Added Network Location" the apps install just fine with no problems.
    3. When I link media (music or videos) from my "Mapped Network Drive" they will work but once I reboot they no longer work as if they have lost the file path or link of the original source location.
    4. When I use FireFox (browser) and I set my default download dir to my "Mapped Network Drive" it will work once originally set it but after I reboot, it no longer works. However, again if I set the default download dir to either the "NETWORK/Network
    Location" or an "Added Network Location" the default download dir works fine even after reboot.
    While I am able to access my network drive using any of the three options, "Mapped Network Drive", "NETWORK/Network Location", and "Added Network Location" but only "NETWORK/Network Location", and "Added Network
    Location"appear to be reliable. Tbh I would prefer to be able to use my "Mapped Network Drive" in Windows 8 as I have been able to under Windows 7.
    More info:
    I currently have UAC set to "Never Notify".
    I also have Windows 8.1 installed on three different systems and all of them give me the same exact problems. One of the systems is a completely clean install with no 3rd party apps installed.
    Just so its clear I am able to access the "Mapped Network Drive" but unfortunately this method of access appears to be unreliable in Windows 8 but in Windows 7 it works flawlessly.
    If I map a network drive from another pc running windows 7 or 8, I can access and use the mapped drive with no problems. This problem appears to be related to the Synology NAS devices and I have researched the Synology forums but only found one thread about
    the problem, here:
    http://forum.synology.com/enu/viewtopic.php?f=49&t=76687
    I have searched several forums and attempted to pick the brains of my local computer shops for any incite on this problem but I have been unable to find a solution/fix.
    Any help resolving this is greatly appreciated.

    Hi,
    Based on your description, we can temporarily disable the firewall to see whether the issue persists.
    For this issue seems related to the Synology NAS devices, in order to get professional help regarding the product, we can contact the vendor support to see whether the issue
    can be fixed.
    Best regards,
    Frank Shen

  • Trouble synching mapped network drive in Windows 8

    Hello
    I have recently bought a Sony Vaio Pro13 with Windows 8. I have also just upgraded to Windows 8.1. I have another laptop running windows 7 to which I have mapped the network drive at my place of work. On the W7 computer, files are available offline and I can
    synchronize them without any problem using the VPN.
    I mapped the network drive to my new laptop running windows 8 but only about half of the offline files were made available offline and it was not possible to synchronize. I then started again, by deleting the mapped drive, deleting the offline files in the
    CSC folder, moved the folder elsewhere and increased the space available for offline files. I then successfully mapped the drive and copies of all offline files were available on the laptop (after about 2 hours of synchronizing!).
    However, I have not been able to synchronize the files since. The VPN works for other things (e.g. subscription websites which need a VPN connection) but the network drive is showing as either offline, or when I try to synchronize, the process begins and then
    I get a 'failed' message (currently 'the username or password is incorrect'). This can't be the case, or I wouldn't be on the VPN or accessing emails via Outlook - and in any case, it worked once with exactly the same credentials. I double checked in the windows
    credentials as well. The sync centre also says that the drive is 'offline (background sync)'.
    My IT administrators do not have any suggestions apart from removing 8 and installing 7 because they do not currently support Windows 8...
    Do you have any suggestions as to why the VPN works, the files have been made available offline, but the networked drive will now not sync?
    Thank you
    Liz

    Hi,
    It appeared to be network issue, please try to update you NIC driver and then change power option of network adapter:
    Open Network and Sharing Center.
    Click the Change adapter settings link in the upper left of the navigation pane.
    Right click the network connection you want to enable/disable power management support on and click Properties .
    Click Configure .
    On the Power Management tab, clear the Allow the computer to turn off this device to save power check box.
    After these steps, turn off Firewall and please restart computer and check the issue again.
    If it doesn’t work, please upload the screenshot of error message and event log here for further research.
    Hope these could be helpful.
    Regards,
    Kate Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Map network drive from windows 98 to server 2008 R2

    Guys I have some old Windows 98 systems these 98 systems are attached to pieces of equipment on the warehouse floor. So with that said there is no way to upgrade them. I would like to map a network drive from these 98 systems to a 2008 R2 file server.
    I have played around with LM compatibility mode but I'm not having much luck. Still when I try to access a share on a 2008 R2 box I'm being asked to entire a password. On the old 2003 server all I had to do was create a local account with the same username
    and password on the 2003 server. So if anyone's done this I would be curious in knowing more. BTW the member server I'm trying to connect to is in a domain and the 98 box is in a workgroup.

    Hi,
    As Windows 98 is such an old system, I may make mistake on suggestions I provided so please just have a try. 
    For old client system like Windows XP, in a workgroup environment we have 2 mentions to share folders.
    1. As you said, create local account with same password on each computers so they can access each other with that account.
    2. Share folders to Everyone (including Guest) and enable Guest account on computers which going to access. 
    You can try to enable Guest account and set a same password on each computer as a test.
    Also in Windows XP we need to modify "Simple File Sharing" option. I cannot confirm if it exists on Windows 98 system but if it does, enable it when trying suggestion 2 and disable it when trying suggestion 1. 
    http://support.microsoft.com/kb/304040/en-us
    If you have any feedback on our support, please send to [email protected]

  • UTL_FILE - Write to a file on a mapped network drive

    Hello,
    I am trying to get the UTL_FILE package to write a file to a mapped network drive on
    Windows NT. We have the following definition in the init<SID>.ora file pointing to the
    network drive:
    UTL_FILE_DIR=v:\hawkrpt
    Here is the code to write to the file:
    CREATE OR REPLACE PACKAGE pkgUtlFileTest AS -- package spec
    PROCEDURE isp_UtlFileTest ( vcDir IN VARCHAR2,
    vcFileName IN VARCHAR2,
    vcOpenType IN VARCHAR2,
    vcMessage1 IN VARCHAR2 );
    END pkgUtlFileTest;
    CREATE OR REPLACE PACKAGE BODY pkgUtlFileTest AS -- package body
    PROCEDURE isp_UtlFileTest ( vcDir IN VARCHAR2,
    vcFileName IN VARCHAR2,
    vcOpenType IN VARCHAR2,
    vcMessage1 IN VARCHAR2 ) IS
    -- vcDir is the utl file directory
    -- vcOpenTpye is the open type a = append, w = write or r = read
    -- vcFileName is any file name you want.
    -- vcmessage is the entry you want placed into the file
    vcUtlFile UTL_FILE.FILE_TYPE;
    BEGIN
    IF LOWER(vcOpenType) = 'a' OR LOWER(vcOpenType) = 'w' THEN
    vcUtlFile := UTL_FILE.FOPEN(vcDir, vcFileName, vcOpenType);
    UTL_FILE.PUT_LINE(vcUtlFile, vcMessage1);
    UTL_FILE.FCLOSE(vcUtlFile);
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.PUT_LINE('no_data_found');
    UTL_FILE.FCLOSE_ALL ();
    WHEN UTL_FILE.INVALID_PATH THEN
    DBMS_OUTPUT.PUT_LINE('UTL_FILE.INVALID_PATH');
    UTL_FILE.FCLOSE_ALL ();
    WHEN UTL_FILE.READ_ERROR THEN
    DBMS_OUTPUT.PUT_LINE(' UTL_FILE.READ_ERROR');
    UTL_FILE.FCLOSE_ALL ();
    WHEN UTL_FILE.WRITE_ERROR THEN
    DBMS_OUTPUT.PUT_LINE('UTL_FILE.WRITE_ERROR');
    UTL_FILE.FCLOSE_ALL ();
    WHEN UTL_FILE.INVALID_OPERATION THEN
    DBMS_OUTPUT.PUT_LINE('UTL_FILE.INVALID_OPERATION');
    UTL_FILE.FCLOSE_ALL ();
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('OTHER ERROR' );
    UTL_FILE.FCLOSE_ALL ();
    END isp_UtlFileTest;
    END pkgUtlFileTest;
    Here is the code to execute the stored procedure:
    Begin
    pkgUtlFileTest.ISP_UTLFILETEST('v:\hawkrpt','test.txt','w','This is a test');
    End;
    When the stored procedure is executed, the following error is returned:
    UTL_FILE.INVALID_OPERATION
    Can someone tell me how to get the UTL_FILE package to write a file to a network drive
    on a Windows NT server?
    Your help will be greatly appreciated!
    Mike

    Did you restart the database after changing the init.ora parameter? Make sure that you have this new value in v$parameter view.

  • I can not map a network drive in window 8.1 under VPN

    Dear sir / madam,
    I face a big problem. My company use VPN Connection. After my company upgrade the window from Window 7 to Window8.1 , we find that we can not reconnect the network drive. please find the details below:
    1. I success to map drive and then logout / switch user.
    2. wait two /three hours
    3. i find the drive  is disconnected.
    4. when I try to reconnect, window can not find again. then I try to use netstat
    C:\Windows\system32>netstat
      TCP    172.28.97.31:58206     test-server:http       TIME_WAIT
    Then, i try to use cmd , net use /delete and then try to reconnect  test-server
    5 it show reconnect successful by net use command. However , I need waste many time  and I can not find the drive in window.
    if I restart window, i can reconnect it quickly and find the drive in window.
    the server are window server 2008 r2 and server 2012, they located at difference site.
    if the server and PC located at same site, it is no problem.
    both the server and PC are joined in same domain.
    it is dell server and Lenovo M82 PC( Intel Lan 82579LM/V Driver)
    please help me to solve the problem
    (window 7 also have this problem. However, i can click the drive and it can reconnect quictly.i cannot do this in window 8.1.......it loop again)
    thanks

    Hi,
    How did you map the network drive? Manually via GUI? Command? GPP? If you're using one of the above solutions, then try other solutions as a alternative way to check the result.
    According to your description, If Windows remains unable to reconnect mapped Network Drive at login, then I would suggest you created a batch file with net use command, use it as an logon script, this provides an alternate way to reconnect drives on
    a re-logon.
    example
    @echo off
    net use * /delete /yes
    net use x: \\server_name\shared_directory_name
    You can find detailed information in the following link
    https://helpdesk.egnyte.com/hc/en-us/articles/201638304-Mapping-a-drive-using-a-net-use-command-and-logon-scripts-for-domain-users
    http://technet.microsoft.com/en-us/library/bb490717.aspx
    NOTE
    This
    response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft
    does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • I can't map a network drive from Windows 7, using the exact same settings that work fine with Vista or XP

    I have Windows 7  64 bit Home Premium,and I can't map a network drive.  I use a Cisco VPN client to connect to my University network, and then when I go to map the drive I get a message that it can't be found.  I have done web research it seems that I am unable to edit the local security settings (apparently you can do this in Ultimate and Professional versions), and that this may be the culprit.  Does Microsoft make some patch available?  My IT people, and the tech help at HP are baffled by this.  If Windows 7 Home Premium does not allow for mapping of network drives, then I'm dumping it and returning to Vista.  Has anybody had similar problems?

    Day 2 of trying to map a drive in Windows 7 Professional:
    My journey to ____..
    Begins:
    I purchased Windows 7 Home 3xuser license pack for ~140 US I kep hearing friend sayhow much faster it was than Vista 32bit so I thought hey let’s “upgrade”
    .. I looked up the definition of the word “upgrade” the following is what I found:
    1.
    To exchange a possession for one of greater value or quality; trade up.
    2.
    Computer Science
    To replace software or hardware with an upgrade.
    3.
    Computer Science
    a.
    To replace (a software program) with a more recently released, enhanced version.
    b.
    To replace (a hardware device) with one that provides better performance.
    So we,re all clear on what an upgrade is suppose to be. I wanted tomake sure I understood before I proceeded.
    I installed a copy on my latptop Toshiba Centrino 1.83 Ghz/3 G Ram decent computer for all intent and purposes. It’s been working fine
    on Vista but running slow. So I went through MS “requirements checking” to determine if my computer passed the MS test and worth of such the honor and also get MS’s blessing before I moved forward with the “upgrade”.
    I proceeded with the upgrade went relatively smoothly had to uninstall a few programs but I figure that’s such a 
    small price to pay for such great enhancement that I will receive from my “upgrade”. Approximately 4 to 5 hours later after minimal reboots I was all set to go with my new upgraded OS. It was working as prescribed faster than Vista cleaner
    interface sorta, helpful little taskbar gadgets. I was stoked that night I went to be thinking I will go to work and be a rock star on my brand newly “upgraded” computer.
    Oh and by the way, I was so thrilled about Windows 7 I even upgrade my home computer as well.
    I go into work and I have a very big user migration that night, I am an network engineer and I use my laptop for work I use Visio, Wireshark
    and others, all the tools that help us do our job efficiently and effectively.
    I sit down turn on my computer it boots faster than Vista and I’m just chomping at the bit to get going have lots of work to do. So let
    go back for a minute an look at the definition of “upgrade”
    “3.
    Computer Science
    a.
    To replace (a software program) with a more recently released,
    enhanced version.
    b.
    To replace (a hardware device) with one that provides
    better performance.”
    So were good on what upgrade is?
    I have my computer up I have logged in (locally) not on a domain as I was not when I was on Vista OS. I wanted to attach the server to get some
    files so I go to map a drive………………. Hmmmph ….. that’s weird I cannot map a drive …… let’s try this again……… hmmmph…. what this domain thing going here I
    never need that before in the lesser product Vista but ok I’ll add my
    \\servername\folder and my domain.org\username..... hit enter and hmmmmmph …. It ask me for my password again.. well I could have fat gingered it so I’ll type it in reallllllllly slow.. hmmmmmmph ….. again no such luck…
    So I decide consult a colleague of mine who recommended I “upgrade” to Windows 7. After speaking with me he tells me oh! You need
    Windows 7 Professional to do the same things you did in Vista home … I’m perplexed by this but let’s once more take a look at the word “upgrade” to “enhance
    and/or make better
    ”. So now I’m a little perturbed by this little bit of information but I suck it up and decide I’ll drop another ~100.00 US on an “upgrade” to Professional small price to pay for such a great product.. I mean have
    you seen those commercial WOW!
    I make my purchase download and once “upgrade” to new “upgrade” with even more improvement over Vista and XP I mean
    with those two OS’s it took me all of 5 second to map a drive SURELY Windows 7 Professional will map a drive like no one business.
    After 
    few reboots my computer has been fully “upgraded” and ‘upgrade” again to W7 Pro and I’m off to the races ready to get to work cause my migration will be starting in a few hours and I want to be prepared. Sytsem reboots quickly
    I’m logged and ready to start getting my information I so desperately need. I go to map my drive I figure I’ll help W7Pro out I’ll be proactive and use “domain.org\username” that way W7Pro 
    will like me and think oh! this man is brilliant. I hit enter with my correct password that I type realllllly slow. …… waited it’s thinking for sure this is it .. the anticipation is killing me the excitement is overwhelming …….
    THUD my world just came crashing down ..no luck .. no login ..no mapping drives…I’m now on hour 6 of this ridiculous journey to the “upgrade” to “upgrade” ____. So now I’m left to forum because MS surely does not
    think I am going to pay them $275.00 and hour for support on something that should have work right out of the box.
    So I’m on day to I have tried everything on this forum page to get my mapped drive to work with nothing working for me. It appears that
    if I want to use my computer I will have to rolled back to the lesser (Vista).
    Just in case you’re wondering how I made it through the user migration. I had my co-worker bring me my XP computer worked like it’s
    was suppose to.

  • Windows Server R2 stop working. Cannot map network drive with my Win 7 client.

    Hi to everyone.
    I had a problem for quite some time time and even i tried to solved it till now unfortunately seems unreachable.
    I have a 2008 R2 server which is used as SQL 2005 server. My application program shared from the server. My win 7 client  use a map network drive to access my share folder from my windows server. Suddenly my clients lost my connection. Since then i
    cannot connect to the folder and i got the message
    Windows cannot access \\Server\Storage
    Check the spelling of the name. Otherwise there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
    Details: Error code: 0x80070035 The network path was not found.
    I check out my share permissions, all seems ok. I also check out firewall, services, TCP/IP, share folders, really almost everything but still nothing.
    Does anyone have any idea how to resolve the problem.

    Yes what seems to happened is due to virus infections.
    This problem started 2 weeks a go. First i had network connection error with my client. Them my application had respond errors. Finally i lost my network drive.
    I realize that the problem was due to virus. My old antivirus program doesn't s scan any threats so i uninstalled it, and i installed Panta antivirus and i clean up my server and my clients from virus. I am sure that both are clean from virus. My antivirus
    program runs every day with no traces of infections.
    Since then i cannot see my share folders on my server side and i cannot map network drive.
    One thing that i want to avoid is re-installation of windows server 2008 R2.
    Can anyone help about this
    Thanks

  • Windows explorer keeps computing items after accessing a mapped network drive

    Our organization has decided to upgrade to windows 7 but we are running into a problem with windows explorer green progress bar hanging after accessing a mapped network drive. When you try to go back to computer or access the control panel after going
    3 or more folders deep into the mapped drive, windows explorer just keeps searching.
    When you expand the arrow in the address bar it states that it is computing items and never stops.
    The only way around this is to right click on libraries and select reset back to defaults and everything is back to normal.
    We are deploying this image of windows 7 to over a 1000 computers and we cannot have this problem lingering, does anyone have a solution to resolve this issue. This does not happen in Windows XP.
    We have tried to turn off windows search and remote differential compression and this does work but the problem is that you lose all search capabilities in windows. So windows search needs to be enabled. We also tried to adjust the MTU, change GP settings,
    and nothing seems to work except to turn windows search off or reset libraries back to default.
    We also did some research online and there are so many people experiencing the same problem, with no resolution expect they have to go back to Windows XP. That is not an option for us.
    Please help us we would really greatly appreciate it.

    Hi,
    The issue could be related to searching and indexing feature in Windows 7. I suggest rebuilding the indexing files.
    Click Start -> Type
    indexing options in the search box -> Advanced -> Index Settings tab-> Rebuild buttion.
    For more information, you can refer to:
    http://windows.microsoft.com/en-us/windows7/Change-advanced-indexing-options
    If the issue persists, you can perform the following troubleshooting steps.
    1. Go to update your network adapter drivers and BIOS from manufacture's site manually.
    2. If any router is involved, please update the firmware.
    3. Perform a System File Checker.
    http://support.microsoft.com/kb/929833
    Best Regards,
    Niki
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Can't map network drive (1204) The specified network provider name is invalid, Windows 8.1 Webdrive 10.2

    I have just 'upgraded' from windows 8 to 8.1.
    I use Webdrive 10.2 to map a drive to a secure ftp server.
    Worked fine in Windows 8, does not work now I have upgraded.
    When I try to initiate the connection from Webdrive I get a really helpful message...
    "Can't map network drive (1204) The specified network provider name is invalid"
    I cannot see where I can downgrade back to Windows 8 from 8.1.
    Any solutions anyone?
    Thanks.

    Thanks for your efforts.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Enable Recycle Bin on mapped network drives

    A few years ago I discovered how redirected user profile folders in Windows get Recycle Bin protection, even when the folders are redirected to a network location. This was a huge find for me, and I used this feature to add Recycle Bin coverage to some of
    my mapped network drives. I shared this information on another forum here:
    http://forums.mydigitallife.info/threads/16974-Tip-Network-Recycle-bin
    Today I figured out a better way to achieve the same goal that doesn't rely on user profile folder redirection, and am sharing that information for other users to try out. You might want to take a look at these forum topics for additional information:
    http://technet.microsoft.com/en-us/library/cc787939(v=ws.10).aspx
    http://blogs.technet.com/b/askds/archive/2012/07/16/managing-the-recycle-bin-with-redirected-folders-with-vista-or-windows-7.aspx
    http://msdn.microsoft.com/en-us/library/bb882665.aspx
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/10bfcfb9-14f3-434e-9ffa-0289b8b32e01/folder-redirection-recycle-bin
    The standard disclaimer applies - this might break stuff. I've only tested in Windows 8, and my testing is limited. Try this at your own risk.
    This is what I've learned (or think I've learned - I might be wrong):
    Windows Vista and later store the configuration settings for the Recycle Bin for redirected user profile folders in this registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder
    Under this key are separate keys for each redirected folder that is protected by the Recycle Bin. The keys contain the configuration information for each protected folder, and are named to match the GUIDs for "Known Folders." A list of the Known
    Folder to GUID mappings is available in one of the links above.
    The registry also contains a list of "known folders" at this location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions
    So, I reasoned that if I could create my own custom "known folder," I could add that to the list of folders that were protected by the Recycle Bin and protect any mapped network drive I wanted. So I looked at the list of existing "known folders"
    and created a key that was similar to the Documents key. I then fiddled with the values in the key until I narrowed it down to the minimum number needed to make the recycle bin work.
    This .reg file will protect a mapped X: drive with a ~50GB recycle bin. You should modify the file to fit your needs:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{9147E464-33A6-48E2-A3C9-361EFD417DEF}]
    "RelativePath"="X:\\"
    "Category"=dword:00000004
    "Name"="XDrive"
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\{9147E464-33A6-48E2-A3C9-361EFD417DEF}]
    "MaxCapacity"=dword:0000c7eb
    "NukeOnDelete"=dword:00000000
    A few things of note:
    The GUID in the above .reg file {9147E464-33A6-48E2-A3C9-361EFD417DEF} came from this PowerShell command: "{"+[guid]::NewGUID().ToString().ToUpper()+"}"
    Each "known folder"/Recycle Bin combination requires a unique GUID. If you don't want to use PowerShell to generate a GUID, you can use an online GUID generator.
    I don't know what the "Category" value does, but the key I copied had it set to 4, and that works, so I didn't test any other values.
    The "Name" value is required, but is not the name that will be shown if you right-click on the Recycle Bin and select properties. (At least not in my environment.) In my environment, the name that is shown is the name of the network drive.
    Making this change adds a "Location" tab to the properties page of your mapped network drives. I suspect this could be removed by changing the "Category" value, but didn't bother to find out.
    I only tested with mapped network drives. I suspect this would work with UNC paths as well, but I didn't bother testing.
    I hope you're as excited to find this as I was to figure it out. Let me know if this works for you. I now plan to deploy the registry keys with Group Policy Preferences and will update this forum post with any information I discover.
    Best regards
    --Russel
    Update: I am now using Group Policy Preferences to deploy the needed registry keys, and all my mapped network drives are now protected by the recycle bin.
    Update 2: I have tested now with UNC paths, and this works fine. I still use mapped network drives, but if your environment requires UNC paths instead, you can use them. Note however that if you have a mapped network drive that points to a UNC path, and
    you protect the UNC path with a registry change, if a user deletes a file from the mapped network drive that points to that UNC path, the file will be permanently deleted. See below for more details.

    FANTASTIC work Russel !
    This is extremely helpful.
    I've turned your work into a Bat Script that will automatically make the reg file.
    It creates a unique guid each time it is run, so no worries on overlaps.
    Just copy and paste the following into notepad
    and save it as "Network Recycling Bin - auto make registry file.bat"
    echo off
    REM ========== MAIN FUNCTION  ========================
    Call :CreateREGfile
    PAUSE
    goto :eof
    REM ========== SUB FUNCTIONS  ========================
    :CreateREGfile
    set /p RelativePath=Enter
    current mapped path of drive (e.g. X:\FileShare\D_Drive):
    REM replace \ with \\ (for reg value its a requirement)
    Set RelativePath=%RelativePath:\=\\% 
    set /p MaxBinSize_Dec=Enter
    max size (in mb) (eg 11gb=11000):
    call :toHex
    %MaxBinSize_Dec% MaxBinSize_Hex
    Set outputREG="Network
    Recycling Bin - %RelativePath:~0,1% Drive (%MaxBinSize_Dec%mb).reg"
    call :MakeGUID_VBS NewGUID
    REM echo My new GUID : %NewGUID%
    echo Windows Registry Editor Version 5.00
    >
    %outputREG%
    echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\%NewGUID%]
    >>
    %outputREG%
    echo "RelativePath"="%RelativePath%"
    >>
    %outputREG%
    echo "Category"=dword:00000004
    >>
    %outputREG%
    echo "Name"="NetworkDrive2RecyclingBin_%NewGUID:~1,5%"
    >>
    %outputREG%
    REM The "Name" value is required, but is not the name that will be shown if you right-click on the Recycle Bin and select properties. That will be autoset to the network drive name.
    echo.>>
    %outputREG%
    echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\%NewGUID%] 
    >>
    %outputREG%
    echo "MaxCapacity"=dword:%MaxBinSize_Hex%
    >>
    %outputREG%
    echo "NukeOnDelete"=dword:00000000
    >>
    %outputREG%
    goto :eof
    :MakeGUID_VBS
    echo set obj
    = CreateObject("Scriptlet.TypeLib")
    > TEMP_generateGUID.vbs
    echo WScript.Echo obj.GUID
    >> TEMP_generateGUID.vbs
    FOR /F "usebackq tokens=*"
    %%rin (`CSCRIPT "TEMP_generateGUID.vbs"`)DO
    SET RESULT=%%r
    set
    %1=%RESULT%
    del TEMP_generateGUID.vbs
    goto :eof
    :toDec
    :: todec hex dec -- convert a hexadecimal number to decimal
    ::             -- hex [in]      - hexadecimal number to convert
    ::             -- dec [out,opt] - variable to store the converted decimal number in
    SETLOCAL
    set /a dec=0x%~1
    ( ENDLOCAL & REM RETURN VALUES
        IF "%~2"
    NEQ "" (SET %~2=%dec%)ELSE
    ECHO.%dec%
    EXIT /b
    :toHex
    :: eg  call :toHex dec hex -- convert a decimal number to hexadecimal, i.e. -20 to FFFFFFEC or 26 to 0000001A
    ::             -- dec [in]      - decimal number to convert
    ::             -- hex [out,opt] - variable to store the converted hexadecimal number in
    ::Thanks to 'dbenham' dostips forum users who inspired to improve this function
    :$created 20091203 :$changed 20110330 :$categories Arithmetic,Encoding
    :$source http://www.dostips.com
    SETLOCAL ENABLEDELAYEDEXPANSION
    set /a dec=%~1
    set "hex="
    set "map=0123456789ABCDEF"
    for /L
    %%Nin (1,1,8)do
        set /a "d=dec&15,dec>>=4"
        for
    %%Din (!d!)do
    set "hex=!map:~%%D,1!!hex!"
    rem !!!! REMOVE LEADING ZEROS by activating the next line, e.g. will return 1A instead of 0000001A
    rem for /f "tokens=* delims=0" %%A in ("%hex%") do set "hex=%%A"&if not defined hex set "hex=0"
    ( ENDLOCAL & REM RETURN VALUES
        IF "%~2"
    NEQ "" (SET %~2=%hex%)ELSE
    ECHO.%hex%
    EXIT /b
    :eof

  • How can I get a Powershell script which maps network drives to execute at logon to any workstation in my domain

    I want to map network drives for each user when they logon to any workstation in the network.  I have created and tested the PS1 script which works fine where the drives attach and used persistent parameter.  I have updated the Windows 7 Professional
    64-bit workstation to the latest PS 4.0 code.  I have created the GPO and believe everything is assigned properly.  I made changes to allow execution of local and remote signed scripts.  I have forced the changes on a workstation using GPUPDATE
    /force, but the drives do not connect.  The GPRESULT is as follows which shows the policies are in place as shown below.  
    What am I missing to get the script to execute? 
    RSOP data for MRC\mikeg on MIDRUBD03 : Logging Mode
    OS Configuration:            Member Workstation
    OS Version:                  6.1.7601
    Site Name:                   N/A
    Roaming Profile:             N/A
    Local Profile:               C:\Users\mikeg.MRC
    Connected over a slow link?: No
    USER SETTINGS
        CN=My Name,CN=Users,DC=mrc,DC=net
        Last time Group Policy was applied: 7/21/2014 at 8:22:05 AM
        Group Policy was applied from:      MIDSRVR01.mrc.net
        Group Policy slow link threshold:   500 kbps
        Domain Name:                        MRC
        Domain Type:                        Windows 2000
        Applied Group Policy Objects
            StartingUp
        The following GPOs were not applied because they were filtered out
            Default Domain Policy
                Filtering:  Not Applied (Empty)
            Local Group Policy
                Filtering:  Not Applied (Empty)
        The user is a part of the following security groups
            Domain Admins
            Everyone
            BUILTIN\Administrators
            BUILTIN\Users
            NT AUTHORITY\INTERACTIVE
            CONSOLE LOGON
            NT AUTHORITY\Authenticated Users
            This Organization
            LOCAL
            MRCAdmins
            Domain Users
            Enterprise Admins
            Schema Admins
            AS400_Permanent_Users
            Denied RODC Password Replication Group
            DnsAdmins
            High Mandatory Level
        The user has the following security privileges
        Resultant Set Of Policies for User
            Software Installations
                N/A
            Logon Scripts
                GPO: StartingUp
                    Name:         C:\Windows\SYSVOL\sysvol\mrc.net\Policies\{47773A6D-1115-4A3D-BB74-F672B315A430}\User\Scr
    pts\Logon\MapDriveScript.ps1
                    Parameters:
                    LastExecuted: This script has not yet been executed.
            Logoff Scripts
            Public Key Policies
                N/A
            Administrative Templates
                GPO: StartingUp
                    KeyName:     Software\Policies\Microsoft\Windows\PowerShell\EnableScripts
                    Value:       1, 0, 0, 0
                    State:       Enabled
                GPO: StartingUp
                    KeyName:     Software\Policies\Microsoft\Windows\PowerShell\ExecutionPolicy
                    Value:       82, 0, 101, 0, 109, 0, 111, 0, 116, 0, 101, 0, 83, 0, 105, 0, 103, 0, 110, 0, 101, 0, 100,
    0, 0, 0
                    State:       Enabled
            Folder Redirection
                N/A
            Internet Explorer Browser User Interface
                N/A
            Internet Explorer Connection
                N/A
            Internet Explorer URLs
                N/A
            Internet Explorer Security
                N/A
            Internet Explorer Programs
                N/A

    >                  Name:
    > C:\Windows\SYSVOL\sysvol\mrc.net\Policies\{47773A6D-1115-4A3D-BB74-F672B315A430}\User\Scr
    > pts\Logon\MapDriveScript.ps1
    >                  Parameters:
    First: Only one of all current answers points in the right direction.
    You picked the local sysvol path on the DC which does not exist on
    clients, of course...
    The Path to the script MUST be an UNC path starting like
    \\mrc.net\sysvol\mrc.net\Policies\...
    Second: You CANNOT execute PS1 directly (unless you change the .ps1 file
    extension configuration). The "Name" MUST be "powershell.exe", and the
    script itself goes into "Parameters".
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Mapped network drive appears empty for all users on one computer

    We have several network drives mapped via a batch file at log in.  On one particular Windows 7 computer one of these drives maps but appears empty.  Manually mapping to the drive and assigning a different drive letter makes no difference but manually
    mapping by entering the IP address allows viewing and accessing the contents.  
    The malfunctioning network drive is also using Hosted BranchCache.  The following settings are set in local group policy:
    (\Network\BranchCache)
    Turn on BrancheCache - Enabled
    Set BranchCache Hosted Cache Mode - Enabled - <servername>
    Configure BranchCache for network files - Enabled - 0
    The servers involved are running Windows Server 2012.
    I am at a loss here and will appreciate any suggestions. 
    ~JuniorG33k "Why is this thus? What is the reason for this thusness?"

    With Offline Files disabled the contents of the mapped drive are visible and accessible.  Unfortunately, Offline Files must be enabled for BranchCache to work.  
    Looking in the Event Viewer at “Applications and Services Logs\Microsoft\Windows\OfflineFiles\Operational” I can see that the mapped network drive transitioned to slow link during high latency but has never transitioned back. 
    ~JuniorG33k "Why is this thus? What is the reason for this thusness?"

  • "Mapping Network Drive" equivalent in OSX?

    Help! What am I doing wrong?
    I'm trying to connect to a photocard reader that is built-in to my HP Photosmart 2710 (wireless) printer. My Macbook Pro happily found the printer and set itself up perfectly to print to the HP and show me the ink levels and so on. I was impressed. However trying to connect to the photocard reader is really trying my patience.
    On my Windows XP PC I use "Map Network Drive" and specify "\\192.168.0.2\memory_card" and I'm able to read (and write) to the photo card in the reader.
    On my Macbook, if I use "Go>Connect to Server" and then specify "192.168.0.2\memory_card" I get an error message saying that "afp://192.168.0.2\memory_card" is not available. (same happens if I use a "/" before "memory_card", and if I put "\\" or "//" before "192" too).
    Any suggestions anyone? Thanks in advance.
    Neil

    If your windows pc maps to the printers memory card then it must be using the windows samba sharing protocol.
    So on your mac use the following server address in the connect to server window
    smb://192.168.0.2

  • Mapping network drives after logging in to VPN

    We are having a problem where remote users login to their laptop with cached domain credentials using SSL VPN (the users are onsite but take their laptops home). Problem is they login to the VPN and their mapped drives don't work and they need to delete and remap their drives everytime they log in (we have to use FQDN to remap, example would be Jsmith1.anycompany.com). Any suggestions

    Hi, you can enable Start Before Logon (SBL) for AnyConnect client.With SBL enabled, the user sees the AnyConnect GUI logon dialog before the Windows logon dialog
    box appears. This establishes the VPN connection first. Available only for Windows platforms, Start Before Logon lets the administrator control the use of login scripts, password caching, mapping network drives to local drives, and more. You can use the SBL feature to activate the VPN as part of the logon sequence. SBL is disabled by default.
    1. Create user profile, then edit attribute, for example,settiing myprofile.xml file to true:
    <?xml version="1.0" encoding="UTF-8" ?>
    true
    To disable SBL, set the same value to false.
    You must also specify on the security appliance that you want to allow SBL. Take a look AnyConnect User manual,see the description in the section Enabling Modules for Additional AnyConnect Features(ASDM) or Enabling Modulesfor Additional AnyConnect Features (CLI) for a description of how to do this.
    Pls rate if it helps.

Maybe you are looking for