Просмотр конфигурации загрузки

param($computer="localhost", [switch]$help)

function funHelp()
{
$helpText=@"
DESCRIPTION:
NAME: DisplayBootConfig.ps1 
Displays a boot up configuration of a Windows system

PARAMETERS: 
-computer    The name of the computer
-help        prints help file

SYNTAX:
DisplayBootConfig.ps1 -computer munich

Displays boot up configuration of a computer
named munich

DisplayBootConfig.ps1

Displays boot up configuration on local
computer 

DisplayBootConfig.ps1 -help 

Displays the help topic for the script

"@
$helpText
exit
}

if($help){ "Obtaining help ..." ; funhelp }

$wmi = Get-WmiObject -Class win32_BootConfiguration `
     -computername $computer 
format-list -InputObject $wmi [a-z]*
0
Голосов пока нет

Оставить комментарий