2013年3月20日 星期三

匯出Windows Server 2003上的帳號密碼至其他台Server上

本文來源 Chieh-Hsing, Chen (陳杰興) 個人筆記 匯出Windows Server 2003上的帳號密碼至其他台Server上

如果要將使用者帳號與密碼從Server A移至Server B,我們可以利用兩個工具來達成我們要的結果。
  1. 用來建立帳號的addusers
  2. 匯出加密過後密碼的copypwd
首先分別在兩台Server都放上這兩隻程式,假設我們放在C:\底下。先至Server A,在Command Line底下輸入: addusers /d: accounts.txt 此動作會將系統中的使用者帳號全部輸出到accounts.txt中,你可以編輯此檔案,將不想匯入至Server B的帳號刪除。 接著,切換至copypwd資料夾中,在Command Line底下輸入: copypwd DUMP > copypwd.txt  此動作會將系統中的使用者密碼(加密過後的)輸出到copypwd.txt中,與accounts.txt一樣,你可以把多餘的資料給砍掉。
Hint
這裡輸出的檔名一定得是copypwd.txt,匯入時程式只會找這個檔名,使用其他檔名程式會無法找到檔案。
再來將accounts.txt放至Server B的C:\底下,copypwd.txt放至C:\copypwd底下,在Command Line底下輸入: addusers /c accounts.txt /p:e  此動作會把accounts.txt內的帳號新增至系統中,參數/p:e的意思是密碼不會過期。 最後,切換至copypwd資料夾,在Command Line底下輸入: copypwd SET  這樣就完成使用者帳密的搬移工作了!

2012年12月8日 星期六

遠端桌面時出現:遠端電腦需要網路層級驗證,但您的電腦並不支援.

當使用XP要透過遠端桌面連線連到WIN7的系統時,出現了:
遠端電腦需要網路層級驗證,但您的電腦並不支援.
 此時是因為XP並不支援此種方式的驗證(Network Level Authentication=NLA),故無法登入,解決方法有兩種,
1.把WIN7的遠端桌面連線選項,從"僅允許來自執行含有網路層級驗證之遠端桌面的電腦進行連線",
 改成"允許來自執行任何版本之遠端桌面的電腦進行連線",但可能就會失去了WIN7增強的安全性
2.再來就是比較麻煩的修改登錄檔先到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
找到Security Packages在鍵值最後加入tspkg,
再到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders
找到SecurityProviders並在鍵值最後加入credssp.dll,
或直接將以下內容複制後另存成.reg後執行,之後重開機後就算完成了
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"Security Packages"=hex(7):6b,00,65,00,72,00,62,00,65,00,72,00,6f,00,73,00,00,\
  00,6d,00,73,00,76,00,31,00,5f,00,30,00,00,00,73,00,63,00,68,00,61,00,6e,00,\
  6e,00,65,00,6c,00,00,00,77,00,64,00,69,00,67,00,65,00,73,00,74,00,00,00,74,\
  00,73,00,70,00,6b,00,67,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders]
"SecurityProviders"="msapsspc.dll, schannel.dll, digest.dll, msnsspc.dll,credssp.dll"
遠端桌面7.0 For WinXP

2012年9月8日 星期六

Windows Physical Memory Limits

以下節自MSDN http://msdn.microsoft.com/en-us/library/aa366778%28VS.85%29.aspx


Physical Memory Limits: Windows 7

The following table specifies the limits on physical memory for Windows 7.
VersionLimit on X86Limit on X64
Windows 7 Ultimate4 GB192 GB
Windows 7 Enterprise4 GB192 GB
Windows 7 Professional4 GB192 GB
Windows 7 Home Premium4 GB16 GB
Windows 7 Home Basic4 GB8 GB
Windows 7 Starter2 GBN/A

Physical Memory Limits: Windows Server 2008 R2

The following table specifies the limits on physical memory for Windows Server 2008 R2. Windows Server 2008 R2 is available only in 64-bit editions.
VersionLimit on X64Limit on IA64
Windows Server 2008 R2 Datacenter2 TB
Windows Server 2008 R2 Enterprise2 TB
Windows Server 2008 R2 for Itanium-Based Systems
2 TB
Windows Server 2008 R2 Foundation8 GB
Windows Server 2008 R2 Standard32 GB
Windows HPC Server 2008 R2 128 GB
Windows Web Server 2008 R232 GB

Physical Memory Limits: Windows Server 2008

The following table specifies the limits on physical memory for Windows Server 2008. Limits greater than 4 GB for 32-bit Windows assume that PAE is enabled.
VersionLimit on X86Limit on X64Limit on IA64
Windows Server 2008 Datacenter64 GB1 TB
Windows Server 2008 Enterprise64 GB1 TB
Windows Server 2008 HPC Edition
128 GB
Windows Server 2008 Standard4 GB32 GB
Windows Server 2008 for Itanium-Based Systems

