Questions tagged [drive-mapping]
40 questions
1
vote
1 answer
How to obtain UNC drive info on "Disconnected Network Drive"
We run some processes in a distributed computing environment. Processes on one machine need to communicate information with processes on other machines. One of those piecies of information is the location of certain files. Thus, a process on one…

David I. McIntosh
- 2,038
- 4
- 23
- 45
0
votes
1 answer
how to map on a local pc from a server using php
I am working on a project that will enable user to launch tools from a webpage. the page is designed using php. I have WAMP server installed on the my PC and I can click a button to create and write a new batch file on the C drive with the path of…

blackStar
- 339
- 4
- 8
- 18
0
votes
0 answers
Powershell - Remapping shortcuts based on new drive letters
We're currently in the process of remapping all network drives to a new fileserver and with this, took it upon ourselves to map all of the fileshares to a uniform system (ex. everyone's public drive is Z:). With this, several people have shortcuts…

Bcesare
- 1
0
votes
0 answers
Automatically create drive mappings for available network shares
Current script is:
cmdkey /add:(name of my NAS) /user:network\(username on NAS) /pass:(password for username on NAS)
New-PSDrive -Name "E" -Root "\\(name of my NAS)\(name of shared folder)" -Persist -PSProvider "FileSystem"
This will map one of the…
0
votes
0 answers
C++ Problem not return network drive (Z:/) , with running the program in RunAsAdmin mode
I have written a program to display the available drives.
I want this program to work on all versions of Windows.
I have a problem, when I run the program with RunAsAdministrator, it does not display the sharing drive. How can I solve this…
0
votes
0 answers
Mapping drives between V-Nets and Different Domains
Our setup is two domains.
V-Nets 10.50.0.0/24 and 10.51.0.0/24 are part of the D2MSAZ.COM domain
V-Net 10.54.0.0/24 is in the D2MSAZ2.COM domain
Separate Domains/Forests.
User accounts in D2MSAZ are “last name+First Initial”
User accounts in D2MSAZ2…

Seth
- 23
- 4
0
votes
1 answer
powershell to create mapped drive on gpo
I am trying to automate a process using powershell and as part of that process I want to create a new drive map on a group policy object
The image shows how it is done manually with the group policy management editor
manual method
I have tried using…

Stephen
- 11
- 4
0
votes
0 answers
Opening a drive in Explorer after mapping it
I've been trying to wrap my brain around this behaviour for a while.
I have a PowerShell script within a module that's supposed to map a drive, then open it in file explorer.
The mapping part works, but it falls over when trying to open the drive…

Nikolai Allen
- 33
- 5
0
votes
1 answer
Does a drive mapping stay mapped if a different user logs onto a PC
So I want to be able to map a drive but when I log out of the PC and someone else logs, I want that drive to still stay mapped.
Is this possible?

J. Hilton
- 15
- 3
0
votes
1 answer
Batch script to map between 2 locations
So I map a drive to T \server01\tfolder
I need a script which does the following
If T is mapped to \server01\tfolder then map it to server02\tolder. But if drive is mapped to \server02\tfolder then map it to \server01\tfolder
I am using an else…

user4576475
- 13
- 1
- 4
0
votes
0 answers
Programmatically Mapping Network Drives on Windows 10
I maintain a drive mapping utility where I work. It's only real purpose is to map network drives. It's been around for a while and has been updated through the years, as operating systems are upgraded. The code for mapping the drives is:
…

Scott
- 1,370
- 2
- 9
- 16
0
votes
1 answer
Re-using a mapped drive letter but path in windows copy/move dialog always displays path of first mapping
I have written a program in Delphi 10.2 Tokyo to archive users' home folders. The folders are archived after the users' accounts have been deleted from Active Directory. I am using the Windows IFileOperation to do the folder moves. As the program…

Tad Adams
- 175
- 2
- 10
0
votes
0 answers
Drive mapping unavailable when added via registry
I want to add drive mapping from my c# app for specific user on remote machine. I'm trying to do it by adding new registry key.
When I add new drive mapping in registry, adding new key in:
HKEY_USERS\< USER >\Network
so, for example, to map…

Jac Mos
- 7,746
- 4
- 15
- 21
0
votes
1 answer
Using local shares in place of drive letters possible?
I see cautions about treating network drives as looking like lettered drive. Can you turn it on its head?
So. What are the cautions about mapping a drive to a your-choice-of-name share in the usual way. For example share name "01-D-drive". In file…

dave boyd
- 1
- 1
0
votes
3 answers
How to create PSDrive using credentials?
When I connect to shared "\\ip_address\" folder without using credentials I connect successfully:
$driveInfo = New-PSDrive `
-Name $driveName `
-PSProvider "FileSystem" `
-Root $targetDirectory `
-Scope "Script"
When I specify credentials…

Egor Okhterov
- 478
- 2
- 9
- 34