2013年11月4日 星期一

ERROR: Failed to build gem native extension. /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby extconf.rb

依ihower的Ruby on Rails 實戰聖經
最後步驟是:gem install sqlite3和gem install rails
在OSX 10.8.5安裝時出現這錯誤訊息
看到stackoverflow有人說XCode 4以後要自己裝Command Line tools
才解決問題,想說在之前在Ubuntu裝都好好的@.@
打開XCode後到Preferences -> Downloads -> Components
下載並安裝
Command Line tools

錯誤訊息:

ERROR: Failed to build gem native extension.
    /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby extconf.rb

checking for sqlite3.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

REF:http://stackoverflow.com/questions/8389301/os-x-rails-failed-to-build-gem-native-extension

P.S.
OSX 10.9之後可以使用"xcode-select --install”,不用透過GUI慢慢選
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html

2013年10月19日 星期六

jQuery stopPropagation 和 stopImmediatePropagation 比較

http://blog.wu-boy.com/2012/03/jquery-different-form-stoppropagation-with-stopimmediatepropaga
tion/

前者只會防止目前 Dom Tree 的上一層事件,後者則是會防止全部 Dom Tree 事件

2013年10月17日 星期四

Googlebot如何去抓AJAX網頁

https://developers.google.com/webmasters/ajax-crawling/

www.example.com/ajax.html#!key=value
會轉成以下網址再去爬網頁
www.example.com/ajax.html?_escaped_fragment_=key=value
可以使用Google模擬器驗證是否有效

2013年10月16日 星期三

window.onhashchange事件

IE >= 8
Firefox >= 3.6
Opera >= 10.6
Safari>=5

jQuery hashchange event:
如果舊式瀏覽器不支援可以使用
http://benalman.com/projects/jquery-hashchange-plugin/

ref:
http://caniuse.com/hashchange

keyword:
hashchange supported browsers

2013年10月12日 星期六

Server Core環境開放遠端桌面

netsh firewall set portopening tcp 3389 "Remote Desktop"
cscript C:\Windows\System32\Scregedit.wsf /ar 0

p.s. 允許連入:0   禁止連入:1

ref:
http://technet.microsoft.com/zh-tw/library/jj574205.aspx

Windows指令確認防火牆狀態

C:\Users\Rex>netsh firewall show opmode

Domain profile configuration:
-------------------------------------------------------------------
Operational mode                  = Enable
Exception mode                    = Enable

Standard profile configuration (current):
-------------------------------------------------------------------
Operational mode                  = Enable
Exception mode                    = Enable

IMPORTANT: Command executed successfully.
However, "netsh firewall" is deprecated;
use "netsh advfirewall firewall" instead.
For more information on using "netsh advfirewall firewall" commands
instead of "netsh firewall", see KB article 947709
at http://go.microsoft.com/fwlink/?linkid=121488 .


C:\Users\Rex>

2013年10月10日 星期四

RDP 5.2的加密方式

http://wiki.wireshark.org/RDP

RDP 5.2
  • All levels use RSA RC4 encryption
  • Client Compatible - protects data sent from client to server
    • dynamically determines maximum supported key strength
  • High - protects data sent from client to server and data sent from server to client
    • 128-bit
    • clients that do not support 128-bit will not be able to connect 

2013年9月28日 星期六

Windows 8企業版(Enterprise)輸入序號

http://support.microsoft.com/kb/2750773/zh-tw

方法1
  1. 從畫面的右邊緣 swipe 中,然後點選 [搜尋或者,如果您使用滑鼠,指向 [在螢幕的右下角,然後按一下 [搜尋.
  2. 在 [搜尋] 方塊中,鍵入Slui.exe 0x3.
  3. 請點選或按一下Slui.exe 0x3圖示。
  4. 在 [啟用 Windows] 視窗中,輸入您的產品金鑰,然後按一下 [啟動.

2013年9月27日 星期五

透過KMS啟動Windows

cd c:\windows\system32

Windows 7 Enterprise
cscript slmgr.vbs -ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH

Windows 7 Professional
cscript slmgr.vbs -ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4

cscript slmgr.vbs -skms 192.168.1.5
192.168.1.5為KMS Server的IP,預設port是1688 (TCP)
非預設可以改成192.168.1.5:2000 (假設port是2000)


cscript slmgr.vbs -ato

http://technet.microsoft.com/en-us/library/ff793420.aspx
Windows 7 and Windows Server 2008 R2 install automatically as KMS clients. To convert a KMS client to MAK activation, install a MAK. A MAK can be installed during or anytime after operating system installation.

KMS序號:
http://technet.microsoft.com/en-us/library/ff793421.aspx

找出網域的KMS主機

http://kb.wisc.edu/page.php?id=7770

If a SRV record exists for the domain, the DNS server will detail the SRV record.
C:\>nslookup -type=srv _vlmcs._tcp
Server:  rdns1.doit.wisc.edu
Address:  128.104.254.254

Non-authoritative answer:
_vlmcs._tcp..wisc.edu       SRV service location:
          priority       = 0
          weight         = 0
          port           = 1688
          svr hostname   = ms-kms-1.services.wisc.edu


p.s.KMS Server預設的port是1688

查詢群組原則套用狀況

gpresult /h gpreport GPReport.html

ref:
RSOP

2013年8月6日 星期二

淺談 ECMAScript 5 嚴格模式 (Strict Mode)

http://kuro.tw/blog/2011/11/28/ecmascript-5-strict-mode

implied global

沒用var宣告就使用是全域物件的一個屬性(property of global object)。
JavaScript:The Good Parts說它是implied global。
保哥Will有提到variable無法被delete,property是可以被delete,
試了一下是可以delete,所以說它是全域變數還是覺得怪怪的。

2013年7月27日 星期六

微軟EA大量授權整理

個人電腦
1.
EA的Windows是只有升級權,採購的電腦還是要有Windows專業版(OEM/零售版皆可,不可家用版本)以上,不可買空機

2.
電腦第一次加入EA叫做True-Up,採購後三年內不用再付款給微軟

3.
三年後續約EA,三年簽一次約,一年繳費一次

4.
Desktop Platform方案包含Windows OS upgrade權利(也包含downgrade )、Office License 、CAL
會比較好計算,一般公司電腦都會裝Office,PC的授權費也貴在Office,不用分別計算Windows、Office、Cal所需數量,因為通常辦公室的電腦一定比人員多,一個人可能有兩台電腦,在計算授權可以計算分公司有幾台電腦,方便統計

伺服器
1.
可以空機

2.
也是有OS upgrade 、downgrade權利

3.
Windows Server OS的費用當然比PC Windows貴多

4.
備援機也需要買授權

5.
Windows  Server 2012之後是2 CPU為一個計費單位



SQL Server診斷工具

以下擷至SqlpassTaiwan/ 劉承修大師分享的心得
查詢sysprocesses(DAC是一個很棒的救命連線方式,但預設是關閉,http://msdn.microsoft.com/en-us/library/ms178068(v=sql.105).aspx)

提供一個不錯的方式看一下語法效能
set statistics time on(看CPU耗時)
set statistics io on(看IO)
set statistics profille on(執行計畫)
上述文章很多 可以先找一下 下次我再分享使用經驗 哈哈

sysprocesses 狀態欄位說明 | Chenghsiu's Blog
果我們需要檢視目前是否有 Blocking 的現象,我們應該要執行以下的語法,及確認 Blocked / blk 或是 Blkby 等欄位,如果這些欄位中有出現某一個 SPID,則代表當前的 SPID Blocked 欄位中顯示的 SPID Blocked

Select * from sys.sysprocesses
go
sp_who
go
sp_who2


[SQL Server]善用Database Engine Tuning Advisor改善SQL效率 - gipi的學習筆記-職場規劃、專案管理、雲端運算部落格- 點部落
Tuning Advisor這工具可以幫我們分析我們對資料庫運行的SQL指令,並給予索引的最佳化建議

RUN!PC|精選文章|商務應用|以動態管理物件觀察SQL Server(3)
監控資料庫運用運算與IO資源狀態


Database Engine Tuning Advisor - MSDN Search
http://social.msdn.microsoft.com/Search/zh-TW?query=Database%20Engine%20Tuning%20Advisor&ac=4


德瑞克:SQL Server 學習筆記: 認識「SQLIOSim 公用程式」,以下載「SQLIOSim 公用程式」為例

德瑞克:SQL Server 學習筆記: 認識「SQLIO 公用程式」;SQLIO Disk Subsystem Benchmark Tool

CaryHsu - 學無止盡: SQLIOSim - 輸出結果分析

CaryHsu - 學無止盡  SQL Server IO 測試工具 - SQLIO的使用與不同Block Size下的效能測試


不要使用SQLIOSim當作效能測試工具!!!
SQLIOSim is "NOT" an I/O Performance Tuning Tool
SQLIOSim是IO穩定度的測試工具,模擬IO的行為
,如read-ahead
如果要效能測試請使用SQLIO Disk Subsystem Benchmark Tool



2013年6月29日 星期六

CentOS啟用VIM的Syntax Highlighting

yum install vim-enhanced

alias vi=vim
(也可以加入/etc/profile永久設定)

測試結果
vi +/Directory /etc/httpd/conf/httpd.conf

ref:
http://www.if-not-true-then-false.com/2012/vi-vim-syntax-highlighting-on-fedora-centos-red-hat-rhel/

2013年6月22日 星期六

微軟金鑰種類

http://msdn.microsoft.com/en-us/subscriptions/cc137104.aspx


2013年5月26日 星期日

2013年5月18日 星期六

Google Tag Manager

http://www.google.com/tagmanager/

可用來管理非系統的程式碼(如廣告的Code)

2013年5月17日 星期五

Windows應用程式部屬方式

分散式:
1.Group Policy
2.Microsoft System Center Configuration Manager(SCCM)

集中式:
Remote Desktop Session Host(RD Session Host)

2013年4月20日 星期六

Windows解析UNC名稱的網路元件

MUP
Multiple UNC Provider
多UNC提供者

MPU是一個核心裝置驅動程式。在系統啟動時被載入到系統中

ref:
Windows 核心原理與實務開發』第578頁
function FsRtlRegisterUncProvider
rdbss.sys
mrxsmb.sys
Windows DDK
MSDN-UNC
NtCreateFile

Named Pipe和LPC的不同

LPC (Local Procedure Call)是Windows系統中不同行程之間的高效率通訊手段
Named Pipe可用於在不同系統之間進行網路通訊機制

 Named Pipe(具名管道)的名稱格式為 \\ < Server >\Pipe\ < PipeName >
< Server >可以是DNS名稱、NetBIOS名稱或IP
'
具名管道驅動程式npfs.sys位於" \FileSystem "目錄中
如果不考慮遠端 具名管道 的情況, 具名管道實際上僅僅是本機的一個檔案系統
而且npfs本身就代表了具名管道的檔案系統(named pipe file system)
每個具名管道等同於一個檔案物件
與普通檔案系統中的檔案不同的是 ,具名管道是動態物件 ,它沒有永久狀態
其職司是為伺服器和客戶提供一個雙向資料交換的通道

ref:
Windows 核心原理與實務開發』第579頁
CreateNamedPipe API

SQL Server Developer 及Express Edition 的TCP/IP預設是停用

Standard、BI 、Enterprise預設都是啟用
Developer 、 Evaluation 、Express 預設是停用

2013年4月12日 星期五

Microsoft® ODBC Driver 11 for SQL Server® - Windows

http://www.microsoft.com/zh-tw/download/details.aspx?id=36434http://www.microsoft.com/zh-tw/download/details.aspx?id=36434

OLE DB Providers Overview

http://msdn.microsoft.com/zh-tw/library/windows/desktop/ms709836(v=vs.85).aspxhttp://msdn.microsoft.com/zh-tw/library/windows/desktop/ms709836(v=vs.85).aspx

2013年3月18日 星期一

玩虛擬機好用的主機板:技嘉 GA-P75-D3P

http://www.gigabyte.tw/products/product-page.aspx?pid=4204#sp

4個DIMM,最高到32 GB  => 可以開很多VM
4個PCI插槽  =>可以插4張PCI網卡,VM區分不同網段

剛剛在PXhome敗了一張,本來庫存兩張剩一張
Y拍和R拍好像都沒有人賣,真是難買@.@
LGA775的版子PCI插槽都比較多,ASUS P5GC還可以到6 slot
LGA1155的版子PCI插槽通常都一個
偏偏有線網卡大多都是PCI的,PCI-E的有線網卡較少又較貴

2013/03/22 Update:
剛剛看可買量4,PXhome應該有再進貨
另外此張無內顯,需接顯卡

2013年3月4日 星期一

Windows的LVM

http://social.technet.microsoft.com/Forums/zh-TW/windowsvistaclientzhcht/thread/bd6fd7ea-d282-4dce-9ae4-e87de0816ed7/


  • 目前沒有您要的那種功能,從 Windows 2000 Server 之後,可以使用「磁碟管理」的 MMC 管理工具,將本機磁碟機掛載(Mount)於本機 NTFS 磁碟區的任何空資料夾上。其實,這也算是實作了 LVM 的功能

2013年3月3日 星期日

將損壞的磁碟由 LVM 中移出

http://wiki.debian.org.hk/w/Remove_failed_disk_from_LVM

如果LVM某顆硬碟快壞掉,可以再掛顆新硬碟到LVM
用pvmove 指令將資料從快壞的硬碟搬到新的硬碟上
再用vgreduce指令將快壞的硬碟從volume group移除
最後用pvremove 指令清除損壞 PV 上的Labels
在XenServer上試是要reboot OS

Hyper-V的GuestOS可以不關機

Hyper-V的GuestOS可以不關機,直接關HostOS,GuestOS的狀態會自動儲存,可能都是微軟的產品吧,比較方便,但只試過GuestOS是Windows的,GuestOS是Linux沒試過

XenServer如果GuestOS沒關機就無法關HostOS,所以還要一個一個關GuestOS,但還是XenServer好用,Hyper-V可能還要買VMM才會比較好用吧?沒用過VMM,可是知道VMM可以直接複製VM(Hyper-V不行,XenServer免費版就可以)

mikrotik RouterOS的Dynamic DNS

http://wiki.mikrotik.com/wiki/Manual:Tools/Dynamic_DNS

DNS update tool works only with BIND server, it will not work with DynDNS, EveryDNS or any other similar service.

2013年2月24日 星期日

列出XenSource volume group資訊

Xen是使用LVM的方式管理硬碟空間配置

vgscan =>查看名稱
vgdisplay -v 名稱 =>查看volume的詳細資訊

2013年2月15日 星期五

FQDN與FQIDN

FQDN: Fully Qualified Domain Name (完整網域名稱)
FQIDN: Fully Qualified Internationalized Domain Name (國際通用的相等名稱)

IDN可參考:
http://en.wikipedia.org/wiki/Internationalized_domain_name

Windows Server 2012移除了Active Directory安裝精靈程式(dcpromo.exe)

http://www.lijyyh.com/2012/09/windows-server-2012-windows-server-2012.html
http://technet.microsoft.com/zh-tw/library/hh831568.aspx
http://technet.microsoft.com/library/hh472160.aspx

Linux Integration Services 3.4 安裝手冊 – 以 CentOS 6.3 為例

http://blog.miniasp.com/post/2013/02/05/How-to-install-Linux-Integration-Services-Version-34-for-Hyper-V-on-CentOS-63.aspx

PowerShell安裝整合服務

Set-VMDvdDrive -VMName ABC -Path C:\Windows\system32\vmguest.iso
但是在GuestOS安裝還是需人工,無法自動化

ref:
http://csharpening.net/?p=1052

Hyper-V虛擬機限制頻寬、停用頻寬管理

Set-VMNetworkAdapter -VMName ABC -MaximumBandwidth 1000000000
限制虛擬機ABC頻寬上限為1 Gbps

停用頻寬管理:
Set-VMNetworkAdapter -VMName ABC -MinimumBandwidthAbsolute 0 -MaximumBandwidth 0

ref:
Windows Server 2012 QoS Common Configurations

動態記憶體是Windows Server 2008 R2 Service Pack (SP1) 中全新的Hyper-V 功能

http://technet.microsoft.com/zh-tw/library/ff817651(v=ws.10).aspx

動態記憶體可協助您更有效率地使用記憶體資源。這個功能引進之前,必須將虛擬機器關閉才能變更虛擬機器可用的記憶體數量。使用動態記憶體,Hyper-V 可以動態提供虛擬機器或多或少的記憶體,以回應工作負載或應用程式在虛擬機器執行時所需的記憶體數量變更。因此,Hyper-V 可以更有效率地將記憶體分配給設有動態記憶體的執行中虛擬機器。視工作負載這類因素而定,這種效率可以讓您在一部實體電腦上同時執行更多虛擬機器。

關閉虛擬機器名稱ABC關閉動態記憶體:
Set-VMMemory ABC -DynamicMemoryEnabled SFalse
開啟
Set-VMMemory ABC -DynamicMemoryEnabled STrue

REF:
http://technet.microsoft.com/zh-tw/magazine/hh750394.aspx

每個VM最多只能配置4個光纖通道介面卡

http://www.ithome.com.tw/itadm/article.php?c=74674&s=5
http://technet.microsoft.com/zh-tw/library/hh831413.aspx

每個Hyper-V虛擬機 最多可支援256個SCSI磁碟,4個IDE磁碟

http://technet.microsoft.com/zh-tw/library/dd250808.aspx

4個SCSI控制器,每個SCSI控制器最多可支援64個磁碟
2個IDE控制器,每個IDE控制器最多可支援2個磁碟
You can have up to two IDE controllers with two disks on each controller
磁碟的大小最大為2040 GB
另外預設IDE控制器會建立一個DVD光碟機,會少掉一個IDE device
虛擬IDE控制器也可以連結到實體磁碟機

檢視虛擬機ABC上所有的SCSI控制器
Get-VMScsiController -VMName ABC
檢視虛擬機ABC上所有的IDE控制器
Get-VMIdeController -VMName ABC
或用Get-VMHardDiskDrive


http://blogs.technet.com/b/josebda/archive/2008/02/14/storage-options-for-windows-server-2008-s-hyper-v.aspx
Hyper-V will let you “bypass” the host’s file system and access a disk directly. This raw disk, which is not limited to 2040 GB in size, can be a physical HD on the host or a logical unit on a SAN.

http://technet.microsoft.com/zh-tw/library/dd277881.aspx
傳遞磁碟 — Hyper-V 可讓您略過主機的檔案系統,直接存取磁碟。存放裝置可以是 Hyper-V 伺服器內部的實體磁碟,或是對應至 Hyper-V 伺服器的存放區域網路 (SAN) 邏輯單元 (LUN)。不像其他存放裝置類型,傳遞磁碟不受 2040 GB 的限制。


REF:
Requirements and Limits for Virtual Machines and Hyper-V in Windows Server 2008 R2

Hyper-v GuestOS使用3D功能

使用RemoteFX 3D視訊卡,RemoteFX可以將GPU虛擬化提供給每一個虛擬桌面
RemoteFX是Windows Server 2008 R2 with Service Pack 1開始新增功能
Client需使用RDP 7.1以上
RemoteFX 3D視訊卡必須要有相對應的顯示卡,然後到Hyper-V設定內開啟GPU功能和安裝遠端桌面虛擬主機(GuestOS需關機)

ref:
http://blog.sanc.idv.tw/2012/01/hyper-v-remotefx-3d.html
http://technet.microsoft.com/en-us/library/ff817578%28WS.10%29.aspx

Remove-VM

Remove-VM -Name test* -Force

刪除所有名稱為test開頭的虛擬機器,且不需要提示確認

ref:
http://technet.microsoft.com/en-us/library/hh848489.aspx

Hyper-V 虛擬交換器是一種虛擬的 Layer-2 網路交換器

http://technet.microsoft.com/zh-tw/library/hh831823.aspx

vhd和vhdx差異

vhdx是Windows Server 2012/Windows 8 (Hyper-v 3.0)新增虛擬磁碟格式
vhdx最大容量可達64 TB (vhd只能2 TB)
且vhdx提供了power failure時對資料損壞的保護機制
vhdx也支援4KB大小的邏輯磁區(disk sectors)
vhd預設是固定大小(VhdType:Fixed),vhdx預設是動態擴充(VhdType:Dynamic)
可用Convert-VHD指令轉換

ref:
http://www.ithome.com.tw/itadm/article.php?c=74674&s=3
http://technet.microsoft.com/zh-tw/library/hh831446.aspx


 http://gallery.technet.microsoft.com/scriptcenter/Create-Hyper-V-VM-beb888d9
$vhdtype = "Differencing"
$vhdtype = "Fixed"
$vhdtype = "Dynamic"

Hyper-V Cmdlets in Windows PowerShell

http://technet.microsoft.com/en-us/library/hh848559.aspx

使用Coreinfo指令檢視主機CPU是否支援SALT

http://www.dotblogs.com.tw/jerry710822/archive/2012/06/05/72625.aspx

hyper-v administrator group

Windows Server 2012新增的本機安全群組

ref:
http://technet.microsoft.com/en-us/library/hh831410.aspx

Windows 8的Hyper-V缺少的功能

取消了一些Windows Server虛擬化功能,例如複本、即時移轉等功能
也不能當容錯移轉叢集內的節點

摘自:強勢回歸 Microsoft Hyper-V 2012 從零開始-複本、叢集、即時移轉、高可用性

Windows Server 2012 Hyper-V Component Architecture

http://www.microsoft.com/en-us/download/details.aspx?id=29189

sort count -descending

http://technet.microsoft.com/zh-tw/library/gg550867(v=office.14).aspx

PS C:\Users\Peter>Get-Command -PSSnapin "Microsoft.SharePoint.PowerShell" | >>sort verb | group verb | sort count -descending >>





結果會由Count由大致小排序
Count Name                      Group
----- ----                      -----
  139 Get                       {Get-PluggableSecurityTrimmer, Get-SPAccessS...
  104 Set                       {Set-SPAccessServiceApplication, Set-SPAlter...
   88 New                       {New-SPAccessServiceApplication, New-SPAlter...

Get-Help

Get-Help Get-VHD -Full

ref:
http://rexitblog.blogspot.tw/2013/02/get-command-noun-verb.html

Get-Command -Noun和 -Verb

http://technet.microsoft.com/zh-tw/library/aa997174.aspx

Get-Command -Noun

Get-Command -Noun <CmdletNoun> 命令會列出具有指定名詞的所有指令程式。當您希望檢視與特定功能關聯之所有指令程式的清單時,可使用此命令。例如,Get-Command -Noun SystemMessage 命令會傳回 SystemMessage 功能可用的所有指令程式。


Get-Command -Verb
Get-Command -Verb <CmdletVerb> 命令會列出具有指定動詞的所有指令程式。當您希望檢視與特定動作關聯之所有指令程式的清單時,可使用此命令。例如,Get-Command -Verb Enable 命令會傳回執行啟用動作的所有可用指令程式。


ref:
http://www.goodman-lai.idv.tw/2008/01/get-command-verbnoun.html





2013年1月27日 星期日

RAID 10+hot spare

http://docs.qnap.com/nas/tc/index.html?volume_management.htm

五顆硬碟或以上型號

ref:
RAID10與RAID5比較及相對優缺點 - 看板 hardware - 批踢踢實業坊

IE Hacks

http://flyworld.github.com/IE-Hacks/

Openfiler (以Linux為核心的OpenSource iSCSI Target)

http://www.openfiler.com

大型企業會使用SAN,個人或中小企業預算不夠可以使用 iSCSI Target

類似軟體:

FreeNAS、StarWind、 Datacore SANmelody、Microsoft Software Target
否則有些NAS產品也支援 iSCSI Target,如QNAPSynology
如果是Cluster叢集環境需要開MIPO或MC/S


ref:
:::軟體東西軍PK大對決:::FreeNAS和OpenFiler來PK,你選哪一個?
用iSCSI目標端軟體建置儲存環境 | 技術專題 | iThome online
鳥哥的 Linux 私房菜 -- 網路磁碟裝置:iSCSI伺服器

2013年1月26日 星期六

alter trace

從SQL Server 2008之後,使用Profiler工具不需要再被授予sysadmin權限
只需要被授予alter trace權限,就可以建立或設定追蹤

2013年1月1日 星期二

Windows 7上使用Hyper-V MMC

http://technet.microsoft.com/en-us/library/cc794756(v=ws.10).aspx
Windows 7 Enterprise, Windows 7 Professional, or Windows 7 Ultimate editions)

Windows 7 SP1 的遠端伺服器管理工具
http://go.microsoft.com/fwlink/?LinkID=130862

http://technet.microsoft.com/zh-tw/library/ee256062(v=ws.10).aspx

Windows 8 快速鍵

http://www.soluto.com/kb/windows-8/windows-8-tips-and-tricks/

Windows 8 建立系統映像檔

建立還原點
recimg -CreateImage C:\Refreshimage
recimg /CreateImage C:\Refreshimage


回到出廠狀態
recimg.exe /deregister

回復到某個還原點
recimg.exe /setcurrent

顯示所有環原點
 recimg /ShowCurrent

顯示幫助
recimg /help

http://support.microsoft.com/kb/2748351/en-us
http://www.bleepingcomputer.com/tutorials/create-custom-refresh-image-in-windows-8/


p.s.