Windows 10: How to list folder properties using Powershell

Discus and support How to list folder properties using Powershell in Windows 10 Support to solve the problem; I have this bit of Powershell code that will list all the folder property friendly names, but I can't figure out how to get a list with the associated... Discussion in 'Windows 10 Support' started by LesFerch, May 15, 2021.

  1. LesFerch Win User

    How to list folder properties using Powershell


    I have this bit of Powershell code that will list all the folder property friendly names, but I can't figure out how to get a list with the associated system properties. Code: $Folder = (New-Object -ComObject Shell.Application).NameSpace("C:\") 0..400 | ForEach { If ($DataValue = $Folder.GetDetailsOf($null, $_)) { Write-Output "$DataValue" } } The code above outputs a list like this: Code: Name Size Item type Type Date modified Date created Date accessed Attributes Owner Folder path ... I want to get a list like this: Code: System.ItemNameDisplay, Name System.Size, Size System.ItemType, Item type System.ItemTypeText, Type System.DateModified, Date modified System.DateCreated, Date created System.DateAccessed, Date accessed System.FileAttributes, Attributes System.FileOwner, Owner System.ItemFolderPathDisplay, Folder path ... Any help would be much appreciated!

    :)
     
    LesFerch, May 15, 2021
    #1
  2. LesFerch Win User

    How to list folder properties using Powershell

    I have this bit of Powershell code that will list all the folder property friendly names, but I can't figure out how to get a list with the associated system properties.
    Code:
    The code above outputs a list like this:

    Code:
    I want to get a list like this:

    Code:
    Any help would be much appreciated!
     
    LesFerch, May 15, 2021
    #2
  3. LesFerch Win User
    How to list folder properties using Powershell

    @KeithM We get 308 properties from shell.application, which match the right-click, "More" list in Explorer. The FolderTypes key unfortunately has only about 78 of those properties listed.

    Using the output from PropertySystemView, I'm currently getting a perfect match of the 308 properties to the display names, using the "readable" field as a secondary check and using elimination to ensure I don't pick the same property twice for a duplicate display name. I've tested on a few different languages now with no issues.

    It would be nice to leverage the code from that CodeProject link, but my kung fu isn't good enough to make that happen, so I'll have to be content with my hacked up solution. Fortunately, I don't need this to work in real time. I'm creating the tables ahead of time and saving them as Unicode text files in a "Language" folder. I suppose the data could be used in real time with the right code. Future enhancement, I suppose...
     
    LesFerch, May 15, 2021
    #3
  4. How to list folder properties using Powershell

    Downloads folder is the Documents folder

    Hi Chris,

    Thank you for posting your query on Microsoft Community.

    I suggest you to Restore to Default the folders and document settings and see if it helps.

    Step 1:

    Please follow below steps and check if it helps.

    • Go to Download folder.
    • Right click on the Download Folder and go to Properties.
    • In Properties go to Location tab.
    • In location Tab Click on Restore Default.


    Step 2:

    Please follow below steps and check if it helps.

    • Go to Documents folder.
    • Right click on the Document folder and go to Properties.
    • In Properties go to Location tab.
    • In location Tab Click on Restore Default.
    After performing above steps change the settings as you required and check if it helps.

    Hope these information helps, please get back to us for future support, we’ll be glad to assist you further.

    Thank you.
     
    Prabhavathi Patil, May 15, 2021
    #4
Thema:

How to list folder properties using Powershell

Loading...
  1. How to list folder properties using Powershell - Similar Threads - list folder properties

  2. How to list folder properties using Powershell

    in Windows 10 Performance & Maintenance
    How to list folder properties using Powershell: I have this bit of Powershell code that will list all the folder property friendly names, but I can't figure out how to get a list with the associated system properties. Code: $Folder = (New-Object -ComObject Shell.Application).NameSpace("C:\") 0..400 | ForEach { If...
  3. Deleting multiple items from a list, using Powershell?

    in Windows 10 Network and Sharing
    Deleting multiple items from a list, using Powershell?: Okay, so I have some files which have multiple hard links each. If I wanted to get rid of them permanently, I'd have to not only delete the original filename, but all of its hard linked filenames too. So I know how to obtain all of these hard links, I can use the fsutil...
  4. How to list computer BIOS settings using the GetBIOS PowerShell module

    in Windows 10 News
    How to list computer BIOS settings using the GetBIOS PowerShell module: [ATTACH]With a PowerShell module dubbed GetBIOS, you can list settings from different BIOS manufacturers […] This article How to list computer BIOS settings using the GetBIOS PowerShell module first appeared on TheWindowsClub.com. read more...
  5. Folder Properties

    in Windows 10 Network and Sharing
    Folder Properties: I'm unable to change the properties on any of my folders within Windows 10. As an example I have hundreds of music folders so I'd like to optimise them for Music, but can't change them from the 'General' default. This must have been triggered by an update at some point as I...
  6. Adding a language from the language list using PowerShell

    in Windows 10 Customization
    Adding a language from the language list using PowerShell: Hello everyone! I have this problem, I'm learning PowerShell at school and we had to use PowerShell to add a language to our computers. I wrote the code, but I only understood how to replace the language, so I had my keyboard layout in Russian and I replaced it to English,...
  7. How to delete files and folders using Windows PowerShell

    in Windows 10 News
    How to delete files and folders using Windows PowerShell: [ATTACH] [ATTACH]If you are unable to delete a file or folder from your computer, you can use Windows PowerShell to delete any file and folder effortlessly. The advantage of using PowerShell is that you can force delete a file and remove [...] This post How to delete files...
  8. Folder size in disk properties and folder properties

    in Windows 10 Support
    Folder size in disk properties and folder properties: I've just moved data from three HDs to one 8Tb hard drive. Everything is there, but the folder size reporting is weird, just weird. See attached...single top level folder is reported as 465Gb - folders within that are larger are reported as such (see pic 5 of 5 in the zip). I...
  9. How to Use the Compress Opt in Properties of a File or Folder via cmd?

    in Windows 10 Support
    How to Use the Compress Opt in Properties of a File or Folder via cmd?: Yeah i've been using this trick to save my Dish Space and how Helpful it is... *Smile But i need a alternate way so that i don't have to manually do this. [img] I just need a way to apply this to certain folder using Command Prompt (cmd.exe). Thanks 56800
  10. Folder Properties

    in Windows 10 Support
    Folder Properties: Hello, On my pc I have many music files, located in different folders. When I open a new folder and populate it with audio files, immediately in the upper bar are descriptions as on attached screenshot. Even when I change the folder's properties from "music" to "General",...