Test Post

[sourcecode lang=“powershell”]

PowerShell cmdlet to list the System files in the root of C:\

$i=0
$GciFiles = get-ChildItem “c:” -force |where {$_.attributes -match “System”}
foreach ($file in $GciFiles) {$i++}
$GciFiles |sort |ft name, attributes -auto
Write-host “Number of files: " $i

if

IF

[/sourcecode]

comments powered by Disqus