# This is a example taken from the book "Microsoft Windows Powershell Step by step"
$wmi = Get-WmiObject -class __Namespace -namespace root
"Listing namespaces on " + $wmi[0].__server +
" please wait a second "
for ($i=0;$i -le $wmi.length;$i++)
{if ($i -lt $wmi.length)
{Write-Host -noNewLine "."
Start-Sleep -m 75}
else
{Write-Host "."}
}
$wmi | Format-List name
Write-Host -foregroundColor green "There are" $wmi.length `
"namespaces on this machine `n"
Subscribe to:
Post Comments (Atom)
-
All WMI Class Names list : - Name ...
-
Functions are loosely typed in javascript, we are able to pass different types of parameters, too few args, too many argos etc. Keep functio...
-
Hi All, Thanks for taking out time to read this post. Can someone help me with this? When I try to run this, System.TypeLoadExeception Error...
No comments:
Post a Comment