Rob 的个人资料Virtually Aware日志列表 工具 帮助

日志


Volume GUIDs - Ways To View/Access The Files Within

I have been working with Volume GUIDs more and more in our Hyper-V implementation and there has been a little bit of a learning curve in viewing, modifying, deleting etc... the files that now live on this volume without a drive letter.  I haven't seen much out there on how to manage Volume GUIDs so I thought it would be a good topic for the blog. 

I have to plug Adam Fazio for leading to some of the info I have gained on this topic.

Like a normal volume, with a drive letter, there are 2 ways to view, modify, copy etc... files that reside therein. Explore in the GUI and Command line access.

 

Explorer View:  Just paste the Volume GUID in a RUN command.  This will give you the common Explorer view of your files that reside on the volume.

image

 

Command Line: dir \\?\Volume\\   i.e. dir \\?\Volume{fc247e42-0a5e-11dd-94db-001b785788b0}\\  The key to this one is to make sure you are using the second backslash at the end of the Volume GUID if you want to get to the root of the volume.  If you want to go to a known subfolder however all you need to do is \\?\Volume{fc247e42-0a5e-11dd-94db-001b785788b0}\FOLDERNAME.  No second backslash needed.

image

 

So this is a good step to being able to manage these types of volumes, but how do you get the Volume GUIDs.  In a webcast from Adam Fazio today he presented a Powershell script that displays all the Volume GUIDs on a local or remote server. [For remote, change localhost to a computer name or computer names. Separated by a comma.]

Get-WmiObject -class Win32_Volume -computername localhost | where-object {$_.name -like "\\?\*"} | select-object label, name, capacity, freespace | format-list

I have created a command file that runs this as a powershell script with a pause at the end to allow me to copy off the Volume GUID I am looking for.

NOTE:  Even though you can output all the Volume GUIDs of a remote server, at this time you cannot access the Volume  remotely. The above ways to access your Volume GUIDs can only be done from the localhost where they reside.

Hope this helps you out.

-Rob

评论

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。
McShinskyR​ob 在此页禁用了评论功能。

引用通告

此日志的引用通告 URL 是:
http://virtuallyaware.spaces.live.com/blog/cns!549C424F228D6040!189.trak
引用此项的网络日志