iterate folder and sub folders change attribute

This topic contains 1 reply, has 2 voices, and was last updated by  postanote 3 months, 3 weeks ago.

  • Author
    Posts
  • #90322

    Magnus
    Participant

    Hi

    I need to iterate a folders files and change every files attribute, if the folder has sub folders they should also be processed, can anyone show how to do this?

  • #90325

    postanote
    Participant

    See these 3 articles to get you where you need to go.

    Files and Folders Part 1-3

    'technet.microsoft.com/en-us/library/ee176983.aspx'
    'technet.microsoft.com/en-us/library/ee176985.aspx'
    'technet.microsoft.com/en-us/library/ee176988.aspx'

    For attributes see this:
    'blogs.technet.microsoft.com/heyscriptingguy/2011/01/26/use-a-powershell-cmdlet-to-work-with-file-attributes'

You must be logged in to reply to this topic.