顯示具有 window 標籤的文章。 顯示所有文章
顯示具有 window 標籤的文章。 顯示所有文章

2012/06/01

如何開啟 Windows 中的自動登入

系統提示本篇文章的內容適用於其他版本的 Windows (不涵蓋您正在使用的版本) 。本篇文章的內容可能不適用您參考。瀏覽 Windows XP 解決方案中心

使用登錄編輯程式啟用自動登入

警告 如果您使用「登錄編輯程式」或其他方法不當地修改登錄,可能會發生嚴重問題。您可能需要重新安裝作業系統,才能解決這些問題。Microsoft 不保證可以解決這些問題。請自行承擔修改登錄的一切風險。
如果要使用「登錄編輯程式」(Regedt32.exe) 啟用自動登入,請依照下列步驟執行:
  1. 按一下 [開始],然後按一下 [執行]。
  2. 在 [開啟] 方塊中,輸入 Regedt32.exe,然後按下 ENTER。
  3. 在登錄中找出下列子機碼:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  4. 按兩下 [DefaultUserName] 項目,輸入您的使用者名稱,然後按一下 [確定]。
  5. 按兩下 [DefaultPassword] 項目,輸入您的密碼,然後按一下 [確定]。注意:如果 DefaultPassword 值不存在,您必須新增該值。如果要新增這個值,請依照下列步驟執行:

    1. 在 [編輯] 功能表上,按一下 [新增],然後指向 [字串值]。
    2. 輸入 DefaultPassword,然後按 ENTER。
    3. 按兩下 [DefaultPassword]。
    4. 在 [編輯字串] 對話方塊中,輸入您的密碼,然後按一下 [確定]。
    注意:如果沒有指定 DefaultPassword 字串,Windows 就會自動將 AutoAdminLogon 機碼的值從 1 (True) 變更為 0 (False),以停用 AutoAdminLogon 功能。
  6. 在 [編輯] 功能表上,按一下 [新增],然後指向 [字串值]。
  7. 輸入 AutoAdminLogon,然後按 ENTER。
  8. 按兩下 [AutoAdminLogon]。
  9. 在 [編輯字串] 對話方塊中,輸入 1,然後按一下 [確定]。
  10. 結束 [登錄編輯程式]。
  11. 按一下 [開始],按一下 [關機],然後在 [註解] 文字方塊中輸入原因。
  12. 按一下 [確定] 以關閉您的電腦。
  13. 重新啟動您的電腦。現在,您已經可以自動登入。
注意 如果要略過 AutoAdminLogon 程序,並以不同的使用者身分登入,請在登出或 Windows 重新啟動之後,按住 SHIFT 鍵。

如果群組原則物件 (GPO) 或本機原則在伺服器上定義「登入標誌」,登錄變更將不會生效。當原則變更為不會影響伺服器時,這個功能就會如預期般運作。

伺服器上存有不同使用者的互動式主控台在登入時,會將 DefaultUserName 登錄項目變更為最後登入的使用者指標。AutoAdminLogon 會依賴 DefaultUserName 項目來配對使用者和密碼,因此 AutoAdminLogon 可能會失敗。您可以設定關機指令碼,為 AutoAdminLogonAs 設定正確的 DefaultUserName 項目。 如需詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:
119364  AutoAdminLogon Loses DefaultUserName 
Ref>
http://support.microsoft.com/kb/324737/zh-tw


[1]
Windows Server 2003 每次開機都要輸入"Ctrl+Alt+Del",然後再輸入用戶名和密碼才能登錄。
這樣設定總是感覺很麻煩。網路搜尋了許久,終於讓我找到方法啦~~
可以透過以下方法實現自動登錄:
1.點選 開始 > 執行
2.在"執行"視窗中輸入"control userpasswords2"後點選"確定"
3.此時就會開啟"使用者帳戶"視窗
4.將"必須輸入使用者名稱和密碼,才能使用這台電腦"選項取消勾選後點選"確定"
5.系統會跳出"自動登入"視窗,輸入"密碼"及"確認密碼"後點選"確定"
6.這樣就可以囉,重新開機就會自動登入到桌面,若要取消自動登入只要將選項勾選即可

[2]
Windows Server 2003 自動登入
簡單的說就是 Regedit -> Winlogon -> DefaultUserName / DefaultPassword / AutoAdminLogon=1 


1. 按「開始」,然後按「執行」。
2. 在「開啟」 方塊中,輸入 Regedt32.exe,然後按下 ENTER。
3. 在登錄中找出下列子機碼:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
4. 按兩下「DefaultUserName」 項目,輸入您的使用者名稱,然後按「確定」。
5. 按兩下「DefaultPassword」 項目,輸入您的密碼,然後按「確定」。注意:如果 DefaultPassword 值不存在,您必須新增該值。如果要新增這個值,請依照下列步驟執行:

