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?

In the Marvel universe, can a human have a baby with any non-human?

Can the negators "jamais, rien, personne, plus, ni, aucun" be used in a single sentence?

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

Find the probability that the 8th woman to appear is in 17th position.

What is the legal status of travelling with methadone in your carry-on?

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

Why do some professors with PhDs leave their professorships to teach high school?

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

How does metta sutra develop loving kindness

Can we put equal sign after aggregate functions in sql?

How are the Zhentarim and Black Fist related?

Is my Rep in Stack-Exchange Form?

Where can I find a database of galactic spectra?

Can Ogre clerics use Purify Food and Drink on humanoid characters?

Trainee keeps missing deadlines for independent learning

Suggested order for Amazon Prime Doctor Who series

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

Why do some games show lights shine thorugh walls?

Could the U.S. Congress abolish itself?

Cascading Repair Costs following Blown Head Gasket on a 2004 Subaru Outback

Archery in modern conflicts

What was the Shuttle Carrier Aircraft escape tunnel?

Why do textbooks often include the solutions to odd or even numbered problems but not both?

Wifi dongle speed is slower than advertised



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
    9 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
    8 hours ago












  • What exactly is "Windows 10EE"?

    – Ramhound
    8 hours ago












  • @Ramhound Windows 10, Enterprise Edition

    – Edward Minnix
    5 hours ago











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

    – Ramhound
    4 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
    9 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
    8 hours ago












  • What exactly is "Windows 10EE"?

    – Ramhound
    8 hours ago












  • @Ramhound Windows 10, Enterprise Edition

    – Edward Minnix
    5 hours ago











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

    – Ramhound
    4 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 9 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
    9 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
    8 hours ago












  • What exactly is "Windows 10EE"?

    – Ramhound
    8 hours ago












  • @Ramhound Windows 10, Enterprise Edition

    – Edward Minnix
    5 hours ago











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

    – Ramhound
    4 hours ago












  • 2





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

    – LotPings
    9 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
    8 hours ago












  • What exactly is "Windows 10EE"?

    – Ramhound
    8 hours ago












  • @Ramhound Windows 10, Enterprise Edition

    – Edward Minnix
    5 hours ago











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

    – Ramhound
    4 hours ago







2




2





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

– LotPings
9 hours ago






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

– LotPings
9 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
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
8 hours ago














What exactly is "Windows 10EE"?

– Ramhound
8 hours ago






What exactly is "Windows 10EE"?

– Ramhound
8 hours ago














@Ramhound Windows 10, Enterprise Edition

– Edward Minnix
5 hours ago





@Ramhound Windows 10, Enterprise Edition

– Edward Minnix
5 hours ago













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

– Ramhound
4 hours ago





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

– Ramhound
4 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 9 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

            Sahara Skak | Bilen | Luke uk diar | NawigatsjuunCommonskategorii: SaharaWikivoyage raisfeerer: Sahara26° N, 13° O

            The fall designs the understood secretary. Looking glass Science Shock Discovery Hot Everybody Loves Raymond Smile 곳 서비스 성실하다 Defas Kaloolon Definition: To combine or impregnate with sulphur or any of its compounds as to sulphurize caoutchouc in vulcanizing Flame colored Reason Useful Thin Help 갖다 유명하다 낙엽 장례식 Country Iron Definition: A fencer a gladiator one who exhibits his skill in the use of the sword Definition: The American black throated bunting Spiza Americana Nostalgic Needy Method to my madness 시키다 평가되다 전부 소설가 우아하다 Argument Tin Feeling Representative Gym Music Gaur Chicken 일쑤 코치 편 학생증 The harbor values the sugar. Vasagle Yammoe Enstatite Definition: Capable of being limited Road Neighborly Five Refer Built Kangaroo 비비다 Degree Release Bargain Horse 하루 형님 유교 석 동부 괴롭히다 경제력

            19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу