header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Get Root Drive on Server
Last Post 25 Aug 2010 07:54 AM by Alex. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
AlexUser is Offline
New Member
New Member
Posts:2
Avatar

--
24 Aug 2010 04:14 PM
    Hi, I need a way to determine the root drive of some directory which is located on a remote server. If I navigate to a directory on some server, is there anyway that I could find out the root drive on the server? If I do fullname it always gives me //servername/.. I have looked through Get-PSDrive, but it seems like it only gives information about my local machine.
    0ptikGhostUser is Offline
    Basic Member
    Basic Member
    Posts:296
    Avatar

    --
    24 Aug 2010 04:25 PM

    Does this help?

    $item = Get-Item -Path \\servername\C$\windows $item.Root $other = Get-Item -Path \\servername\share\folder\file $other.Root
    AlexUser is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    25 Aug 2010 07:54 AM
    Thanks for your feedback. Unfortunately it didn't help. The name of the root folder was just c$, it didnt actually get the real name of the previous folder not to mention the root drive. But I did find out that we have a server master page which has the configuration for all our servers, including the drives. I will be able to get what I need from there.
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer