network-drive

Powershell New-PSDrive Persist Between Login

余生长醉 提交于 2021-01-27 17:26:42
问题 I am using New-PSDrive to map network drives. My issue is that despite using the -Persist and -Scope Global parameters the drives no longer show up at the next Windows login for the user. The drives require credentials to access which I pass into the New-PSDrive command. I can see that the drives still exist after a logout and login by using net use at the command line, but the drives are not available. I believe what might be occurring is that Windows does not store the credentials and

Powershell New-PSDrive Persist Between Login

大兔子大兔子 提交于 2021-01-27 17:17:32
问题 I am using New-PSDrive to map network drives. My issue is that despite using the -Persist and -Scope Global parameters the drives no longer show up at the next Windows login for the user. The drives require credentials to access which I pass into the New-PSDrive command. I can see that the drives still exist after a logout and login by using net use at the command line, but the drives are not available. I believe what might be occurring is that Windows does not store the credentials and

Can't import dump from mapped net drive using data pump

我只是一个虾纸丫 提交于 2020-01-07 03:52:07
问题 I'm trying to import few users from .dmp file from a net drive. Unofrtunately it seems that I lack some rights to do so since I get ORA-39001: invalid argument value ORA-39000: bad dump file specification ORA-31640: unable to open dump file "\\net\drive\directory\placeholder\my_dump.dmp" for read ORA-27041: unable to open file OSD-04002: unable to open file O/S-Error: (OS 5) Access is denied. I'm not sure why, because I can both access that directory, and for example save a txt file there.

Why doesn't my program recognize mapped UNC paths?

筅森魡賤 提交于 2020-01-03 12:31:09
问题 I have some problems writing to a mapped network drive (P:) in Windows 7 from my Delphi program. When I try, for example, ForceDirectories('P:\test\folder') , I get an error (path not found). I have tried typing in the UNC path in the code ( ForceDirectories('\\computername\share\test\folder') ) and that works. However, ExpandUNCFileName('P:\') does not seem to work; it returns 'P:\'. On Windows XP, ExpandUNCFileName('P:\') returns the UNC path. How do I get the UNC path in Delphi on Windows

Grant IIS Express permission to access network drive in VMWare

淺唱寂寞╮ 提交于 2020-01-03 09:57:29
问题 I have a Windows 7 virtual machine in VMWare that I'm using to develop ASP.NET MVC 5 Web applications with the default IIS Express server. I like to keep my projects saved on an external hard drive which I can access in the virtual machine through a shared folder / network drive. However, when I run my applications, IIS Express cannot access my web.config files in the project directory. It's looking in the right folder so I'm pretty sure this is a permissions issue. How can I grant IIS

Rename a mapped drive with shell API

荒凉一梦 提交于 2019-12-23 17:34:48
问题 How can I change the friendly name of a mapped drive using the Windows shell API and C#? My actual problem is that I am dealing with a disconected network drive without a UNC path, so the only way to rename it is from Explorer, but I want to do that programmatically. 回答1: I had a similar problem and solved it using the following code: Shell32.Shell shell = new Shell32.Shell(); ((Shell32.Folder2)shell.NameSpace("X:")).Self.Name = "Friendly Label"; With a reference to COM --> Microsoft Shell

Accessing a file on a network drive

时间秒杀一切 提交于 2019-12-20 12:23:28
问题 Background: I have an application that has to read from files on a network drive (Z:) This works great in my office domain, however it does not work on site (in a different domain). As far as I can tell the domain users and network drives are set in the same way, however I do not have access to users etc in the customers domain. When I couldn't access the network drive I figured I needed a token for a user. This is how I impersionate the user: [DllImport("advapi32.dll", SetLastError = true,

pywintypes.error: (50, 'GetFileSecurity', 'The request is not supported.') while using Jupyter Notebook on network drive

笑着哭i 提交于 2019-12-19 10:32:24
问题 I am currently trying to use a combination of miniconda + jupyter (installed with pip) on a network drive and I get the following error: pywintypes.error: (50, 'GetFileSecurity', 'The request is not supported.') I am currently working in a corporate set-up, so we are working with some limitations regarding access rights. Unfortunately, I can only try jupyter on network drives, changes to the local hard drive requires admin rights which I don't have. The full error output: Traceback (most

How to create MAP Drive by batch file

霸气de小男生 提交于 2019-12-19 10:15:28
问题 often i have to create map drive where i specify machine and user credential. now i like to know can we write a batch file which will create map drive and where i provide all details like pc and folder location and user credentials etc. i got one as follows but i think this is not one which i require. please guide me. thanks net use \\<network-location>\<some-share>\ password /USER:username @echo Create new L: drive mapping @net use L: \\network path /persistent:yes @echo Create new K: drive