Network drive path is cleared after logout.

I have several Mac machines on a Windows network environment and when a network drive on a Windows server is connected to the Mac and the user logs out, the drive history is cleared and the network drive address has to be retyped every time.  I have tried adding it to the login items but it is still deleted. It is also not saved when I store it as a favorite location under 'connect to server'.  Assistance would be appreciated.

Hi,
Not sure you are seeking for string replacement like below:
'P:\2015\House'.Replace('P:', '\\Server\Projects')
If you are looking for the mapped drives and using Get-Item or Get-ChildItem, Pls try the below example:
#To collect mapped drives and it's path.
$MappedDrives = @{}
Get-WmiObject win32_logicaldisk -Filter 'drivetype=4' | Foreach { $MappedDrives.($_.deviceID) = $_.ProviderName }
#The below samples add additional property called 'UncPath' to the output of Get-item and Get-ChildItem
Get-ChildItem P: | Select *, @{n='UncPath'; e= { $_.FullName.Replace( $_.Root, $MappedDrives.($_.Root.ToString().SubString(0,2)) +'\') }}
Get-Item P:\2015\House | Select *, @{n='UncPath'; e= { $_.FullName.Replace( $_.Root, $MappedDrives.($_.Root.ToString().SubString(0,2)) +'\') }}
rgds,
AZ

Similar Messages

  • Network drive does not show after 10.8.2 update

    After updating my MacBook Pro 13" to 10.8.2. Network drive doesn't show on the sidebar. My old MacBook Pro runing 10.7 on the same network work fine.

    Yeah I had that problem the other day myself with a Rotuer attatched external drive. Show on my Win PCs no problem but not on my MBP running 10.8.2.
    Apple, Got to love them. Or Throw the Mac out the window.

  • Unable to convert files to pdf in network drives

    Hi Team
    Iam using adobe acrobat pro 11 in windows7 64 bit OS.When ever iam trying to convert files from text or word to .pdf iam getting the errro message in devices and printers.
    one thing i observed that when i choose local drive eg:c:drive iam there is no problem.but when i given network drives path then its getting error.i have full permissions on network drive and also i can able to save any files,able create files, folders in network drives, So there is no permission issues.
    Could you please provide the solution to fix it.
    Thanks in advance
    Regards
    Siva

    I don't know the solution, but at one point folks were discussing the issue of the TMP folder used for the PDF creation. It may be that there is something causing a problem with the mix of the TMP folder and the network folder. Be aware, I have no clue what I am talking about, but am repeating things I remember reading at one point. That might help you in your trouble shooting. There are others here that understand networks and will hopefully drop by to help.

  • Itunes can't find network drive on boot, but fine after

    I have a MacMini server for my house providing light control, emal, websites and other fun stuff.   As it is on 24x7 it made sense to put the iTunes library here as well and have my primary workstation simply connect to it.  As the MacMini is in a closet I really need the primary workstation as the point of connection for all iPads and iPhones.
    This seemed simple enough in theory but it's got a quirk in it somewhere. 
    On startup, the primary workstation always comes up with an error that it can't find the iTunes library.   But when I click the option button to choose the library, it opens to the proper place - the directory locatino on the MacMini.
    After I have done this, iTunes works just as expected.   I can even close iTunes on the workstation and open it again - poof, there it is as expected and no problem.   If I shut down the workstation and start it up again then once again I get this same error from iTunes regarding it being unable to find the library.
    I wrote an apple script in an effort to establish connection to the network drive (i.e., the MacMini) and it works just fine - it even has a delay to make sure the connection is established (I can disable this but it makes no difference).  The problem is that it seems to run AFTER the iTunes Helper has tried and fialed.  
    Under my Login Items, the iTuens Helper is always the First application listed.  I can't seem to reorder them at all.  I can delete the iTunes Helper, but then of coruse iTunes doesn't launch.   Once I set the preferences again to start iTunes at Startup, it reasserts itself to be first in line.
    I am using a Mac Airport Extreme (had the original and now have the 802.11ac) as the central network controller - but this issue was there before.  Although there is a Netgear Gigbabit router in the house too, the workstation and the MacMini are both on diret lines to the Airport Extreme and are not using wireless.
    The sharing of the media files works just fine, and from the Apple TVs in the house I can select and play either from the MacMini or the workstation as long as the workstation is on.   Of course the media is all coming from the MacMini drive as the original source, but there are no latency issues perceptable.
    It's only the initial startup boot of the workstation that seems to trigger this error.  
    I have tried removing the network connection script, and simply reidetifying the library location using the option key when starting iTunes - but the behavior remains.
    Searching for how others have recommended doing this, most articles don't have the login script but others do - but none of them have any sort of a bi-line warning that for the initial startup there may be this lost library error. 
    The MacMini is new as of February and the workstation is an older Mac Pro - both are running the latest versions of OS X 10.8.4 with all updates in place.
    I don't have any other startup applications that require info from the MacMini.  However, since I adminster it via screen share, and usually have no exited that - screen share is happily there and fully connected after startup.   Leaving this open or shutting it down doesn't have any affect on the iTunes issue.
    This seems to simple an issue for it to have a complex cause - but I am clearly missing something.
    Hoping someone here has some fresh thoughts and ideas.
    Cheers -
    Dan

    On a whim, I tested the remote library with my MacBook Pro.
    I shut down iTunes on the MacPro Workstation and then used the Option key to startup iTunes on the MacBook Pro - and selected the remote library on the MacMini.   Worked jsut fine (of coure the size of the open window was too big) but no issues at all.  
    And once selected, I can close and start iTunes repeatedly with no issues on the MacBook Pro.
    Then I did a Shutdown and Restart.   Following the login I get the very same popup window telling me that the iTunes library can not be found.  AND just like on the Workstation, I hit the option for Choose and it takes me right to the correct location on the MacMini - all I need to do is accept and poof it launches just as it should.
    The MacBook is on wireless.
    Indications here are that this is an issue with iTunes starting up before the netowrk handshakes have completed.
    Anyone have any thoughts??

  • DFS network drive giving error to many clients of Windows 7 and 8.1 after accessing from run

    Hi,
    My network drive (DFS) is giving below error after upgrade OS from windows 2008 to 2012. On many clients of windows 7 and 8.1 we are able to resolve
    by rebooting the system or by net use * /d command. But many user still getting error after accessing from mapped drive as well as from RUN command.
    some area stupid thing happening, after accessing from RUN like \\networkdrive then it will open successfully and show all the shared folder. When we
    click on particular shared folder it gives below error message and some works perfectly fine. Even though that person have rights on both the shared folder.
    """""check to make sure that the disk is properly inserted, or that you are connected to the internet or your network, and then
    try again. If it still cannot be located, the information might have been moved to a different location. """"
    Kindly suggest what should I do now?
    Inder Johar

    Hi Inder Johar,
    Please check if clients could connect to \\domain\dfsroot and UNC path. You could refer to the article below to troubleshoot the issue:
    DFS mapping error: Refers to a location that is unavailable
    http://jthys.wordpress.com/2013/02/20/dfs-mapping-error-refers-to-a-location-that-is-unavailable/
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    It’s simple enough to use a tool like ROBOCOPY or the File Server Migration Tool (FSMT) to copy your previous created folders over to the new name space
    \\networkdrive.
    Robocopy
    http://technet.microsoft.com/en-us/library/cc733145.aspx
    Microsoft File Server Migration Toolkit 1.2
    http://www.microsoft.com/en-us/download/details.aspx?DisplayLang=en&id=10268
    Regards,
    Mandy
    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.

  • Red X on Network drives and Unknown Publisher when running apps after VLAN config

    We have been running the SG500-52P switches (2 switches stacked) for 2 years with No issues. We recently moved our office and added a new VoIP phone system. We had some trouble getting everything installed originally but its all working now with this one pesky problem. After putting the switches in Layer 3 mode, adding a VLAN for the phone system and setting up a route between VLAN1 (data) and VLAN2 (phones). We are now having this problem: Users are randomly getting Red X's showing disconnected network drives. There appears to be no pattern to when the disconnect happens. It can happen almost instantly after a reboot or sometimes be fine for a few days before disconnecting.  If you click on the drives you can access the data but the Red X DOES NOT go away. Although when accessing some applications we get an "Unknown Publisher" message and usually the program crashes. All our Workstations are Win 7 Pro and Servers are 2008 R2. We map server and NAS drives, when the issue happens is disconnects all the mapped drives and NOT just one server.

    Definitely not a good situation to be in, as you never know who will call and complain of loosing connectivity.  Have you opened a ticket with TAC?
    Unfortunately we don't get a lot of comments/questions on the SG series here.

  • 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.

  • Spinning icon after going to network drive

    I just connected my mac to a network drive. Works fine, etc. However, now on my desktop, I have the spinning icon that you get when you are waiting for something to load or start. But, it just stays there. Any idea, what is up with that and how I get rid of it? It stays in the background on the finder desktop even after I exit the drive.

    Go to the Apple Menu and select Force Quit. See if anything is listed as not responding. If not, restart the finder and see if it goes away.

  • Network Drive Reconnect after Network reconnects?

    I use hamachi to mount a network drive on my home server (which I back up files to, etc.) on my OSX 10.8.1 MBP.
    The problem is that I'm constantly having to connect / reconnect to the wireless network at work (just because of how much I move around between locations at work), which means I'm constantly having issues crop up due to the fact that even though I don't have a wireless connection yet my computer is trying to reconnect to the network drive.
    So the basic series of events should be:
    Establish wireless connection -> establish connection to server -> mount drive
    Is there any way to make sure that this happens in this order rather than the computer trying to do it all at once and throwing me errors?
    If that's not possible, is there at least a way to have the computer periodically check and try to mount the network drive (right now, after the first attempt if it can't it gives up, says something along the line of "can't find network location" and I have to manually mount it)?
    I already have it set up so that the drive mounts automatically upon login (Accounts -> Login Items, etc.), but that seems to only apply after a system reboot.
    thanks

    I find it best to NOT Automount them at all, but have a quick & easy Dynamic Mount system by first deleting those Login Items, then...
    What I would do is, once you get the Icons mounted on the Desktop, is to drag them them to the Dock between Applications & Trash, or if you have many and just want a neat Popup Menu, then create a New Folder on the Desktop, drag those Mounted Icons to that Folder, (once there you can even rename them to whatever you wish), then drag that Folder to the Dock between Applications & Trash.
    And of course I'd have 3 New Locations in Locations...
    One called Hpme, one called Work, and one called All Off...
    http://gnarlodious.com/Computer/MacOsx/WiFi

  • CS6 Bridge Running in Background after connecting to a networked drive?

    I have been having a problem with Bridge running in the background after connecting to a networked drive on a server. I can open and use the program fine, but when I close it still is running in the background until closed via Task Manager. Once the process is removed I can once again open Bridge. I found that holding Ctrl and clicking the Bridge icon and resetting my preferences allows me to open and close bridge once again, until I connect to a networked drive. Anything local on the computer things work fine, but as soon as I head over to a server Bridge wants to continue running in the background. I am assuming it is having trouble closing its connection to the networked drive and stays open.  I do have other computers on the network with CS5 and they do not have this issue.
    Any ideas on how to correct this?
    Computer is a Windows 7 64 bit platform.

    They were using the little red "x", file > quit allowed her to reopen the program etc. I find it weird that it wont close with the "x" but if I right click the icon on the task bar, it wont allow me to reopen or do anything with it so I was under the assumption it was stuck open.

  • Network drive appears empty after upgrade

    I had my SuperDuper backup on one of two drives in a D-Link NAS. TM backs up to a third drive that isn't on the network - just an external drive here on the desk. I upgraded last week and everything... well everything went to ****, generally, but TM had been working just fine since the upgrade. Today, however, it suddenly went nuts. It was taking forever and sucking up huge resources, even webpages were loading terribly slow. I left it alone for about fifteen minutes, then tried to cancel it... then Finder stops responding. So I try to relaunch Finder, which closes just fine, but I get an error and Finder won't reload. So I reboot, which takes a good 7 minutes.
    Okay, now the network problem: after all that, I can view the files on my one network drive - ironically, the one I don't care about - but my network drive with my SuperDuper sparseimage shows up as empty. I checked in terminal and also FTP. Totally blank. Even though TM backs up on a different drive. What's up? Any ideas? I'm leaving the network drive alone until I figure it out... I really need that sparseimage (during this same issue, TM corrupted the external, so I had to reformat it... so now my only backup is [maybe] on this network disk).
    Argh. I should have waited a month or two before updating. Let someone else deal with the early adopter bugs.

    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?"

  • Adobe files missing from network drive after editing...

    Problem started around June 1st.  PDF files are shared on the network drive.  After I edit one of the forms and resave it, the networked computers can no longer see the file listed on the network drive.  Only the hosting computer still sees them.  Also, if I resave one of the files as a new name, it will reappear on the network.  Any ideas?  Adobe Reader 11.0.03

    Yes, the problem is still continuing. However, after looking into as much of it as I can, I can confirm something that r.p.b_ started stumbling on. The files are deleted IF AND ONLY IF a user is using the built-in Windows 7 disc burning utility AND is dragging
    and dropping the files to the drive from a network share; this doesn't happen locally. If you watch what happens in the native folder, the files are literally scrubbed from the drive as they are processed and added to the image. However, if you Right Click
    on the files and copy them, then Right Click->Paste onto the drive, they remain. (The keyboard shortcuts also worked.) Also, 3rd party disc burning utilities function they way the should. (In other words, they don't delete the files.)
    My speculation is that there's a bug in the coding that sees the network share as a temporary buffer file while the image is being prepared. Then, as the files are processed in what ever way is needed, the "temporary buffer" is being deleted. The result:
    lost files on a network share. But, this is just speculation.

  • Windows 8.1 search of network drives shows UNC path based results

    How do I go about showing the network drive based path as opposed to the UNC based path in Windows 8.1?
    In Windows 7 when the user searched for files on a network drive it displayed results that contained the network drive. In Windows 8.1 these searches yield the UNC
    path.
    For example, Windows 7, if I search for TestFile.docx on Z: it will show a result such as "Z:\SomeFolder\SubFolder\TextFile.docx"
    Windows 8.1, if I search for TestFile.docx on Z: it will show a result such as "\\SomeServer\SomeFolder\SubFolder\TextFile.docx"

    Hi,
    Actually, I tested in my Windows 8.1 system, the result is that it does show (example)"Z:\folder" as the search result, like as Windows 7 system, here's the snapshot:
    Or am I missunderstanding something? a snapshot from your result would be helpful.
    Yolanda Zhu
    TechNet Community Support

  • Help! Blank file after opening .psd from network drive

    I'm a technician at a school district and in one of the classrooms we have Photoshop CS5.1 installed on a Windows 7 SP1 machine. Students have their own network drive folder for them to save files.
    They are currently working with work paths and have multiple layers when they save their PS project.  When they go to open it back up, they get a blank white layer that looks locked. We go to the paths part and it actually shows what they were working on. How do they get it to open up where the layers are still there? The layers checkbox was checked when they saved and it was saved as .psd file.
    Any help would be appreciated.  They have saved locally on the machine and I'm going to find out soon enough if it saved correctly for them.

    It is discouraged by Adobe to open/save directly via a network.  I don't know the fact that you're saving directly across the network is involved in what's gone wrong here, but can you have the students save their work to the local drive, then copy the file to the network drive?
    Out of curiosity, are they using a mapped drive letter, or a UNC path?
    There was a VERY similar thread to yours a few weeks ago...  http://forums.adobe.com/message/3955688
    -Noel

  • After Sleep, Moutain Lion will not find Network Drives

    Hi all,
    I've upgraded to Mountain Lion on my Late 2011 MacBook Pro 13 and all was well until I've noticed that after sleeping my MacBook will not find any network drives. I only noticed this since TimeMachine came up with an error that it cannot backup due to not being able to find the device on the network, my ReadyNAS Ultra 4 was powered on and TimeMachine backed up to it less than an hour before?
    I've tried an Alt Rt Click on Finder to Relaunch Finder but still my MacBook will not find any network drives until I reboot, or switch off WiFi and then turn it back on?
    Has anybody else come across this since the upgrade to Moutain Lion?
    My MacBook Pro is fully up to date and TimeMachine works well if the MacBook doesn't sleep?
    Many thanks in advance, Jon.

    Surely it's not just me that is experiencing these issues? The latest update mentioned some networked drives but still i'm experiencing the same issues after sleep. If I reboot fine, but not after sleep?
    Can anybody help??
    Jon.

Maybe you are looking for

  • Resolved my ITUNES/QUICKTIME problems easily

    getting a QuickTime error message concerning the .cab file ERROR 2350, when attempting to upgrade to Itunes 7. I was using MOZILLA to dowload software. After hours of NO SUCCESS I opened up IE, downloaded yet again and it worked. Interesting to know

  • Would Like To Hold Object In The Middle

    There are controls for holding an object(TV Set)at the beginning and end, but not the middle. I want to hold the set in place for 5 seconds, but it's not happening. There was a somewhat similar query, but the suggestion was to add another track and c

  • Won't connect to itunes

    error is "this iphone cannot be used because the required software is not installed.run the itunes installer to remove itunes and reinstall itunes again." this is the 3rd or so try and stillnot working.  After updated phone to iOS6 and itunes to vers

  • CS4 will not work with Snow Leopard

    Does anyone know what the problem is? I have been reading on other message boards about CS4 programs crashing. I can't even get mine to open. Does anyone know a fix or something that can help?

  • Given an iMac G5 with broken cpu. please help.

    My friend was loading onto the cpu and it blanked out. He is giving it to me and was the first owner. How do I fix this problem? Thank you in advance for any advice.