How does Powershell create fake drive labels in Windows?Is there a way to restart a service on a remote machine from a batch script?Multiple counts from Powershell Get-ChildItem?PowerShell create VHDPowershell A Drive C Does Not ExistDetermine and change filename encoding on Windowswindows fake disk drive spaceIs my PowerShell execution environment subtly corrupted?Command prompt disappears after a split second of launching the applicationPowershell - Create Volatile Registry key?Possible to use & join Long Path Variables in Batch file to call an EXE with those longer variables as command-line arguments? How?

Where can I find a database of galactic spectra?

How does metta sutra develop loving kindness

How was Hillel permitted to go to the skylight to hear the shiur

Has there been any indication at all that further negotiation between the UK and EU is possible?

Hand soldering SMD 1206 components

Why aren't cotton tents more popular?

How would modern naval warfare have to have developed differently for battleships to still be relevant in the 21st century?

Are all instances of trolls turning to stone ultimately references back to Tolkien?

Why do all the teams that I have worked with always finish a sprint without completion of all the stories?

What is the origin of Scooby-Doo's name?

If I wouldn't want to read the story, is writing it still a good idea?

How dangerous are set-size assumptions?

C-152 carb heat on before landing in hot weather?

How do I turn off a repeating trade?

Require advice on power conservation for backpacking trip

As a fresh graduate, should I get my first credit card?

Does Marvel have an equivalent of the Green Lantern?

Is this one of the engines from the 9/11 aircraft?

Did Karl Marx ever use any example that involved cotton and dollars to illustrate the way capital and surplus value were generated?

How to make clear to people I don't want to answer their "Where are you from?" question?

How do I set an alias to a terminal line?

How to create a Tetrix/Sierpinski Tetrahedron fractal radiating from 0,0,0 ? Python or nodes

What is the better way to use Optional in conditions?

Fedora boot screen shows both Fedora logo and Lenovo logo. Why and How?



How does Powershell create fake drive labels in Windows?


Is there a way to restart a service on a remote machine from a batch script?Multiple counts from Powershell Get-ChildItem?PowerShell create VHDPowershell A Drive C Does Not ExistDetermine and change filename encoding on Windowswindows fake disk drive spaceIs my PowerShell execution environment subtly corrupted?Command prompt disappears after a split second of launching the applicationPowershell - Create Volatile Registry key?Possible to use & join Long Path Variables in Batch file to call an EXE with those longer variables as command-line arguments? How?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















In Powershell (at least in Windows 10EE), certain parts of the system are exposed under a custom drive label. The two main examples I know are:




  1. HKLM: exposes the local machine's registry as a drive.


  2. $Env: exposes the environment variables like their own filesystem.

However, cmd and batch scripts are not able to see these drives.



So my questions are:



  • How does Powershell implement these fake drive labels?

  • Are they similar to mountpoints in Linux?

  • Are they using some kind of pseudo-filesystem under the hood?









share|improve this question







New contributor



Edward Minnix is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 2





    Read Get-Help New-PsDrive,Get-Help about_Providers or view online, about_Providers

    – LotPings
    8 hours ago












  • It has nothing to do with Drive Letter (it is obviously more than a single letter, ain't it?). It is more like internet protocols. http://, ftp:// and remember Windows Help in CHM (compiled HTML) format? There is a special protocol too, mk-itsf:// or something like that. Some programs in Linux utilize the same concept too, example Gnome VFS. On the filesystem level, there are no any "drive labels" in UNIX, at all. But exposing non-files in files tree is the basic idea of UNIX from 1970-s. In Linux too. DevFS, ProcFS, SysFS, FUSE. Also google about Plan9 OS that thinks UNIX does not do enough

    – Arioch 'The
    7 hours ago












  • What exactly is "Windows 10EE"?

    – Ramhound
    7 hours ago












  • @Ramhound Windows 10, Enterprise Edition

    – Edward Minnix
    4 hours ago











  • @EdwardMinnix - That is simply Windows 10 Enterprise. Referring to it as Windows 10 EE will confuse people.

    – Ramhound
    3 hours ago

















3















In Powershell (at least in Windows 10EE), certain parts of the system are exposed under a custom drive label. The two main examples I know are:




  1. HKLM: exposes the local machine's registry as a drive.


  2. $Env: exposes the environment variables like their own filesystem.

However, cmd and batch scripts are not able to see these drives.



So my questions are:



  • How does Powershell implement these fake drive labels?

  • Are they similar to mountpoints in Linux?

  • Are they using some kind of pseudo-filesystem under the hood?









share|improve this question







New contributor



Edward Minnix is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 2





    Read Get-Help New-PsDrive,Get-Help about_Providers or view online, about_Providers

    – LotPings
    8 hours ago












  • It has nothing to do with Drive Letter (it is obviously more than a single letter, ain't it?). It is more like internet protocols. http://, ftp:// and remember Windows Help in CHM (compiled HTML) format? There is a special protocol too, mk-itsf:// or something like that. Some programs in Linux utilize the same concept too, example Gnome VFS. On the filesystem level, there are no any "drive labels" in UNIX, at all. But exposing non-files in files tree is the basic idea of UNIX from 1970-s. In Linux too. DevFS, ProcFS, SysFS, FUSE. Also google about Plan9 OS that thinks UNIX does not do enough

    – Arioch 'The
    7 hours ago












  • What exactly is "Windows 10EE"?

    – Ramhound
    7 hours ago












  • @Ramhound Windows 10, Enterprise Edition

    – Edward Minnix
    4 hours ago











  • @EdwardMinnix - That is simply Windows 10 Enterprise. Referring to it as Windows 10 EE will confuse people.

    – Ramhound
    3 hours ago













3












3








3


1






In Powershell (at least in Windows 10EE), certain parts of the system are exposed under a custom drive label. The two main examples I know are:




  1. HKLM: exposes the local machine's registry as a drive.


  2. $Env: exposes the environment variables like their own filesystem.

However, cmd and batch scripts are not able to see these drives.



So my questions are:



  • How does Powershell implement these fake drive labels?

  • Are they similar to mountpoints in Linux?

  • Are they using some kind of pseudo-filesystem under the hood?









share|improve this question







New contributor



Edward Minnix is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











In Powershell (at least in Windows 10EE), certain parts of the system are exposed under a custom drive label. The two main examples I know are:




  1. HKLM: exposes the local machine's registry as a drive.


  2. $Env: exposes the environment variables like their own filesystem.

However, cmd and batch scripts are not able to see these drives.



So my questions are:



  • How does Powershell implement these fake drive labels?

  • Are they similar to mountpoints in Linux?

  • Are they using some kind of pseudo-filesystem under the hood?






windows powershell filesystems






share|improve this question







New contributor



Edward Minnix is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



Edward Minnix is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



Edward Minnix is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 8 hours ago









Edward MinnixEdward Minnix

1185 bronze badges




1185 bronze badges




New contributor



Edward Minnix is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Edward Minnix is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









  • 2





    Read Get-Help New-PsDrive,Get-Help about_Providers or view online, about_Providers

    – LotPings
    8 hours ago












  • It has nothing to do with Drive Letter (it is obviously more than a single letter, ain't it?). It is more like internet protocols. http://, ftp:// and remember Windows Help in CHM (compiled HTML) format? There is a special protocol too, mk-itsf:// or something like that. Some programs in Linux utilize the same concept too, example Gnome VFS. On the filesystem level, there are no any "drive labels" in UNIX, at all. But exposing non-files in files tree is the basic idea of UNIX from 1970-s. In Linux too. DevFS, ProcFS, SysFS, FUSE. Also google about Plan9 OS that thinks UNIX does not do enough

    – Arioch 'The
    7 hours ago












  • What exactly is "Windows 10EE"?

    – Ramhound
    7 hours ago












  • @Ramhound Windows 10, Enterprise Edition

    – Edward Minnix
    4 hours ago











  • @EdwardMinnix - That is simply Windows 10 Enterprise. Referring to it as Windows 10 EE will confuse people.

    – Ramhound
    3 hours ago












  • 2





    Read Get-Help New-PsDrive,Get-Help about_Providers or view online, about_Providers

    – LotPings
    8 hours ago












  • It has nothing to do with Drive Letter (it is obviously more than a single letter, ain't it?). It is more like internet protocols. http://, ftp:// and remember Windows Help in CHM (compiled HTML) format? There is a special protocol too, mk-itsf:// or something like that. Some programs in Linux utilize the same concept too, example Gnome VFS. On the filesystem level, there are no any "drive labels" in UNIX, at all. But exposing non-files in files tree is the basic idea of UNIX from 1970-s. In Linux too. DevFS, ProcFS, SysFS, FUSE. Also google about Plan9 OS that thinks UNIX does not do enough

    – Arioch 'The
    7 hours ago












  • What exactly is "Windows 10EE"?

    – Ramhound
    7 hours ago












  • @Ramhound Windows 10, Enterprise Edition

    – Edward Minnix
    4 hours ago











  • @EdwardMinnix - That is simply Windows 10 Enterprise. Referring to it as Windows 10 EE will confuse people.

    – Ramhound
    3 hours ago







2




2





Read Get-Help New-PsDrive,Get-Help about_Providers or view online, about_Providers

– LotPings
8 hours ago






Read Get-Help New-PsDrive,Get-Help about_Providers or view online, about_Providers

– LotPings
8 hours ago














It has nothing to do with Drive Letter (it is obviously more than a single letter, ain't it?). It is more like internet protocols. http://, ftp:// and remember Windows Help in CHM (compiled HTML) format? There is a special protocol too, mk-itsf:// or something like that. Some programs in Linux utilize the same concept too, example Gnome VFS. On the filesystem level, there are no any "drive labels" in UNIX, at all. But exposing non-files in files tree is the basic idea of UNIX from 1970-s. In Linux too. DevFS, ProcFS, SysFS, FUSE. Also google about Plan9 OS that thinks UNIX does not do enough

– Arioch 'The
7 hours ago






It has nothing to do with Drive Letter (it is obviously more than a single letter, ain't it?). It is more like internet protocols. http://, ftp:// and remember Windows Help in CHM (compiled HTML) format? There is a special protocol too, mk-itsf:// or something like that. Some programs in Linux utilize the same concept too, example Gnome VFS. On the filesystem level, there are no any "drive labels" in UNIX, at all. But exposing non-files in files tree is the basic idea of UNIX from 1970-s. In Linux too. DevFS, ProcFS, SysFS, FUSE. Also google about Plan9 OS that thinks UNIX does not do enough

– Arioch 'The
7 hours ago














What exactly is "Windows 10EE"?

– Ramhound
7 hours ago






What exactly is "Windows 10EE"?

– Ramhound
7 hours ago














@Ramhound Windows 10, Enterprise Edition

– Edward Minnix
4 hours ago





@Ramhound Windows 10, Enterprise Edition

– Edward Minnix
4 hours ago













@EdwardMinnix - That is simply Windows 10 Enterprise. Referring to it as Windows 10 EE will confuse people.

– Ramhound
3 hours ago





@EdwardMinnix - That is simply Windows 10 Enterprise. Referring to it as Windows 10 EE will confuse people.

– Ramhound
3 hours ago










1 Answer
1






active

oldest

votes


















4














In PowerShell, those are called PSProviders




PowerShell providers are Microsoft .NET Framework-based programs that
make the data in a specialized data store available in PowerShell so
that you can view and manage it.




cmd / batch is not .NET Framework based, that's why they can't use them.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "3"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    Edward Minnix is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1451036%2fhow-does-powershell-create-fake-drive-labels-in-windows%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    In PowerShell, those are called PSProviders




    PowerShell providers are Microsoft .NET Framework-based programs that
    make the data in a specialized data store available in PowerShell so
    that you can view and manage it.




    cmd / batch is not .NET Framework based, that's why they can't use them.






    share|improve this answer



























      4














      In PowerShell, those are called PSProviders




      PowerShell providers are Microsoft .NET Framework-based programs that
      make the data in a specialized data store available in PowerShell so
      that you can view and manage it.




      cmd / batch is not .NET Framework based, that's why they can't use them.






      share|improve this answer

























        4












        4








        4







        In PowerShell, those are called PSProviders




        PowerShell providers are Microsoft .NET Framework-based programs that
        make the data in a specialized data store available in PowerShell so
        that you can view and manage it.




        cmd / batch is not .NET Framework based, that's why they can't use them.






        share|improve this answer













        In PowerShell, those are called PSProviders




        PowerShell providers are Microsoft .NET Framework-based programs that
        make the data in a specialized data store available in PowerShell so
        that you can view and manage it.




        cmd / batch is not .NET Framework based, that's why they can't use them.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 8 hours ago









        SimonSSimonS

        3,1293 gold badges12 silver badges24 bronze badges




        3,1293 gold badges12 silver badges24 bronze badges




















            Edward Minnix is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            Edward Minnix is a new contributor. Be nice, and check out our Code of Conduct.












            Edward Minnix is a new contributor. Be nice, and check out our Code of Conduct.











            Edward Minnix is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1451036%2fhow-does-powershell-create-fake-drive-labels-in-windows%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

            Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

            Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її