Determining Mapped Drives Remotely

  • Thread starter Thread starter Branston
  • Start date Start date
B

Branston

OK here's the situation: A user's logon script was
deleted by accident. Oops. I couldn't remember what
network drives were assigned to her in this script. So, I
had to phone her to ask what drives were visible when she
double-clicked on her "My Computer" icon. Thankfully, she
had not re-started her computer since my blunder.

How could I have got this information remotely (from a
command prompt preferably)?
 
If it were me, I could have entered this:

rcmd \\compname "net use>C:\netuse.txt"
type \\compname\C$\netuse.txt

rcmd is the Remote Command tool from the Resource Kit. There are other
tools that exist.

Ray at work
 
-----Original Message-----
We use rcmd too Ray but I have the same problem if I use
it interactively or from within a script like the one you
posted: it always returns:

"New connections will be remembered.

There are no entries in the list."
 
Then I guess that user doesn't have any network drives. ? I see the
mappings when I do it just as I posted (but with a valid computername of
course...)

Ray at work
 
Branston wrote in
OK here's the situation: A user's logon script was
deleted by accident. Oops. I couldn't remember what
network drives were assigned to her in this script. So, I
had to phone her to ask what drives were visible when she
double-clicked on her "My Computer" icon. Thankfully, she
had not re-started her computer since my blunder.

How could I have got this information remotely (from a
command prompt preferably)?

Not your answer but
Restore from backup (the one you _must_ have) ;-)

Some remote solutions will not be using that User's account...
thus no drives mapped. Many "remote control" apps would work if
running in the User's context.

And if you are replicating scripts there may be some time lag beween
deletion on the "master" and subsequent file deletion on the
"import" server. That might save you some day.

2 cents
 
Back
Top