2 TB
Windows Small Business Server 20084 GB32 GB
Windows Web Server 20084 GB32 GB

Physical Memory Limits: Windows Vista

The following table specifies the limits on physical memory for Windows Vista.
VersionLimit on X86Limit on X64
Windows Vista Ultimate4 GB128 GB
Windows Vista Enterprise4 GB128 GB
Windows Vista Business4 GB128 GB
Windows Vista Home Premium4 GB16 GB
Windows Vista Home Basic4 GB8 GB
Windows Vista Starter1 GB

Physical Memory Limits: Windows Home Server

Windows Home Server is available only in a 32-bit edition. The physical memory limit is 4 GB.

Physical Memory Limits: Windows Server 2003 R2

The following table specifies the limits on physical memory for Windows Server 2003 R2. Limits over 4 GB for 32-bit Windows assume that PAE is enabled.
VersionLimit on X86Limit on X64
Windows Server 2003 R2 Datacenter Edition64 GB
(16 GB with 4GT)
1 TB
Windows Server 2003 R2 Enterprise Edition64 GB
(16 GB with 4GT)
1 TB
Windows Server 2003 R2 Standard Edition4 GB32 GB

Physical Memory Limits: Windows Server 2003 with Service Pack 2 (SP2)

The following table specifies the limits on physical memory for Windows Server 2003 with Service Pack 2 (SP2). Limits over 4 GB for 32-bit Windows assume that PAE is enabled.
VersionLimit on X86Limit on X64Limit on IA64
Windows Server 2003 with Service Pack 2 (SP2), Datacenter Edition64 GB
(16 GB with 4GT)
1 TB2 TB
Windows Server 2003 with Service Pack 2 (SP2), Enterprise Edition64 GB
(16 GB with 4GT)
1 TB2 TB
Windows Server 2003 with Service Pack 2 (SP2), Standard Edition4 GB32 GB

Physical Memory Limits: Windows Server 2003 with Service Pack 1 (SP1)

The following table specifies the limits on physical memory for Windows Server 2003 with Service Pack 1 (SP1). Limits over 4 GB for 32-bit Windows assume that PAE is enabled.
VersionLimit on X86Limit on X64Limit on IA64
Windows Server 2003 with Service Pack 1 (SP1), Datacenter Edition64 GB
(16 GB with 4GT)
X64 1 TB1 TB
Windows Server 2003 with Service Pack 1 (SP1), Enterprise Edition64 GB
(16 GB with 4GT)
X64 1 TB1 TB
Windows Server 2003 with Service Pack 1 (SP1), Standard Edition4 GB32 GB

Physical Memory Limits: Windows Server 2003

The following table specifies the limits on physical memory for Windows Server 2003. Limits over 4 GB for 32-bit Windows assume that PAE is enabled.
VersionLimit on X86Limit on IA64
Windows Server 2003, Datacenter Edition64 GB
(16 GB with 4GT)
512 GB
Windows Server 2003, Enterprise Edition64 GB
(16 GB with 4GT)
512 GB
Windows Server 2003, Standard Edition4 GB
Windows Server 2003, Web Edition2 GB
Windows Small Business Server 20034 GB
Windows Compute Cluster Server 2003
32 GB
Windows Storage Server 2003, Enterprise Edition8 GB
Windows Storage Server 20034 GB

Physical Memory Limits: Windows XP

The following table specifies the limits on physical memory for Windows XP.
VersionLimit on X86Limit on X64Limit on IA64
Windows XP4 GB128 GB128 GB (not supported)
Windows XP Starter Edition512 MBN/AN/A

Physical Memory Limits: Windows Embedded

The following table specifies the limits on physical memory for Windows Embedded.
VersionLimit on X86Limit on X64
Windows XP Embedded4 GB
Windows Embedded Standard 20094 GB
Windows Embedded Standard 74 GB192 GB

2010年2月8日 星期一

(轉載)克服Windows基本磁碟2TB分割區上限問題

在Windows下建立大型磁碟分割區時,最多只能建立到2TB,即使不需要多個分割區,仍會被迫將磁碟陣列切割為多個分割區,才能充分利用容量,這是什麼原因?如何突破限制?

在Windows下以實體磁碟機建立基本磁碟時,是以分割(Partition)作為儲存與管理的單位,又分為主要分割與延伸分割,主要磁碟分割中可存放引導系統開機用的主開機紀錄,藉由MBR分區表(partition table)可啟動各個延伸分割,進而啟始作業系統。

