Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Recurse all items on E drive in remote computers

$
0
0

Hello,

Actually i wrote script to gather all computer which i need to continue actions from AD security groups. After that i need recurse all directories in that computers.. But still not E drive found. Why? actually it is exist on that.

  

$directory = "E:\"
$sccm = (get-adgroupmember gPEUT-SCCM2012R2Servers | select name).name
Invoke-command -ScriptBlock {
Foreach ($a in $sccm)
{
Get-ChildItem  $a -Path $directory -recurse
}

}


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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