2012年12月27日 星期四

XP/Vista/Win 7多人遠端登入

http://deepxw.blogspot.com/2009/04/universal-termsrvdll-patch.html

Support: Windows XP SP2 SP3; Vista SP1 SP2/Windows 7, 32bit(x86)/64bit(x64)

將事件記錄檔匯出至檔案

wevtutil epl System E:\test.evtx

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

2012年12月23日 星期日

Developing International Software (Windows)

http://msdn.microsoft.com/en-us/library/hh529131(v=vs.85).aspx

Code Page Support in Microsoft Windows
http://msdn.microsoft.com/en-us/library/cc194884.aspx

ANSI Code Page for Windows

http://www.mydigitallife.info/ansi-code-page-for-windows-system-locale-with-identifier-constants-and-strings/

URL Rewrite Module Configuration Reference

http://www.iis.net/learn/extensions/url-rewrite-module/url-rewrite-module-configuration-reference

JAVA使用的Unicode版本

https://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/JRE_VERSION_MIGRATION.txt


 * Java 1.4, Unicode 3.0
 * Java 5, Unicode 4.0
 * Java 6, Unicode 4.0
 * Java 7, Unicode 6.0

ref:
http://stackoverflow.com/questions/6941229/how-to-identify-programmatically-in-java-which-unicode-version-supported


中文儲存在電腦裡是不是佔3 bytes?

http://phorum.study-area.org/index.php?topic=51268.0

UTF-8 的字碼長度是不固定的,由一至四不等,通常英文字母 (ascii characters) 是 1 byte,拉丁及東歐字母等是 2 bytes,其他多字節文字(包括中文)是 3 bytes,其餘罕有的字符是 4 bytes。

http://www.ptt.cc/bbs/C_and_CPP/M.1289044618.A.B94.html
2.中文儲存在電腦裡是不是佔3 bytes?

答:不一定,如果是BIG5編碼,就是2 bytes

  如果是UTF-8編碼,可能是2 bytes或3 bytes

  如果是UTF-16,則是2 bytes


http://en.wikipedia.org/wiki/Unicode_in_Microsoft_Windows
Windows used the UTF-16LE encoding scheme internally, in NTFS file system

ref:
http://en.wikipedia.org/wiki/UTF-8
http://www.ptt.cc/man/Web_Design/D5B9/D6D7/M.1144158540.A.A6E.html
http://ithelp.ithome.com.tw/question/10021627?tag=rt.rq

Character encoding - Wikipedia, the free encyclopedia

http://en.wikipedia.org/wiki/Character_encoding


  • With US-ASCII, code unit is 7 bits.
  • With UTF-8, code unit is 8 bits.
  • With EBCDIC, code unit is 8 bits.
  • With UTF-16, code unit is 16 bits.
  • With UTF-32, code unit is 32 bits.

IIS自簽憑證有效期限不只一年

IIS7
http://blogs.iis.net/thomad/archive/2010/04/16/setting-up-ssl-made-easy.aspx

IIS6
http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=17275

http://serverfault.com/questions/361792/iis-7-5-creating-self-signed-certificates-with-validation-date-of-more-than-a-ye

2012年12月8日 星期六

Events and Errors - Failover Clustering

http://technet.microsoft.com/en-us/library/cc753362(v=ws.10).aspx

Server 2003 cluster 節點之間是否可以跨網段

http://social.technet.microsoft.com/Forums/zh-TW/winserverzhcht/thread/4bf52044-edfa-46f3-a157-e8529368c987
http://blogs.msdn.com/b/clustering/archive/2009/02/23/9441604.aspx

跨網段的Cluster在Server 2003是不可行的 , 在Server 2008開始才支援

keyword: PlumbAllCrossSubnetRoutes

LocalSystem Account (Windows)

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

SQL Server 2012:在AlwaysOn可用性群組上,請勿使用Windows容錯移轉管理員來執行容錯移轉

http://sharedderrick.blogspot.tw/2012/06/sql-server-2012alwaysonwindows.html

容錯移轉管理員Failover Cluster Manager

you must use failover cluster management to add storage

在Microsoft iSCSI Software Target 3.3 出現必須使用容錯移轉叢集管理員add storage
雖然並沒有將Microsoft iSCSI Software Target 3.3和iscsi initiator放在一起
但還是不要將Microsoft iSCSI Software Target 3.3安裝在MSFC(Microsoft Failover Cluster)環境上

※DO NOT install Microsoft iSCSI Software Target on Microsoft failover cluster environment 
even if Microsoft iSCSI Software Target don't install in the same computer that runs the iSCSI Initiator.If you do it,it may cause your failover cluster crash. 

List of Failover Cluster Packages Updated After the Release of Windows Server 2008 R2 Service Pack 1 (SP1)

http://social.technet.microsoft.com/wiki/contents/articles/3153.list-of-failover-cluster-packages-updated-after-the-release-of-windows-server-2008-r2-service-pack-1-sp1.aspx

List of Cluster Hotfixes for Windows Server 2008 R2

http://social.technet.microsoft.com/wiki/contents/articles/2008.list-of-cluster-hotfixes-for-windows-server-2008-r2.aspx
•2687741 — A hotfix that improves the performance of the "AlwaysOn Availability Group" feature in SQL Server 2012 is available for Windows Server 2008 R2

2012年12月6日 星期四

Exceptions for Symantec Endpoint Protection on Hyper-V

http://www.symantec.com/business/support/index?page=content&id=TECH133846 http://support.microsoft.com/kb/961804

Hyper-V Cmdlets in Windows PowerShell

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

Hyper-V 的伺服器遠端存取權

http://technet.microsoft.com/zh-tw/library/ee849854(v=ws.10).aspx
如果您已將管理 Hyper-V 的伺服器遠端存取權,授與任何不是 Administrators 群組或 Distributed COM Users 群組成員的使用者帳戶,請開啟登錄並瀏覽至 HKLM\Software\Microsoft\OLE\ 機碼。新增您從來源伺服器記錄的 MachineLaunchRestriction 值。

2012年12月3日 星期一

下載 Microsoft 私用雲端評估軟體

http://technet.microsoft.com/zh-tw/evalcenter/hh505660.aspx


System Center 2012 Private Cloud RTM
https://www.microsoft.com/betaexperience/pd/SCDC2012RTM/zhtw/default.aspx

System Requirements for System Center 2012 - Virtual Machine Manager

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

Deploying System Center 2012 - Virtual Machine Manager

http://technet.microsoft.com/library/gg610669.aspx

XenServer Tech Specs

http://www.citrix.com/products/xenserver/how-it-works/specifications.html

  • 64-bit x86 server-class system
  • Intel® VT or AMD-V™ required for support of Windows guests

files that comprise a virtual machine include

http://social.technet.microsoft.com/wiki/contents/articles/349.hyper-v-how-to-find-vm-files.aspx

The files that comprise a virtual machine include:
  • .XML files
    • These files contain the virtual machine configuration details. There is one of these for each virtual machine and each snapshot of a virtual machine. They are always named with theGUID used to internally identify the virtual machine or snapshot in question.
  • .BIN files
    • This file contains the memory of a virtual machine or snapshot that is in a saved state.
  • .VSV files
    • This file contains the saved state from the devices associated with the virtual machine.
  • .VHD files
    • These are the virtual hard disk files for the virtual machine
  • .AVHD files
    • These are the differencing disk files used for virtual machine snapshots 

About Virtual Machines and Guest Operating Systems for Hyper-V

http://technet.microsoft.com/en-us/library/cc794868(v=ws.10).aspx

Server Core模式下開啟遠端桌面

cscript C:\Windows\System32\Scregedit.wsf /ar 0

http://technet.microsoft.com/en-us/library/ee441255(v=ws.10).aspx
This enables the Remote Desktop for Administration mode to accept connections.

2012年12月2日 星期日

kernel enlightenment

Google到Windows Server 2008和Windows Vista with SP1之後的Windows有支援kernel enlightenment
因此Hyper-V不需要安裝Integration Services
但是微軟的文件只有Guest OS是Windows 8和Windows 2012才不用安裝Integration Services
http://technet.microsoft.com/en-us/library/hh831531.aspx
自己在VM環境不管用Hyver-V還是XenServer跑Windows 2008 R2都滿順的
也有可能是因為Windows Server 2008內建的相關服務和驅動程是不是最新版本,所以需要再次安裝Integration Services(整合服務)


註:enlightenment是指Guest OS的Kernel可以知道自己在虛擬化的環境中執行,具備感知虛擬化環境的能力

10+ tips for getting the best performance out of your SQL Server data types | TechRepublic

http://www.techrepublic.com/blog/10things/10-tips-for-getting-the-best-performance-out-of-your-sql-server-data-types/381

Get Password Expiration Date in SQL Server 2008

http://www.sqlservercurry.com/2010/12/get-password-expiration-date-in-sql.html

enforces password expiration (強制執行密碼逾期)

http://msdn.microsoft.com/en-us/library/ms161959.aspx

Creating UFT-8 database

http://www.manydesigns.com/en/portofino/portofino3/3_1_x/installation-guide/creating-the-database

啟動、停止、暫停、繼續、重新啟動 Database Engine、SQL Server Agent 或 SQL Server Browser 服務

http://msdn.microsoft.com/zh-tw/library/hh403394.aspx

create a login in SQL Server 2012 by using SQL Server Management Studio or Transact-SQL

http://technet.microsoft.com/en-us/library/aa337562.aspx#Security

Appendix A: Failover Cluster Requirements

http://technet.microsoft.com/en-us/library/dd197454(WS.10).aspx#BKMK_Account_Infrastructure

User UPN logon和User SamAccountName logon

UPN並不會隨著帳戶被搬移到其他網域而改變,比如原本是rex@AAA.COM,之後這個使用者被搬移到樹系中的另一個網域BBB.COM內,其UPN仍然是rex@AAA.COM,仍然可以使用rex@AAA.COM登入


http://technet.microsoft.com/en-us/library/dd861342.aspx
User UPN logon
User SamAccountName logon

http://technet.microsoft.com/zh-tw/library/dd861342.aspx
使用者 UPN 登入
使用者 UPN 登入

http://technet.microsoft.com/zh-cn/library/dd861342.aspx
用户 UPN 登录
用户 SamAccountName 登录


ping本機出現unable to contact ip driver general failure

加入網域後,用domain admin帳號登入,ping 127.0.0.1出現已下訊息 (用本機登入不會)
unable to contact ip driver general failure
因為虛擬機複製不變更SID(安全性識別碼)在網域環境下會有問題

解決方式 :
cd到C:\Windows\System32\Sysprep
執行Sysprep
選擇OOBE,勾選Generalize (一般化)

※執行後電腦名稱Hostname會被改掉,需重新加入domain,Windows需重新啟用※

ref:
http://rexitblog.blogspot.tw/2012/11/differencing-virtual-disk.html
http://technet.microsoft.com/zh-tw/library/cc721940(v=ws.10).aspx
http://mrynlin.blogspot.tw/2011/01/windows-7-sysprep.html

nltest /dsgetdc: /force

http://technet.microsoft.com/en-us/library/ee624051(WS.10).aspx

nltest /dsgetdc: /force

           DC: \\DC1.corp.contoso.com
      Address: \\2002:836b:2:1:0:5efe:10.0.0.1
     Dom Guid: e8bae90e-02c4-4489-8abd-e63353fed05a
     Dom Name: corp.contoso.com
  Forest Name: corp.contoso.com
 Dc Site Name: Default-First-Site-Name
        Flags: PDC GC DS LDAP KDC TIMESERV GTIMESERV WRITABLE DNS_DC DNS_DOMAIN
DNS_FOREST FULL_SECRET WS
The command completed successfully

windows cannot access the specified device path or file

加入domain後
用domain admin帳號登入開啟Server Manager出現此問題 (本機admin不會)

解決方式:關閉windows的UAC (User Account Control 使用者帳戶控制)
                 重新開機後,UAC 就會被關閉


【windows 2008 R2英文版關閉UAC】