PowerShell S2E6 (ACL/NTFS Permissions)

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 4

  • @Diegos79
    @Diegos79 3 года назад +1

    Excellent lesson, thanks for that!

  • @Diegos79
    @Diegos79 3 года назад

    Can I ask you how to search directory with partial Name query and Get child item? Example temp1, temp2, temp3 directories names

    • @mrautomation
      @mrautomation  3 года назад +1

      Hi Diego, I certainly can. But I am not 100% sure If i understand the question fully. It could be as simple by just adding a wildcard to your path, like this
      get-childitem "D:\folder*" -Recurse
      Or like this:
      $folder1 = "D:\folder1"
      $folder2 = "D:\folder2"
      $folder3 = "D:\folder3"
      get-childitem $folder1, $folder2, $folder3 -Recurse
      And another 1 with a depth of 2 for recursion
      $folder1 = "D:\folder1"
      $folder2 = "D:\folder2"
      $folder3 = "D:\folder3"
      get-item $folder1, $folder2, $folder3 | Get-ChildItem -Depth 2
      I hope this helps, if you have any other question please let me know, I can create a video on it if needed.