Using Net Use on a remote machine

rahul1911

Member
Hello All,

I have a situation where I need to map a network drive on a remote server so that a scheduled installation can tale place from the mapped drive. For scheduling the installation I used the Schtasks.exe which has an option to create the scheduled task on a remote machine too using :

Schtasks.exe /create /S <remote computer name>

What I am interested in knowing is if there is any EXE file that can help me map a network drive on a remote computer in the same manner as schtasks.exe as there is no option for doing it in net.exe that is used for mapping a network drive. To avoid confusion let me put up :

machine that I want to map the network drive upon : ABC
Server on which i need to map the network drive upon : XYZ
Network path to be mapped : \\PQR
 

My Computer

Hi rahul1911,

The procedure should be possible. Here's a tutorial that may help as it contains additional commands and addresses share issues: How-To Map a Network Drive using Windows 7, Vista or Windows Server 2008.

I hope this helps. If not, check to make sure the server is sharing properly and that permissions are set to allow this to occur (you aren't prohibited from Group Policy or Active Directory) and/or that you are using an appropriate username and/or password if required.

Good luck!
 

My Computer

System One

  • Manufacturer/Model
    Dell Inc. MP061 Inspiron E1705
    CPU
    2.00 gigahertz Intel Core 2 Duo 64 kilobyte primary memory
    Motherboard
    Board: Dell Inc. 0YD479 Bus Clock: 166 megahertz
    Memory
    2046 Megabytes Usable Installed Memory
    Graphics Card(s)
    ATI Mobility Radeon X1400 (Microsoft Corporation - WDDM) [Di
    Sound Card
    SigmaTel High Definition Audio CODEC
    Monitor(s) Displays
    Generic PnP Monitor (17.2"vis)
    Screen Resolution
    1920 x 1200 pixels
    Hard Drives
    Hitachi HTS541616J9SA00 [Hard drive] (160.04 GB) -- drive 0, s/n SB2411SJGLLRMB, rev SB4OC74P, SMART Status: Healthy
    Case
    Chassis Serial Number: 5YK95C1
    Keyboard
    Standard PS/2 Keyboard
    Mouse
    Logitech HID-compliant Cordless Mouse
    Internet Speed
    1958 Kbps download ; 754.8 Kbps upload
    Other Info
    Optiarc DVD+-RW AD-5540A ATA Device [CD-ROM drive]

    Dell AIO Printer A940

    Conexant HDA D110 MDC V.92 Modem

    6TO4 Adapter
    Broadcom 440x 10/100 Integrated Controller
    Broadcom 802.11n Network Adapter
    Microsoft ISATAP Adapter
    Teredo Tunneling Pseudo-Interface

    Router Linksys / WRT54G -01

My Computer

System One

  • Manufacturer/Model
    Dell XPS420
    Memory
    6 gig
    Graphics Card(s)
    ATI Radeon HD3650 256 MB
    Sound Card
    Intergrated 7.1 Channel Audio
    Monitor(s) Displays
    Dell SP2009W 20 inch Flat Panel w Webcam
    Hard Drives
    640 gb
    Cooling
    Fan
    Keyboard
    Dell USB
    Mouse
    Dell USB 4 button optical
    Other Info
    DSL provided by ATT
Hello All,

The links that you provided are very much helpful, but my issue is a bit different, as mentioned in my post I do not want to map the drive on my machine that I am using for executing the Net Use command instead I need to map it onto a remote server so that a scheduled task can use that mapped drive and install a software.

As mentioned earlier :

server on which I want to run the command : ABC
server on which I want to map the network path : XYZ
and the network path is : \\PQR
 

My Computer

Let me try to put up the actual task that I need to carry out.

I need to do patching on 400+ servers using an automated procedure. This would involve running of a installer file on the servers at specified time using Windows scheduler tasks.

Now I have already automated the part about creating the Scheduled tasks on every server. I used the schtaksks.exe utility for the same. I used a for loop to run the job creation command 400+ times and a scheduled task was created on every server.

What I now require is to have the Network path containing the installer file mapped on every server so that the scheduled task can run the file from the mapped drive. I have already tried to run the file from the same network path without mapping it but it does not work. So the only option I have is to map the installer file network path on every server and then run it.

As the number of servers is 400+ it would not be possible to do it manually so I am looking forward to a utility that can help me map the same network path on every one of those 400+ servers.

Anyone has any ideas how I can do it :(
 

My Computer

Back
Top