5.1. 在「編輯」 功能表上,按「新增」,然後指向「字串值」。
5.2. 輸入 DefaultPassword,然後按 ENTER。
5.3. 按兩下「DefaultPassword」。
5.4. 在「編輯字串」 對話方塊中,輸入您的密碼,然後按「確定」。
注意:如果沒有指定 DefaultPassword 字串,Windows 就會自動將 AutoAdminLogon 機碼的值從 1 (True) 變更為 0 (False),以停用 AutoAdminLogon 功能。
6. 在「編輯」 功能表上,按「新增」,然後指向「字串值」。
7. 輸入 AutoAdminLogon,然後按 ENTER。
8. 按兩下「AutoAdminLogon」。
9. 在「編輯字串」 對話方塊中,輸入 1,然後按「確定」。
10. 結束「登錄編輯程式」。
11. 按「開始」,按「關機」,然後在「註解」 文字方塊中輸入原因。
12. 按「確定」 以關閉您的電腦。
13. 重新啟動您的電腦。現在,您已經可以自動登入。
注意 如果要略過 AutoAdminLogon 程序,並以不同的使用者身分登入,請在登出或 Windows 重新啟動之後,按住 SHIFT 鍵。
http://support.microsoft.com/kb/324737

2012/04/12

shutdown.exe

Microsoft Windows XP [版本 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\usr_name>shutdown.exe
使用方式: shutdown.exe [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx]
 [-c "comment"] [-d up:xx:yy]

        沒有引數                顯示這個訊息 (和 -? 相同)
        -i                      顯示 GUI 介面,必須是第一個選項
        -l                      登出 (不能和 -m 選項一起使用)
        -s                      電腦關機
        -r                      關機並重新啟動電腦
        -a                      中止系統關機
        -m \\\\computername     從遠端進行關機/重新啟動/中止
        -t xx                   將關機等候時間設定成 xx 秒
        -c "comment"            關機註解 (最多 127 個字元)
        -f                      強制關閉執行中的應用程式,不顯示警告
        -d [u][p]:xx:yy         關機原因代碼
                                u 是使用者代碼
                                p 是預先計劃的關機代碼
                                xx 是主要原因代碼 (小於 256 的正整數)
                                yy 是次要原因代碼 (小於 65536 的正整數)

2012/01/18

PHPExcel Fatal error: Class 'ZipArchive' not found in \Classes\PHPExcel\Writer\Excel2007.php on line 225

#AppServ Open Project - 2.5.10 for Windows
#PHP Version 5.2.6

01:46:13 Create new PHPExcel object 01:46:13 Set properties 01:46:13 Add some data 01:46:13 Rename sheet 01:46:13 Write to Excel2007 format
Fatal error: Class 'ZipArchive' not found in C:\AppServ\www\Classes\PHPExcel\Writer\Excel2007.php on line 225

step1/2

@php.ini
;extension=php_zip.dll >>> extension=php_zip.dll
&
zlib.output_compression = Off >>> zlib.output_compression = On


step2/2
restart Apache

2012/01/17

Wow!USB Protector

感謝你使用 Wow!USB系統的免費工具。

Wow!USB Protector 啟動時,每次開啟,有一個小視窗閃一下又消失,
然後他會跑到桌面的右下角,有一個鎖的圖案。如果有的話,就表示開啟成功。

因為這個系統是給 Windows XP 使用,若是 Vista 以上的作業系統,
有可能缺少 MSVCR71.dll 這個檔。解決方法可以從網路上找到MSVCR71.dll,然後下載到
C:\Windows\System32 資料夾底下即可。

另外,Error loading Python DLL ,C:\DOCUME-1\RCH\LOCALS-1\Temp\_MEI1736python25.dll
可以參考 http://antbsd.twbbs.org/~ant/wordpress/?p=1591 的 FAQ 9

Ref>
http://forum.icst.org.tw/phpbb/viewtopic.php?t=18018

2011/12/03

shutdown

xp

使用方式: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c
 "comment"] [-d up:xx:yy]

        沒有引數                顯示這個訊息 (和 -? 相同)
        -i                      顯示 GUI 介面,必須是第一個選項
        -l                      登出 (不能和 -m 選項一起使用)
        -s                      電腦關機
        -r                      關機並重新啟動電腦
        -a                      中止系統關機
        -m \\\\computername     從遠端進行關機/重新啟動/中止
        -t xx                   將關機等候時間設定成 xx 秒
        -c "comment"            關機註解 (最多 127 個字元)
        -f                      強制關閉執行中的應用程式,不顯示警告
        -d [u][p]:xx:yy         關機原因代碼
                                u 是使用者代碼
                                p 是預先計劃的關機代碼
                                xx 是主要原因代碼 (小於 256 的正整數)
                                yy 是次要原因代碼 (小於 65536 的正整數)

2011/11/11

Installing IIS 7.0 on Windows Vista / W7 Home Premium

To Install IIS 7.0 on Windows Vista

You can perform this procedure using the user interface (UI) or a script.
Using the UI
  1. Click Start and then click Control Panel.
  2. In Control Panel, click Programs and then click Turn on or off Windows Features.
  3. In the Windows Features dialog box, click Internet Information Services and then click OK.

Important

If you use Control Panel to install IIS, you get the default installation, which has a minimum set of features. If you need additional IIS features, such as Application Development Features or Web Management Tools, make sure to select the check boxes associated with those features in the Windows Features dialog box.

Using a script

Type the following command into a script:

start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-BasicAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

Important

If you use this script, you get the full IIS installation, which installs all available feature packages. If there are feature packages you do not need, you should edit the script to install only the packages you require.


Ref>

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