Im trying to take the conents of a folder and copy it to a another unis powershell 1.0. Pretty simple stuff and all works fine using Copy-Item $from $to -recurse if I am copying from a local folder to a local folder, however if the $to variable is a UNC path it seems to copy the $from directory, not just its contents
eg
$from = "c:\temp...
Hello,
I have a strange problem with some code that calls WNetGetUniversalName. When I call the function I always get error 67 (ERROR_BAD_NET_NAME). But the network connection really does exist.
So from the scratch. I'm writing a Windows shell extension that shall do some stuff with text files that are located on a specified network driv...
Hello
I want to copy/save file in php script from one Windows Server (source) to second Windows Server (dist). I cant use anonymous "Guest" account, I need to authorize on dist server by user and pass.
Have you any idea how to do this?
I tried to to this with UNC paths like this: "\path\to\dist\file.txt" but I cant force user authoriz...
Hi,
I have a C# exe that needs to be run using WMI and access a network share. However, when I access the share I get an UnauthorizedAccessException. If I run the exe directly the share is accessible. I am using the same user account in both cases.
There are two parts to my application, a GUI client that runs on a local PC and a backen...
Hi,
I need to open documents in the WebBrowser control (SL 4) which is located on a UNC share, i think it's not possible without installing something on the client box... (COM object, physical link...)
What do you think ?
...
Using C#, and given that the user enters in a unc path. Is there a way to verify that 2 months down the line, when I'm writing a file to the unc path, that it is the same machine as when he entered it?
i.e. I'm writing some sensitive information to the path, and want to stop someone from putting another machine on the network with the s...
I am writing an ASP application that will serve files to clients through the browser. The files are located on a file server that is available from the machine IIS is running on via a UNC path (\server\some\path).
I want to use something like the code below to serve the file. Serving files that are local to the machine IIS is running on...
I'm trying to connect to a remote password protected shared folder from a Windows service, which runs as LocalSystem account. It seems that the LocalSystem account is unable to directly access password-protected network shares using WNetAddConnection2() or similar calls.
Can anyone confirm this?
I've read that impersonating an administra...
To optimize builds between Windows and Linux (Ubuntu 10.04), I've got a UNC share of the source tree that is shared between systems, and all build output goes to local disk on each system. This mostly works great, as source updates and changes can quickly be tested on both systems, but there's one annoying limitation I can't find a way ...
Hi
How does one detect the action of adding/removing a UNC share? I basically just need to know if a share has been added/removed not details about the share itself. A working example would be greatly appreciated.
Thanks
SB
...
Hi
How does one programmatically create a UNC share from a known directory?
How does one revoke it programmatically?
I don't want the user to fiddle with the Share dialog. Additional info such as changing the share name, comment, user limit is also welcomed.
Thanks
SoulBlade
(Using Delphi 7)
...
I am trying to register a .Net 4.0 compiled binary using regasm utillity. This ComInterOp assemply has to be deployed on a network share, and trying to register from the share fails with the error "Cound not load file or assembly or one of the dependecies". (registration works if the binary is on a local drive). It may be Code access sec...
Hi,
I am trying to connect to a remote server using Plink tool. Both my local and remote machines are Windows. On remote server, I have OpenSSH server installed. I am able to run commands on remote machine but there is some problem with long UNC path, which I noticed today.
For example,
Working:
Plink -ssh -pw xxx user@server cmd.e...
Problem Scenario:
I want to access files [Images/Video] stored on different file server from SharePoint.
I have to two servers Server1 [Web Front End] and Server2 [File server with IIS]
Now i want to access images/video stored on file server from SharePoint.
e.g. let’s say we have video list in SharePoint, so when adding new item autho...
I have some code running in an asp.mvc app inside IIS 7. The code is supposed to save a file to a UNC share.
This function is called from some controller code, with the filePathname = "\MYSRV\sites\docs\10080003\egg.txt'
public void EnsureDocument(string filePathName ,string content,WindowsIdentity identity )
{
System.Security.Princi...
Not sure what i'm missing: I'm trying to access a unc share via irb on a Windows 2k8 machine:
irb(main):016:0> Dir.entries('\\server\share')
Errno::ENOENT: No such file or directory - \server\share
irb(main):017:0> Dir.entries('\\192.168.10.1\share')
Errno::ENOENT: No such file or directory - \192.168.10.1\share
Any hints?
Sven
...
For space reasons, we need to move some files off our main file/webserver to another network fileserver. However, the original file/webserver is still responsible for providing access to these files, so that everything is seamless to the users.
I can provide transparent file access by using DFS on the original server. I can also provi...