Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Access to \\?GlobalRoot paths?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 10-06-2006   #1 (permalink)
=?Utf-8?B?ZGF2aWQuamFkZQ==?=
Guest


 

Access to \\?GlobalRoot paths?

It seems that PowerShell does not allow access to \\?\GlobalRoot\Device
paths. This is really useful if you are trying to use the Volume Shadow copy
service on Windows XP, especially with the vshadow.exe from the VSS SDK. On
anything other that Server 2003 you can only create temporary shadow copies
and the only way to access them is via \\?\GlobalRoot paths.

As an example, this fails in PowerShell:
get-childitem \\?\globalroot\device\harddisk0\partition1\

It seems that these paths are just being blocked internally and returning
this msg:

"Get-ChildItem : Paths that begin with \\?\GlobalRoot are internal to the
kernel and should not be opened by managed applications."

That seems a little too restrictive, especially for a tool that is meant for
system admin tasks. Are there any plans to address this?

thanks,
david

My System SpecsSystem Spec
Old 10-06-2006   #2 (permalink)
Lee Holmes [MSFT]
Guest


 

Re: Access to \\?GlobalRoot paths?

This is a feature of the .NET Framework, which we use to open files:

[C:\temp]
PS:26 > new-object System.IO.FileInfo "\\?\GlobalRoot"
New-Object : Exception calling ".ctor" with "1" argument(s): "Paths that
begin with \\?\GlobalRoot are internal to the
kernel and should not be opened by managed applications."
At line:1 char:11
+ new-object <<<< System.IO.FileInfo "\\?\GlobalRoot"
--
Lee Holmes [MSFT]
Windows PowerShell Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.

"david.jade" <davidjade@discussions.microsoft.com> wrote in message
news:1F2976AF-10F9-4395-9607-5CBD28088964@microsoft.com...
> It seems that PowerShell does not allow access to \\?\GlobalRoot\Device
> paths. This is really useful if you are trying to use the Volume Shadow
> copy
> service on Windows XP, especially with the vshadow.exe from the VSS SDK.
> On
> anything other that Server 2003 you can only create temporary shadow
> copies
> and the only way to access them is via \\?\GlobalRoot paths.
>
> As an example, this fails in PowerShell:
> get-childitem \\?\globalroot\device\harddisk0\partition1\
>
> It seems that these paths are just being blocked internally and returning
> this msg:
>
> "Get-ChildItem : Paths that begin with \\?\GlobalRoot are internal to the
> kernel and should not be opened by managed applications."
>
> That seems a little too restrictive, especially for a tool that is meant
> for
> system admin tasks. Are there any plans to address this?
>
> thanks,
> david



My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare paths RickB PowerShell 4 04-30-2008 07:16 AM
Certification paths AlBruAn .NET General 1 04-22-2008 08:53 AM
Looking for function to resolve VirtualStore paths to physical paths Scott Vista file management 9 07-08-2007 02:07 PM
Looking for function to resolve VirtualStore paths to physical paths Scott Vista General 9 07-08-2007 02:07 PM
access to \\?\GlobalRoot\Device paths? =?Utf-8?B?ZGF2aWQuamFkZQ==?= PowerShell 0 10-06-2006 03:29 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008