+ Post New Thread
Results 1 to 6 of 6
Coding Thread, PSExec with Windows 2008 Server and Mapped Drives in Coding and Web Development; I am running a C# program on one machine that launches programs on that machine and other remote machines. I ...
  1. #1

    Join Date
    May 2013
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    PSExec with Windows 2008 Server and Mapped Drives

    I am running a C# program on one machine that launches programs on that machine and other remote machines. I am using psexec to start up the programs on the other machines. The problem is that those programs on the other machines have to access mapped drives to get infomation on how they work. I am using the following format

    psexec -u username -p password -i 0 -d \\remote computer - w "working directory" cmd "program name"

    when I use

    psexec -u username -p password -i 0 -d \\remote computer net use

    all the remote drives are unavailable.

    I am using the same user name and password with psexec that the drives were created under.

    Any suggestions?

  2. #2

    Join Date
    Jul 2012
    Location
    Boerne Texas USA
    Posts
    45
    Thank Post
    0
    Thanked 9 Times in 9 Posts
    Rep Power
    6
    Don't use mapped drives.

  3. #3
    dwhyte85's Avatar
    Join Date
    Mar 2009
    Location
    Berkshire
    Posts
    1,212
    Thank Post
    155
    Thanked 146 Times in 131 Posts
    Rep Power
    102
    -e will load the user profile, this may then map the drives and be usable - worth a shot?

  4. #4

    Join Date
    May 2013
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    The problem is the program on the other machines get data from a central point which tells them to run data on one of multiple drives. There is no possibility not to use mapped drives.

  5. #5


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,717
    Thank Post
    220
    Thanked 2,616 Times in 1,927 Posts
    Rep Power
    777
    Quote Originally Posted by IrishQA View Post
    Any suggestions?
    Would symbolic links work?

    Code:
    mklink /D "%SystemDrive%\SymLinks\PC1" "\\PC1\Share"
    mklink /D "%SystemDrive%\SymLinks\PC2" "\\PC2\Share"
    mklink /D "%SystemDrive%\SymLinks\PC3" "\\PC3\Share"
    Code:
    psexec -d "%SystemDrive%\SymLinks\PC1\Program1.exe"
    psexec -d "%SystemDrive%\SymLinks\PC2\Program2.exe"
    psexec -d "%SystemDrive%\SymLinks\PC3\Program3.exe"

  6. #6

    Join Date
    May 2013
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    The program that psexec is calling is in c drive. While it is working it gets paths where data is being sent to it, telling it to run data at certain locations on that computer's mapped drives.

SHARE:
+ Post New Thread

Similar Threads

  1. [Windows Software] Windows 2008 Server Student Access Licence
    By adamf in forum Licensing Questions
    Replies: 4
    Last Post: 4th February 2010, 04:51 PM
  2. Sharepoint 2007 SP1 and Windows 2008 Server
    By wesleyw in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 10th August 2009, 11:37 AM
  3. Replies: 1
    Last Post: 17th November 2008, 02:28 PM
  4. VB Scrips and mapped drives
    By cookie_monster in forum Windows
    Replies: 4
    Last Post: 7th July 2008, 01:44 PM
  5. Problems with Windows Storage Server.
    By maniac in forum Windows
    Replies: 12
    Last Post: 11th July 2007, 07:44 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •