2014年10月29日 星期三

VS2013 開啟專案提報錯誤訊息

VS2013 開啟舊專案時,提報錯誤訊息:

---------------------------
Microsoft Visual Studio
---------------------------
未正確載入套件 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage'。


這個問題可能是因為組態變更或安裝其他擴充功能所造成。您可以從檢查檔案 'C:\Users\Slong\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml' 以取得詳細資訊。

要繼續顯示這項錯誤訊息嗎?
---------------------------
是(Y)   否(N)
---------------------------

解決方法:

關閉 VS2013,到  %LOCALAPPDATA%\Microsoft\VisualStudio\12.0\ComponentModelCache 資料夾下,把所有的資料夾及檔案刪除掉,重新開啟 VS2013 即可。

2014年10月15日 星期三

Windows Server 2012 DHCP MAC address Filter management

手機使用者越來越多,佔用公司的 DHCP IP 太多,從微軟那兒挖到一篇可以攔阻不明使用者MAC的文章:

http://blogs.technet.com/b/teamdhcp/archive/2012/11/10/dhcp-mac-address-filter-management-made-easy-with-dhcp-powershell.aspx

裡面的指令挺管用的,但是照抄照打會出錯,我把我使用的指令寫下來,給大家參考:

PS C:\> Get-DhcpServerv4FilterList -ComputerName dhcp-server 
PS C:\> Set-DhcpServerv4FilterList -ComputerName dhcp-server -Allow 1 -Deny 1