2017年5月24日 星期三
Windows 10無法開機,出現錯誤代碼:0xc0000225
解決方法:
Repair Boot sector or Rebuild BCD
1.用Windows 10安裝光碟開機
2.依序選取『Language Preferences』\選『Repair your computer』\選『Troubleshoot』\選『Advanced options』\選『Command Prompt』
3.依序輸入底下指令
bootrec.exe /fixmbr
bootrec.exe /fixboot
bootrec.exe /rebuildbcd
exit
重新開機,如果依然無法正常登入作業系統再依底下步驟操作
1.照前面方法開啟『Command Prompt』
2.依序輸入底下指令
bcdedit /export C:\BCD_Backup
c:
cd boot
attrib bcd -h -r -s
ren c:\boot\bcd bcd.old
bootrec /rebuildbcd
exit
依照上面步驟操作,小弟的電腦就可以正常開機了
2017年5月12日 星期五
刪除系統中隱藏的網路卡
通常發生在虛擬機移轉至另一台主機,原先的網路卡(含IP資訊)會被隱藏
1.開啟「命令提示字元」,輸入set devmgr_show_nonpresent_devices=1
2.開啟裝置管理員(指令 start devmgmt.msc),點選 [檢視]\[顯示隱藏裝置]
3.展開網路介面卡,移除不存在的網路卡
1.開啟「命令提示字元」,輸入set devmgr_show_nonpresent_devices=1
2.開啟裝置管理員(指令 start devmgmt.msc),點選 [檢視]\[顯示隱藏裝置]
3.展開網路介面卡,移除不存在的網路卡
2017年4月24日 星期一
PowerShell 常用指令
PowerShell常用指令
|
Get-Command
|
查看所有命令
|
|
Get-Command | Format-List
Get-Command | FL
|
查看所有命令的詳細說明
|
|
Get-Command | Where-Object { $_.name
-like "set*" }
Get-Command | ? { $_.name -like
"set*" }
|
查看含有set開頭的命令
|
|
Get-Service
gsv
|
查看所有已安裝的服務清單
|
|
Get-Process
gps
|
查看目前的執行緒清單
|
|
Get-Alias
|
查看所有可用的別名
|
|
1..254| ForEach-Object -Process
{Get-WmiObject -Class Win32_PingStatus -Filter
("Address='192.168.1." + $_ + "'") -ComputerName .} |
Select-Object -Property Address,ResponseTime,StatusCode
|
Ping指定的IP網段範圍
|
where 陳述式支援下列運算子:
|
-eq
|
等於
|
|
-ne
|
不等於
|
|
-lt
|
小於
|
|
-le
|
小於或等於
|
|
-gt
|
大於
|
|
-ge
|
大於或等於
|
|
-like
|
使用萬用字元規則比較字串
|
|
-notlike
|
使用萬用字元規則比較字串
|
|
-contains
|
包含
|
|
-notcontains
|
不包含
|
|
-replace
|
取代字串
|
2017年4月20日 星期四
2017年3月22日 星期三
GPO-新增 Windows10 ADMX範本檔 (Group Policy Template)
1.下載Administrative Templates (.admx)檔案
Administrative Templates (.admx) for Windows 10 - 中文(繁體) 版本1.0
https://www.microsoft.com/zh-TW/download/details.aspx?id=48257
Administrative Templates (.admx) for Windows 10 and Windows Server 2016 版本2.0
https://www.microsoft.com/en-us/download/details.aspx?id=53430
2.安裝後,Windows 10 Version 1511 ADMX檔預設存放路徑如下
C:\Program Files (x86)\Microsoft Group Policy\Windows 10 Version 1511\
3.複製PolicyDefinitions整個目錄,貼上至「 C:\Windows\SYSVOL\sysvol\%userdnsdomain%\Policies 」資料夾內
4.開啟群組原則管理,至原則\系統管理範本內就會出現新放入的原則
參考資料
https://msdn.microsoft.com/en-us/library/bb530196.aspx
https://www.microsoft.com/en-us/download/details.aspx?id=25250
Administrative Templates (.admx) for Windows 10 - 中文(繁體) 版本1.0
https://www.microsoft.com/zh-TW/download/details.aspx?id=48257
Administrative Templates (.admx) for Windows 10 and Windows Server 2016 版本2.0
https://www.microsoft.com/en-us/download/details.aspx?id=53430
2.安裝後,Windows 10 Version 1511 ADMX檔預設存放路徑如下
C:\Program Files (x86)\Microsoft Group Policy\Windows 10 Version 1511\
3.複製PolicyDefinitions整個目錄,貼上至「 C:\Windows\SYSVOL\sysvol\%userdnsdomain%\Policies 」資料夾內
4.開啟群組原則管理,至原則\系統管理範本內就會出現新放入的原則
參考資料
https://msdn.microsoft.com/en-us/library/bb530196.aspx
https://www.microsoft.com/en-us/download/details.aspx?id=25250
2017年3月21日 星期二
Office部屬-設定Office 2016自動啟用金鑰
部屬Office 2010可以搭配AUTO_ACTIVATE=1參數讓序號自動啟用,但是此方法Office 2016已不適用
Office 2016金鑰自動設定方法
1.先開啟Microsoft Office自訂工具(setup.exe /admin)
2.在授權及使用者介面,輸入KMS或MAK金鑰
3.在新增安裝並執行程式介面,新增命令
目標欄位輸入 C:\Windows\System32\cscript.exe
引數輸入 "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /act

