Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Hi, Im trying to get the whole path in my server, so i tried that with this following code
Get-ChildItem $sourceFolder  -Recurse | ?{$_.PsIsContainer} |Get-Acl
But then, it showed me somtehing like this :
Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
 I tried to find the solver everywhere and mostly they propose to change the path name, which is impossible, since I am working with my company server, and those folder have already there before i start to work here, then the other ask me to use robocopy,
but all of the trick just dont work
is there any way to solve this problem? thanks

There is no simple solution to this. And it is not a limitation of powershell itself, but of the underlying NTFS file system.
If the problem is that a folder with a name longer than 248 exists anywhere within your directory structure, you are hooped.
If the problem is that some fully qualified path names exceed 260 characters, then, in those cases, the solution already given is to create a psdrive partway up the path from the drive letter or server/share root of the path. Unfortunately, the output produced
will be relative to that psdrive and not to what is specified as the $sourcefolder.
unless you already know where those problematic paths are, you might consider trying to trap those errors and have your script figure out where it needs to create psdrives. You might then be able to calculate the equivalent path for each file or folder and
output that. the programming effort would be simpler to just created a psdrive for each folder encountered, however I expect that would be very inefficient.
Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

Similar Messages

  • Powershell Get-childItem: The specified path, file name, or both are too long.

    Hey Scriping Guys!
    I've been using a PowerShell script for a couple of years now to generate a monthly report showing the size of user folders on a number of departmental file servers.  It's working just fine on all file servers except one where the users have gotten carried away with creating sub-folders and using realy long descriptive file names.  The problem piece of script is this:
    $colItems = (Get-ChildItem \\192.168.10.5\marketing -recurse | Measure-Object -property length -sum)
    "marketing-serv\marketing: "+"{0:N2}" -f ($colItems.sum / 1GB) + " GB"
    The reply I get is:
    Get-ChildItem : The specified path, file name, or both are too long. The fully
    qualified file name must be less than 260 characters, and the directory name mu
    st be less than 248 characters.
    At G:\data\Server_space_Report\serverspace2.ps1:37 char:27
    + $colItems = (Get-ChildItem  <<<< \\192.168.10.5\marketing -recurse | Measure-Obje
    ct -property length -sum)
    Yes, the message is correct, however, when I connect to the server, right click the folder and chose properties it returns a size of 128 GB.  My questions are
    1. Why does clicking on folder properties not produce an error (what is it doing differently from my script)?
    2. How can I fix my script?
    Thanks,

    I am trying to clear up the older open posts on this forum. If this is still an unresolved issue for you please let me know. If you do not post back within one week I will assume it is resolved and will close this thread.
    Thank you
    Ed Wilson
    Microsoft Scripting Guy

  • SharePoint 2010, Visual Studio 2010, Packaging a solution - The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    Hi,
    I have a solution that used to contain one SharePoint 2010 project. The project is named along the following lines:
    <Company>.<Product>.SharePoint - let's call it Project1 for future reference. It contains a number of features which have been named according
    to their purpose, some are reasonably long and the paths fairly deep. As far as I am concerned we are using sensible namespaces and these reflect our company policy of "doing things properly".
    I first encountered the following error message when packaging the aforementioned SharePoint project into a wsp:
    "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
    I went through a great deal of pain in trying to rename the project, shorten feature names and namespaces etc... until I got it working. I then went about gradually
    renaming everything until eventually I had what I started with, and it all worked. So I was none the wiser...not ideal, but I needed to get on and had tight delivery timelines.
    Recently we wanted to add another SharePoint project so that we could move some of our core functinality out into a separate SharePoint solution - e.g. custom workflow
    error logging. So we created another project in Visual Studio called:
    <Company>.<Product>.SharePoint.<Subsystem> - let's call it Project2 for future reference
    And this is when the error has come back and bitten me! The scenario is now as follows:
    1. project1 packages and deploys successfully with long feature names and deep paths.
    2. project2 does not package and has no features in it at all. The project2 name is 13 characters longer than project1
    I am convinced this is a bug with Visual Studio and/or the Package MSBuild target. Why? Let me explain my findings so far:
    1. By doing the following I can get project2 to package
    In Visual Studio 2010 show all files of project2, delete the obj, bin, pkg, pkgobj folders.
    Clean the solution
    Shut down Visual Studio 2010
    Open Visual Studio 2010
    Rebuild the solution
    Package the project2
    et voila the package is generated!
    This demonstrates that the package error message is in fact inaccurate and that it can create the package, it just needs a little help, since Visual Studio seems to
    no longer be hanging onto something.
    Clearly this is fine for a small time project, but try doing this in an environment where we use Continuous Integration, Unit Testing and automatic deployment of SharePoint
    solutions on a Build Server using automated builds.
    2. I have created another project3 which has a ludicrously long name, this packages fine and also has no features contained within it.
    3. I have looked at the length of the path under the pkg folder for project1 and it is large in comparison to the one that is generated for project2, that is when it
    does successfully package using the method outlined in 1. above. This is strange since project1 packages and project2 does not.
    4. If I attempt to add project2 to my command line build using MSBuild then it fails to package and when I then open up Visual Studio and attempt to package project2
    from the Visual Studio UI then it fails with the path too long error message, until I go through the steps outlined in 1. above to get it to package.
    5. DebugView shows nothing useful during the build and packaging of the project.
    6. The error seems to occur in
    CreateSharePointProjectService target called at line 365 of
    Microsoft.VisualStudio.SharePoint.targetsCurrently I am at a loss to work out why this is happening? My next task is to delete
    project2 completely and recreate it and introduce it into my Visual Studio solution.
    Microsoft, can you confirm whether this is a known issue and whether others have encountered this issue? Is it resolved in a hotfix?
    Anybody else, can you confirm whether you have come up with a solution to this issue? When I mean a solution I mean one that does not mean that I have to rename my namespaces,
    project etc... and is actually workable in a meaningful Visual Studio solution.

    Hi
    Yes, I thought I had fixed this my moving my solution from the usual documents  to
    c:\v2010\projectsOverflow\DetailedProjectTimeline
    This builds ok, but when I come to package I get the lovely error:
    Error 2 The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. C:\VS2010\ProjectsOverflow\DetailedProjectTimeline\VisualDetailedProjectTimelineWebPart\Features\Feature1\Feature1.feature VisualDetailedProjectTimeline
    Now, the error seems to be related to 
    Can anyone suggest what might be causing this. Probably some path in an XML file somewhere. Here is my prime suspect!
    <metaData>
    <type name="VisualDetailedProjectTimelineWebPart.VisualProjectTimelineWebPart.VisualProjectTimeline, $SharePoint.Project.AssemblyFullName$" />
    <importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>
    </metaData>
    <data>
    <properties>
    <property name="Title" type="string">VisualProjectTimelineWebPart</property>
    <property name="Description" type="string">My Visual WebPart</property>
    </properties>
    </data>
    </webPart>
    </webParts>
    .... Unless I can solve this I will have to remove the project and recreate but with simple paths. Tho I will be none the wiser if I come across this again.
    Daniel

  • TFS Build Error - Exception Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters

    I am trying to set-up CI of Orchard CMS and deploy it on Azure using TF service. I am stuck at following error for path being
    longer than 260 characters. However, when counted the total characters in path are 235. Please see the below error :
    Other Errors and Warnings
    1 error(s), 1 warning(s)
    Exception Message: TF400889: The following path contains more than the allowed 259 characters: drop/_PublishedWebsites/Orchard.Web_Package/Archive/Content/C_C/a/src/projects/Orchard/dev/DevAltaf/Orchard/src/Orchard.Web/obj/Debug/Package/PackageTmp/Modules/BrentApart.BannerManager/Scripts/controllers/bannerAssignmentController.js. Specify a shorter path. (type VssServiceException)
    Exception Stack Trace: at Microsoft.TeamFoundation.Build.Workflow.Activities.FileContainerDropProvider.EndCopyDirectory(IAsyncResult result)
    at Microsoft.TeamFoundation.Build.Workflow.Activities.CopyDirectory.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
    at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
    Inner Exception Details:
    Exception Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. (type PathTooLongException)
    Did anyone came across such issue while deploying Orchard on Azure with TF service? If yes, how did you sort this freaking error?
    Thanks,
    Altaf B.

    Hi AltafB,
    For your situation, you can short the path for the source code. Or use a short path for build agent folder in your build definition. You can refer to the links below to solve your problem:
    http://blogs.msdn.com/b/aaronhallberg/archive/2007/06/20/team-build-and-260-character-paths.aspx
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/1638a5f0-9321-4ff9-9ee7-6d347badb972/please-some-solution-to-the-specified-path-file-name-or-both-are-too-long?forum=tfsbuild
    Besides, since you deploy Orchard to Azure, you can also publish it directly using publish profile in Visual Stduio or WebMatrix directly.
    Best regards,
    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.
    Click
    HERE to participate the survey.

  • The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    I've followed
    this blog post, but it didn't work for me. I truly don't want to change my solution path as this is not acceptable. What else can I do?
    I can't believe we still have limits on path length.

    Note that the solution described in the blog post does not change your solution path. The _CSRUN_STATE_DIRECTORY environment variable sets the location of the temporary folders used by the compute emulator. Your solution does not need to move.
    Though, you may still have problems related to path length inside your solution. To resolve these, I have sometimes used symbolic links (using MKLINK /D link target) or substed drives (SUBST X: path) to create shorter paths and then opened the
    solution from there. If I recall correctly, with the first method, you need to be careful how you navigate to the solution in the Open Project dialog. I think that if you browsed to the path, it would still use the long path, so you need to paste the short
    path into the file name text box to go directly to the location of your .sln file. I may be misremembering the details though.
    BTW, I can't believe we still have limits on path length either.

  • HT5194 I updated to OS 6 on iPad2 n updated iTunes 11. n made iTunes as restore. After the updates when I open notes they are all gone !!! When I open Notes it says New notes and the left margin is blank.  When I try to Search in notes nothing found. Pls

    I updated my iPad OS to  and also updated iTunes to 11.1.2 and selected iTunes as restore while still sync with the HP Laptop. Now when I open Notes every note is gone! I have to get all my notes back someone please help! Thanks 728

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • When trying to 'Consolidate Files' via iTunes I get the message "Copying files failed. The name was invalid or too long."

    I am trying to copy my entire iTunes library and everything in it from my PC Desktop to my PC Laptop using the "External Drive" method as shown on the Apple website. On Part 1 (5) I am told to consolidate files. When attempting to do this I get the message "Copying files failed. The file name was invalid or too long."
    How do I resolve this?

    I have just been having this problem and it has been driving me mad.   The error message doesn't tell you which file is causing the problem so you can't fix it and it leaves your libray in a state of limbo with some files copied into the new location and some in the old location.  After many hours I found a surprisingly quick and simple solution.
    1) in iTune create a smart play list that includes everything that was added before tomorrows date.  This will include everything.
    2) Right click this playlist and export it as a text file to produce a tab delimited file.
    3) Import this into a spread sheet, or just view it in a text editor with line wrap turned off.  What you are interested in is the last column (or end of the line in a text editor).  This gives you the path of the file associated with each entry in the library. 
    The path of the files that have already been copied successfully will start with the new location for your media files you specified.  Scroll thru the rows until you get a blank path.  If you start getting paths starting with the old Media file location then you went to far and start scrolling back.
    The row with the blank path was the file that failed.  Move back to the start of the row to find out more about it.  In my case it was a podcast with a very long name. I just deleted that podcast from iTunes.
    4) Restart the consolidation by choosing File, Library as you did before and the process starts again where it left off.
    5) If it fails again on another file just repeat the process

  • I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    BUMP
    Yes, I just get that message. I don't see how I could investigate this problem.
    I didn't mention that this happened when I was consolidating my library, not copying files to another computer.
    In other words, I'm using a "normal" itunes procedure, itunes won't complete it, and won't tell me exactly why or how to figure out how to fix it...
    Is there at least some easy way to tell which files were successfully copied to my itunes music folder so I can work on moving the uncopied files?
    Can anybody help me?

  • ITunes v10.6.1.7 "Copying files failed. The File name was invalid or too long."

    I'm trying to organize my music files using iTunes 10.6.1.7 and I keep getting the error message "Copying files failed. The File name was invalid or too long."
    I've got music folders by artist in both the iTunes Music folder and the iTunes Media/Music folder. When I add certain files by drag/drop they sometimes get lost and I don't want that to happen anymore. I used to just consolidate my music files using the File/Library/Organize Library option and that worked, however now when I do that, I get the error message.
    I'm a novice and the only online stuff I see is both confusing and refers to earlier versions of iTunes.
    My concern is that I have heard that people lose entire libraries of their music when they trry to fix things like this and I don't want that. If this is of any importance, I have several files called iTunes library and temp library. I have no idea what that all means but I'm scared to death of it.
    Also, I can't get to the "re-organize library" link at all. It won't let me.
    One thing that be of some interest is that when I pull up the properties of the music and media/music files they are marked "read only" I'm also afraid to touch that!
    Please help and please know that I am a dummy. Be kind and be clear. Step by step would be great, with images even better. Thanks.

    Perhaps nobody knows the answer? We're fellow users here answering questions in our free time when we think we've something useful to contribute.
    You can choose to *Consolidate selected tracks* with a right-click menu. Perhaps if you can identify a specific track that won't consolidate and examine the full path to the file & the path that iTunes would create when it consolidates the problem might become apparent. For example iTunes may not be able to move files if the source or destination path length exceeds 255 characters.
    tt2

  • Database does not exist in the specified path

    Just bought a USB 6009 DAQ and for some reason I now keep getting this error: "Database does not exist in the specified path" in VI Logger 2.0.1 it was working.  Can anyone help??

    Jared,
    It sounds like VI Logger somehow lost its association with its
    database. Please open MAX and check out the "Historical
    Data"->"Citadel 5 Universe" entry. Under "My Computer" in the
    right-hand pane, you should have a database called "VI Logger Data". It
    must be spelled, spaced, and capitalized the exact same way. If you do
    not have this database (which I suspect you do not), right click on "My
    Computer" and select "Create/Attach Database..." The default database
    path (if you want to have access to your old data) is C:\Documents and
    Settings\All Users\Application Data\National Instruments\VI Logger,
    with the database name as "VI Logger Data". If you want to create a new
    database, then specify a new path.
    If "VI Logger Data" does appear, a possible fix is to detach and
    reattach it. Right click on "VI Logger Data," select
    "Detach/Delete...," and chose the "Detach" option. Finally, reattach
    the database as described above.
    Hope this helps,
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Itunes for WIN7: attempting to copy to disk "..." failed.  The file name was invalid or too long

    itunes for WIN7: attempting to copy to disk "..." failed.  The file name was invalid or too long
    help!!

    Max. path length is 255 characters, or perhaps there are some non-displaying characters hidden there. Try dropping a song you want to add to iTunes into the Automatically to iTunes folder to see if that works any better.
    tt2

  • SCCM 2012 - Adding Operating System Installer (The specified path does not contain a valid operating system ..)

    I have encountered the dreaded "The specified path does not contain a valid operating system or you do not have permission to access it.  Specify a valid path" message that seems to be popular in many forums .... BUT, so far none of the "solutions"
    have fixed the problem (of I don't understand the fix)
    Configuration
    SCCM 2012 SP1 5.0.7804.1000
    WADK 8.100.26629.0  < Suggested Fix
    Server 2008 R2
    SCCM Administrator with UserID = SCCMAdmin 
    Steps / Fixes I have followed
    I have configured a administrative share
    \\caleb\sources$ to hold directories (such as Apps, Drivers, and OS) with the following NTFS Permissions
    EVERYONE has Read and Execute, List folder, Read permissions<o:p></o:p>
    SYSTEM has Full Control 
    <Suggested Fix
    SCCMManagers (our group that has all SCCMManagers) has Full Control<o:p></o:p>
    SCCMAdmin (the SCCM Admin account that we are using to import image) has Full Control<o:p></o:p>
    Local Administrators (the local machine administrator) has Full Control 
    <Suggested Fix
    <o:p></o:p>
    Another Fix is to explicitly grant all permissions to the SCCM Administrator
    <Suggested Fix
    >Administrative Users ...
    Properties of the SCCM Administrator (for us that is SCCMAdmin) has all the boxes checked<o:p></o:p>
    Another suggestion I was able to glean was to Specify the Network Access Account
    so I configured SCCMAdmin as the Network Access Account.
    Another potential fix is that the image ISO file that has been downloaded is corrupt.   So, I downloaded the Win 7 (and Win 8.1) ISO's from MSDN and did a Checksum check.
    I then mounted the ISO (on 2008R2 I use VirtualClone Drive) and copied the contents of the image to
    E:\Sources\OS\en_windows_7_professional_with_sp1_vl_build_x86_dvd_u_677896 for Windows 7 with SP1
    To double check,
    I computed the Hash on the Install.WIM located in the Sources directory and compared with
    the computed Has Tag for the Install.WIM on the ISO Image  ... and the Hash tag of the WIM's matched (extracted vs what is contained within the ISO)<o:p></o:p>
    I tried to load the images into SCCM 2012 using the "Operating System Installers" option
    UNC to installer
    \\caleb\sources$\OS\en_windows_7_professional_with_sp1_vl_build_x86_dvd_u_677896
    Then I receive the lovely message <o:p></o:p>
    "The specified path does not contain a valid operating system or you do not have permission to access it.  Specify a valid path"<o:p></o:p>
    <o:p> </o:p>
    From
    C:\Program Files (x86)\Microsoft Configuration
    Manager\AdminConsole\AdminUILog\SmsAdminUI.log<o:p></o:p>
    <o:p> </o:p>
    \r\nSystem.Management.ManagementException\r\nGeneric failure \r\n  
    at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
    errorCode)
       at System.Management.ManagementObject.InvokeMethod(String
    methodName, ManagementBaseObject inParameters, InvokeMethodOptions options)
       at
    Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.ExecuteMethod(String
    methodClass, String methodName, Dictionary`2 methodParameters, Boolean
    traceParameters)\r\nManagementException details:
    instance of SMS_ExtendedStatus
     Description = "Failed to get the image property from the source WIM
    file due to error 80070002";
     ErrorCode = 2147942402;
     File ="e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\sspimagepackage.cpp";
     Line = 586;
     Operation = "ExecMethod";
     ParameterInfo = "SMS_OperatingSystemInstallPackage";
     ProviderName = "WinMgmt";
     StatusCode = 2147749889;
    \r\n<o:p></o:p>
    What am I missing ????  I assume something simple but, darn I'm stumped!!!

    Hi,
    Configuration Manager version
    Windows AIK or Windows ADK Version
    Windows PE versions for boot images customizable from the Configuration Manager console
    Supported Windows PE versions for boot images not customizable from the Configuration Manager console
    System Center 2012 Configuration Manager with no service pack
    Windows AIK for Windows 7
    Windows PE 3
    None
    System Center 2012 Configuration Manager with SP1
    Windows ADK for Windows 8
    Windows PE 4
    None
    System Center 2012 Configuration Manager with SP1 and cumulative update 2
    Windows ADK for Windows 8
    Windows PE 4
    Windows PE 3.11
    System Center 2012 Configuration Manager with SP1 and cumulative update 3
    Windows ADK for Windows 8
    Windows PE 4
    Windows PE 3.11 and Windows PE 5
    System Center 2012 R2 Configuration Manager
    Windows ADK for Windows 8.1
    Windows PE 5
    Windows PE 3.11
    Please try to install the Windows ADK for Windows 8.
    http://www.microsoft.com/en-us/download/details.aspx?id=30652
    For more information, please review the link below:
    http://technet.microsoft.com/en-us/library/gg682187.aspx
    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.

  • Ugh: Error [0x800700a1] The specified path is invalid.

    I'm having the following problem. 
    Our backups are failing with the following error:
    In the backup logs, I find:
    Error in backup of D:\ during write: Error [0x800700a1] The specified path is invalid.
    Error in backup of D:\Perforce\ during write: Error [0x800700a1] The specified path is invalid.
    Error in backup of D:\Perforce\Database\ during write: Error [0x800700a1] The specified path is invalid.
    Error in backup of D:\Perforce\Database\p4s.exe during write: Error [0x800700a1] The specified path is invalid.
    In the event viewer, I find:
    The backup operation that started at '?2010?-?05?-?24T21:51:56.331072200Z' has failed with following error code '2155347997' (The operation ended before completion.). Please review the event details for a solution, and then rerun
    the backup operation once the issue is resolved.
    And on the command line, wbadmin returns:
    Found (41) files.
    The backup operation stopped before completing.
    Summary of the backup operation:
    The backup operation stopped before completing.
    Detailed error: Element not found.
    The backup of the system state failed [5/24/2010 5:23 PM].
    Log of files successfully backed up:
    C:\Windows\Logs\WindowsServerBackup\Backup-24-05-2010_14-51-56.log
    Log of files for which backup failed:
    C:\Windows\Logs\WindowsServerBackup\Backup_Error-24-05-2010_14-51-56.log
    The operation ended before completion.
    Element not found.
    ERROR(-3): Backup failed!
    This is very frustrating. 
    The more I use Windows built-in backup the more fragile it seems to be. 
    The D drive is a local drive and the path is valid. 
    Running check disk finds no problems.  The drive is mostly empty. 
    I tried with and without the anti-virus software, same problem. 
     There are no other server errors to indicate a problem with the drive or the path. 
    I ran vssadmin list writers, and none of them returned any errors. 
     Why would the backup return an invalid path error, for a path that is valid? 
    Any help would be greatly appreciated.
    Thanks much,
    James.

    Hi Sriram,
    Thanks for getting back to me!
    I'll try to mail them to you before the end of the week.
    A quick question:
     if the backup failed to find and copy a single file or directory (for whatever reason), why does it abort the whole process? 
    The file in question was not critical, so having it missing from the backup would only have been a minor inconvenience. 
    Obviously, you want to log such an event very clearly, but it does not make sense to me for it to kill the whole process... 
    Will this be improved in future versions?  I have to admit, I've not seen much backup software stop because of such a trivial error, except maybe "copy" from the command prompt.
    I think the built-in Window Server 2008 R2 backup software is very promising, and overall, I like it better than the old NT Backup crud. 
    However, from my limited use, it still seems rough around the edges; too many glitches and problems, something you don't want to see from your backup software.
    Thanks much,
    James. 

  • Specify Remote Folder - The specified path is not a remote shared folder

    I'm getting this error when I try to check a backup stored on a NAS.  When I attempt to recover from it, I pick "A backup stored on another location" then "Remote shared folder". 
    I put in the path: \\192.168.16.17\public\server\2014-01-24
    And what I get is the above error message: "The specified path is not a remote shared folder"
    The path clearly is a remote shared folder. If I paste it into explorer it opens fine, and I can copy/delete files from it.  What gives?

    That's correct; the folder I specified above contains the WindowsImageBackup folder.  I can access that folder fine in Explorer, but when I try to direct the backup to it it gives the error I mentioned: "The specified path is not a remote shared
    folder".
    Note that the error message you receive if you specify a folder which does not contain a WindowsImageBackup folder is "The specified remote shared folder does not contain a backup. Provide the path to a remote shared folder that contains backups."

  • Security.Cryptography - The specified path is invalid. while accessing the private key stored in LocalMachine store

    Hello,
    I have C# dll which is invoked through a C++ cgi executable which is deployed on apache 2.2. I am getting the following error when I am trying to access the private key of a certificate which is stored in the Localmachine store. It works fine while
    debugging in visual studio.
    It also works fine when I try to access the same certificate from the current user store through apache.
    I have tried running apache as "SYSTEM", even then I get the same error.
    I have followed the right process to import the certificate into the localmachine store through mmc. 
    Error Message:
    The specified path is invalid.
     caused by mscorlib
       at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
       at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
       at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
       at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)
       at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()
       at SamlImplLib.SamlImpl.GetSamlResponse(String sInParamXml, String sInAttrXml)
    The above error is not really helpful as it doesnt tell me which path is invalid as I am not passing any path in my code. I am just accessing the certificate through the X509Certificate2 store
    Thanks in advance

    Hi,
    This is probably because the worker process identity does not have read permission to the machine key store.
    And I agree with you. "The specified path is invalid" is a typical misleading message.
    You may need to clarify the difference between "SYSTEM- User" and "Current-user "through apache. Good Luck!
    Best regards,
    Kristin
    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.
    Click
    HERE to participate the survey.

Maybe you are looking for