但問題在於受定址能力所限, MBR分割表對應的分割容量上限為2TB,若實體磁碟的容量大於2TB,則必須分割為多個基本磁碟區。
這對只有1~2臺硬碟的一般單機應用環境來說問題不大,但在磁碟陣列應用上就會造成許多限制。考慮到現在的硬碟容量越來越大,單臺容量750GB與1TB 的產品都已經上市,若使用這類硬碟建立磁碟陣列,只要用上2或3臺硬碟就會遭遇2TB上限問題。

動態磁碟
微軟後來在Windows 2000上增加了動態磁碟(Dynamic disks)的概念,可提供基本磁碟所沒有的功能。動態磁碟是以磁碟區(Volume)為管理單位,透過檔案系統之下的磁碟區管理器(Volume Manager),可建立跨越多個磁碟的磁碟區,如跨距或等量磁碟區;或是建立有容錯功能的磁碟區,如鏡像磁碟區與RAID 5 磁碟區。

動態磁碟雖能透過跨距或等量磁碟的方式實現2TB以上的磁碟區,但因為動態磁碟必須透過Volume Manager來執行磁碟區的管理與存取,因此系統存取動態磁碟時必須經過Volume Manager與檔案系統兩層的處理,以致有效能方面的問題。

GUID 磁碟分割
根本解決方式是提高作業系統對磁碟分割的定址能力,如微軟在Windows Server 2003新增的GUID 磁碟分割表(GUID Partition Table,GPT)。GPT分割表支援的磁碟區分割最大可達18 EB,每個磁碟最多可有128個磁碟分割,相較下傳統的MBR分割則分別只有2TB與4個分割(此處原文作者應該是指主分割區,GPT應該也是)

但在實際環境中,作業系統支援GPT分割只是建立2TB以上磁碟區的必要條件之一,其他條件包括磁碟陣列控制器或主機板上內建的磁碟控制晶片必須支援大於 2TB的Volume定址,且該控制器或控制晶片在Windows中的驅動程式也必須支援64位元的邏輯區塊定址(Logical Block Addressing,LBA)。

限制儲存容量的因素
從最上層應用程式資料到儲存裝置,資料必須經過應用程式、作業系統、檔案系統、磁碟區管理器(Volume Manager)、儲存裝置驅動程式、儲存裝置等環節,任一環節都會影響到可用的儲存容量。

1. 不同版本作業系統的硬碟分割方式(Partition styles)支援的分割區容量不同。如MBR分割的分割區上限為2TB,GPT分割則可達到18EB。

2. 不同檔案系統支援的分割區大小不同,FAT16上限為2GB,FAT32為2TB,NTFS為16EB。

3. Volume Manager的作用是將對磁碟的存取轉換為對應的指令,對於ATA設備發送ATA指令;對SCSI設備則發送一個包含SCSI的指令,而SCSI Block Command指令中的LBA位址變數長度,將決定一個目標上的LUN所能存取的儲存空間。原來的SCSI指令集中的LBA為32位元,而硬碟每個區塊大小為512Bytes,2的32次方乘以512等於2TB,也就有2TB的限制。而在SCSI Block Command第二版中,LBA已擴展到64位元,因而突破了限制。

4. 儲存設備與儲存設備驅動程式方面,舊的IDE硬碟採用的CHS定址上限為512MB,後來改用28位元LBA就達到137GB。目前SATA與 SCSI/SAS硬碟多使用48位元LBA定址,容量上限為137TB。

早先的限制主要出在硬碟的定址能力方面,後來改用48位元LBA後消除了這個限制,但作業系統分割方式、檔案系統與存取指令又成為瓶頸。在Windows導入GPT磁碟後,目前的瓶頸又回到磁碟LBA定址能力上,不過目前48位元LBA應該還能維持很長的時間。

本文轉自 ITHome Online

2010年1月4日 星期一

Memtest86+ 4.00 發佈

Memtest86+ 4.00 發佈 - 檢測記憶體的好工具
官網下載 以下內容節自官網
*** Enhancements in v4.00 :
***

  • New Features
    • Major Architectural changes
    • First pass twice faster (reduced iterations)
    • Detect DDR2/3 brands and part numbers on Intel DDR2/3 chipsets
    • Added detection for Intel "Clarkdale" CPU
    • Added detection for Intel "Gulftown" CPU
    • Added detection for AMD "Magny-Cours" CPU
    • Added detection for Intel XMP Memory
    • Added for CPU w/ 0.5/1.5/3/6/12/16/18/24MB L3
    • Added "clean" DMI detection for DDR3/FBDIMM2
    • Better detection of Integrated Memory Controllers
  • Bug Fixes
    • Corrected detection for Intel "Lynnfield" CPU
    • Corrected detection for AMD 45nm K10 CPU
    • Solved crash with AMD Geode LX
    • Complies with SMBIOS 2.6.1 specs
    • Fixed compilation issues with gcc 4.2+
    • Many others bug fixes