Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Nested Check Folder

$
0
0

Hi guys, I am developing an application, written in powershell. I stuck in a point. I am trying to do a nested check into a folder with script. I want to make a script that will check whether its a folder or not, then if it's a folder, it will do the check again until it finds no more folder


$sourceFolder ="\\frafile03.freus.net\nonGb"
$newNameHeader="baru"
$aclLists = @()
$a = $(Get-ChildItem -Force $sourceFolder)
$index=2    
foreach ($i in $a)
{
     $i.Name
    $aclLists += Get-Acl -path $sourceFolder\$i
}

thats my code, im really stuck. any help will be appriciated




Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>