Questions tagged [unc]

A UNC path unambiguously specifies the location of a volume, directory, file or other local or remote resource on Windows.

On Windows, a UNC path specifies the location of a local or remote resource, including files, directories, volumes and more. UNC path generalize traditional file paths. A UNC path has the form \\Hostname\Folder\Resource. A UNCW path (long UNC) has the form \\?\UNC\Hostname\Folder\Resource.

593 questions
1
vote
0 answers

Access UNC from .net core 2.2

I need to read some files from UNC. That shouldn't be a problem for .net framework but in case of .net core 2.2 that seems like mission impossible. WindowsImpersonationContext is not supported by .net Core and impersonation done by some of the…
Radic
  • 41
  • 8
1
vote
1 answer

IIS Application Pool User can't access UNC drive

I have a VM running Windows 2012 R2, on which are running a web site, Rest API, and a couple of services. The services and Rest APIs need access to a specific UNC path, which requires a username and password to authenticate. So, I set up a User,…
LMS
  • 642
  • 6
  • 22
1
vote
0 answers

I have code that can access windows shared folder on remote machine in one part of code, but not other. What might I be missing?

I have a file share on another machine that can be accesses using UNC paths such as \\machine01\sharefldr\resources\hydrant.jpg In one part of my code, I am already accessing files in this location. I making a separate thing and wanted to access…
Eelke
  • 21
  • 6
1
vote
1 answer

StreamReader constructor prefixes UNC with working directory

I'm initializing a System.IO.StreamReader by passing a string which contains a UNC Path, but the StreamReader ctor is prefixing the UNC path with the working directory, resulting in a System.IO.DirectoryNotFoundException. The UNC path is stored in…
Methistemi
  • 35
  • 6
1
vote
1 answer

How to refresh unc path cache?

I've been experiencing the following issue. I have a database attached to a remote sql server. All needed impersonation actions are done - in other words I have all needed access to both file system and sql server. Let's say I have FileStreanDB1 sql…
isxaker
  • 8,446
  • 12
  • 60
  • 87
1
vote
2 answers

PowerShell Test-Path UNC Access Denied only via Scheduled Task

PowerShell 3 Windows 2012 Major Minor Build Revision 3 0 -1 -1 I have a few PowerShell scripts that were working for the last few years. Now they can't seem to run successfully via a Scheduled Task. If I manually run the…
Gemini
  • 109
  • 2
  • 15
1
vote
1 answer

How to pass unc credential in .net core

I need to save file on a unc location using .net core web api. The location could be accessed with correct username & password combo. Following piece of code does not work, I mean when I try to create directory.I am afraid I am not passing…
Gautam
  • 363
  • 1
  • 4
  • 15
1
vote
0 answers

UNC Path on os.system() not supported

I am trying to run a program from an os.system() that takes a number of command line arguments call. Some of these arguments point to directories on a network that obviously have a UNC path. Python interpreter is giving back the following: CMD.EXE…
arsenal88
  • 1,040
  • 2
  • 15
  • 32
1
vote
3 answers

Vim slow over UNC paths

I am experiencing some very painful lag when accessing directories/files over UNC paths using gVim 7.3 on Windows Vista. It is slow reading/writing files, as well as tab completiong of directory/file names when opening new buffers. I don't notice…
Mike
  • 11
  • 2
1
vote
0 answers

Check if Network Share(UNC Path) is accessable by windows service from Desktop Application

I'm installing the service as a remotemachine user in the same workgroup because the service running as localmachine user does not have rights to access a network location. I have a desktop application that sets the network location in the…
techno
  • 6,100
  • 16
  • 86
  • 192
1
vote
4 answers

Problem with Gradle and UNC path under Jenkins

Got this error after moving %JENKINS_HOME% to a UNC from a local directory. Any idea how to fix this? We use Windows server 2008 and it seems like there is no way to do hard link to a UNC under Server 2008. Has anyone ran into this problem? All…
hb5fa
  • 329
  • 2
  • 6
  • 17
1
vote
1 answer

File.OpenRead access using UNC path. Impersonation not working?

Is there a reason Impersonation does not seem to work with a UNC path using File.OpenRead()? I'm utilizing CodeProject's Impersonation utility: I have a user with rights to the share that I'm passing to OpenRead(). This is my code and it's not…
ghost_mv
  • 1,170
  • 4
  • 20
  • 43
1
vote
2 answers

Server.MapPath not accepting UNC URL

I'm having a bit of trouble loading an XML file with ASP. This is the location of the XML file (it's a UNC url): \\ilife104\teamdisk\Shared\Integration\System\dev\Data\prcImportFactSetFeeds\fileList.xml And this is my code: <% 'load the XML…
user179169
1
vote
1 answer

Batch file commands to remove files from network drive

I'm trying to remove application logs from shared drive for periodically, ForFiles /p "\\netapp-1\Transfers\Logs\QA" /s /d -15 /c "cmd /c del @file" The above command is working when the path is my local drive, but its not working for shared drive,…
King_Fisher
  • 1,171
  • 8
  • 21
  • 51
1
vote
2 answers

Include unc path in file size output from powershell

I'm very new to powershell. I have a txt file with a subset of UNC paths to directories that i need to determine the size of each of them. I've come up with the following which is working as intended but i have a couple of problems. FUNCTION…
phemor
  • 299
  • 6
  • 17