4.最後產製MSP檔,搭配批次檔(批次檔內容如下,路徑請記得修改),安裝時直接執行批次檔即可。
start /wait D:\Office2016STD\setup.exe /adminfile D:\Office2016STD\Office2016STD.MSP
參考資料:https://technet.microsoft.com/zh-tw/library/ee624350.aspx
Office 2016金鑰自動設定方法
1.先開啟Microsoft Office自訂工具(setup.exe /admin)
2.在授權及使用者介面,輸入KMS或MAK金鑰
3.在新增安裝並執行程式介面,新增命令
目標欄位輸入 C:\Windows\System32\cscript.exe
引數輸入 "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /act

4.最後產製MSP檔,搭配批次檔(批次檔內容如下,路徑請記得修改),安裝時直接執行批次檔即可。
start /wait D:\Office2016STD\setup.exe /adminfile D:\Office2016STD\Office2016STD.MSP
參考資料:https://technet.microsoft.com/zh-tw/library/ee624350.aspx
2017年3月8日 星期三
WIN10部屬-關閉來自多個位置的更新(P2P Update)
Windows 10預設啟用「來自多個位置的更新」的功能,該功能可讓您從 Microsoft 之外的來源取得 Windows 更新與 Windows 市集 App。也可以將更新與應用程式從您的電腦傳送到您區域網路上的另一部電腦或網際網路上的電腦,造成網路流量暴增。
底下提供三個關閉「來自多個位置的更新」的方法
方法一
1.開啟「設定」→「更新與安全性」
2.按下「進階選項」
3.按下「選擇更新提供方式」
4.按下「關閉」
方法二
更改參數,開啟登陸編輯程式,依序展開HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization
,在右側新增一個DWORD,名稱DODownloadMode,值0
ps.參數
0=disable
1=peers on same NAT only
2=Local Network / Private Peering (PCs in the same domain by default)
3= Internet Peering
方法三
使用GPO方式派送,至GPO上,依序展開「原則」→ 「系統管理範本」→ 「Windows元件」→ 「Delivery Optimization」→ 「Download Mode」
勾選「已啟用」,Download Mode選擇「None」
底下提供三個關閉「來自多個位置的更新」的方法
方法一
1.開啟「設定」→「更新與安全性」
2.按下「進階選項」
3.按下「選擇更新提供方式」
4.按下「關閉」
方法二
更改參數,開啟登陸編輯程式,依序展開HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization
,在右側新增一個DWORD,名稱DODownloadMode,值0
ps.參數
0=disable
1=peers on same NAT only
2=Local Network / Private Peering (PCs in the same domain by default)
3= Internet Peering
方法三
使用GPO方式派送,至GPO上,依序展開「原則」→ 「系統管理範本」→ 「Windows元件」→ 「Delivery Optimization」→ 「Download Mode」
勾選「已啟用」,Download Mode選擇「None」
訂閱:
文章 (Atom)










