Windows Vista和局域网聊天的计算机
檢查運(yùn)行Windows Vista和局域網(wǎng)聊天的計(jì)算機(jī)引導(dǎo)配置文件通常可以為用戶解決引導(dǎo)有關(guān)的問題,提供很多有價(jià)值的信息。類似引導(dǎo)分區(qū)、引導(dǎo)目錄,以及Windows目錄等信息往往都對排除故障很有用,大多數(shù)情況下通過VBS腳本獲取這些信息需要花費(fèi)很多時(shí)間。
局域網(wǎng)聊天-www.freeeim.com
如果Windows Vista和Windows Server 2008無法正常啟動,則可以檢查引導(dǎo)配置文件是否出現(xiàn)錯(cuò)誤;另外可以檢查啟動服務(wù)及其依存性。Windows中的一些服務(wù)依賴于其他服務(wù)、系統(tǒng)驅(qū)動程序和組件的加載順序。如果系統(tǒng)組件被停止或運(yùn)行不正常,則依賴于它的服務(wù)會受到影響。
創(chuàng)建名為“DisplayBootConfig.ps1”腳本讀取引導(dǎo)配置,其代碼如下:
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 WebServer
Displays boot up configuration of a computer named WebServer
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]*
該腳本使用param語句定義了$computer和$help變量,前者的默認(rèn)值為localhost。設(shè)置-help參數(shù)為switch,即在使用該參數(shù)時(shí)不需要提供額外信息,并且使用Get-WmiObject cmdlet從Win32_BootConfiguration WMI類中獲取信息。如果需要,可以將$computer變量中的值提供給-computername參數(shù)。這樣可以通過Get-WmiObject cmdlet連接到遠(yuǎn)程計(jì)算機(jī),最終將返回的management對象傳遞給Format-List cmdlet。使用范圍運(yùn)算符(range operator)[a-z]*選擇字符開頭的屬性,以過濾報(bào)告中的所有系統(tǒng)屬性(因?yàn)橄到y(tǒng)屬性均以下畫線開頭)。
該腳本的執(zhí)行結(jié)果如圖1所示。
?
Read more: PowerShell2.0之Windows排錯(cuò)(一)啟動故障排錯(cuò) - 天行健@中國元素 - 博客園 http://www.cnblogs.com/fuhj02/archive/2011/01/16/1937007.html#ixzz1BDVc3100
總結(jié)
以上是生活随笔為你收集整理的Windows Vista和局域网聊天的计算机的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 我所理解的离散傅里叶变换_DFT
- 下一篇: VS2015中配置MSComm通讯控件和