iterate folder and sub folders change attribute

Welcome Forums General PowerShell Q&A iterate folder and sub folders change attribute

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
11 months, 2 weeks ago.

  • Author
    Posts
  • #90322

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 320
    Helping Hand
    Rank: Contributor

    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'

The topic ‘iterate folder and sub folders change attribute’ is closed to new replies.