要建立AD時系統告訴我要強制使用Administrator的密碼
因此必須於command line 使用下列指令才有辦法繼續裝domain
net user Administrator
回歸料理的原點
前往 C:\WINDOWS\ServicePackFiles\i386
將這三份檔案複製 msgrocm.dll, ocmsn.dll, msnmsn.inf
複製於以下路徑 C:\WINDOWS\SYSTEM32
MsXmL3.dll ↓↓↓↓
MS:Microsoft
XML:一種The Extensible Markup Language XML是一種簡單的數據存儲語言
MSXML3 = 微軟XML 版本3
要解決此問題,可能有幾個方法:
以下是使用 SSIS ,將資料匯入到 Excel 2003(*.xls)所遇到錯誤:
Excel 2003(*.xls)至多僅能達到 65,536 列。
改用新版本的 Excel 2007(*.xlsx) 也可以改善這些問題,舉例來說:

在 Integration Services 中,要與 Excel 2007 連線時,可能要注意以下幾件事情:
新版本的 ACE 驅動程式,可以稍作屬性的調整,就可以與 Excel 2007 及 Access 2007 連線,請各位參考以下的整理:
筆者提供與利用[SQL Server 匯入和匯出精靈]與 Excel 2007 連線的設定步驟:
0. 請事先利用 Excel 2007 在 C:\ 中,建立 Ex01.xlsx 的檔案。
1. 在資料來源或是目的地的驅動程式部分,選擇[Microsoft Office 12.0 Access Database Engine OLE DB Provider]。

2. 點選[屬性],在[資料連結內容]畫面,點選[資料來源],輸入:C:\Ex01.xlsx。
3. 點選[全部]頁面,點選[Extended Properties],點選[編輯內容值],輸入以下的資料:Excel 12.0。

4. 再點選回[連線]頁面,點選[測試連線],正常應該可以看到測試連線成功的訊息,請按下[確定]\[確定],完成與 Excel 2007 的連線設定,按[下一步]。
若是沒有事先建立 Excel 2007(*.xlsx)檔案時:
如果您的需求是讓 SSIS 於執行時,當下由系統動態創建此 *.xlsx 檔案,無須事先建立此 *.xlsx 檔案。
請將輸入的副檔名修改為 *.xlsb 檔案格式,就可以讓系統自行動態建立此檔案,也能夠正常開啟運作。
Excel 2007 的檔案格式
參考資料:
Excel 2007 中支援的檔案格式
http://office.microsoft.com/zh-tw/excel/HP100141031028.aspx
將 Office Excel 2007 與舊版 Excel 搭配使用
http://office.microsoft.com/zh-hk/excel/HA100775613076.aspx
新副檔名與 Office XML Formats 簡介
http://office.microsoft.com/zh-tw/help/HA100069351028.aspx
Excel 2007 的規格及限制
http://office.microsoft.com/zh-tw/excel/HP100738491028.aspx
Improving Performance in Excel 2007
http://msdn2.microsoft.com/zh-tw/library/aa730921.aspx#Office2007excelPerf_BigGridIncreasedLimitsExcel
無法匯入超過 65,536 列是文字檔到 Excel 97、 Excel 2000、 Excel 2002 和 Excel 2003
http://support.microsoft.com/kb/120596/
Summary of capability limitations in Excel 97
http://support.microsoft.com/kb/296053/en-us
匯出至 Excel (*.xls)的限制
http://technet.microsoft.com/zh-tw/library/aa337207.aspx
Limitations with Exporting to Excel(*.xls)
http://msdn2.microsoft.com/en-us/library/aa337207.aspx
資料來源:http://blog.csdn.net/Johnson_hejun/archive/2008/11/12/3284582.aspx
資料來源:http://blog.miniasp.com/post/2009/06/Sleep-command-in-Batch.aspx
1. 利用 PING 指令幫忙停 5 秒
每壹台電腦都有 PING 執行檔,這個最好用啦!
@ping 127.0.0.1 -n 5 -w 1000 > nul
2. 利用 CHOICE 指令
CHOICE 命令在 Windows XP 中找不到,但在 Windows Server 2003 或 Vista 都有內建。
@CHOICE /C YN /N /T 5 /D y > nul
3. 安裝 Windows Server 2003 Resource Kit Tools 即可獲得 sleep.exe 工具
預設安裝路徑在 C:\Program Files\Windows Resource Kits\Tools 目錄下會有個 sleep.exe 執行檔
sleep 5
附原文:
The logon/logoff category of the Windows security log gives you the ability to monitor all attempts to access the local computer. In this article I’ll examine each logon type in greater detail and show you how some other fields in Logon/Logoff events can be helpful for understanding the nature of a given logon attempt.
Event IDs 528 and 540 signify a successful logon, event ID 538 a logoff and all the other events in this category identify different reasons for a logon failure. However, just knowing about a successful or failed logon attempt doesn’t fill in the whole picture. Because of all the services Windows offers, there are many different ways you can logon to a computer such as interactively at the computer’s local keyboard and screen, over the network through a drive mapping or through terminal services (aka remote desktop) or through IIS. Thankfully, logon/logoff events specify the Logon Type code which reveals the type of logon that prompted the event.
Logon Type 2 – Interactive
This is what occurs to you first when you think of logons, that is, a logon at the console of a computer. You’ll see type 2 logons when a user attempts to log on at the local keyboard and screen whether with a domain account or a local account from the computer’s local SAM. To tell the difference between an attempt to logon with a local or domain account look for the domain or computer name preceding the user name in the event’s description. Don’t forget that logon’s through an KVM over IP component or a server’s proprietary “lights-out” remote KVM feature are still interactive logons from the standpoint of Windows and will be logged as such.
Logon Type 3 – Network
Windows logs logon type 3 in most cases when you access a computer from elsewhere on the network. One of the most common sources of logon events with logon type 3 is connections to shared folders or printers. But other over-the-network logons are classed as logon type 3 as well such as most logons to IIS. (The exception is basic authentication which is explained in Logon Type 8 below.)
Logon Type 4 – Batch
When Windows executes a scheduled task, the Scheduled Task service first creates a new logon session for the task so that it can run under the authority of the user account specified when the task was created. When this logon attempt occurs, Windows logs it as logon type 4. Other job scheduling systems, depending on their design, may also generate logon events with logon type 4 when starting jobs. Logon type 4 events are usually just innocent scheduled tasks startups but a malicious user could try to subvert security by trying to guess the password of an account through scheduled tasks. Such attempts would generate a logon failure event where logon type is 4. But logon failures associated with scheduled tasks can also result from an administrator entering the wrong password for the account at the time of task creation or from the password of an account being changed without modifying the scheduled task to use the new password.
Logon Type 5 – Service
Similar to Scheduled Tasks, each service is configured to run as a specified user account. When a service starts, Windows first creates a logon session for the specified user account which results in a Logon/Logoff event with logon type 5. Failed logon events with logon type 5 usually indicate the password of an account has been changed without updating the service but there’s always the possibility of malicious users at work too. However this is less likely because creating a new service or editing an existing service by default requires membership in Administrators or Server Operators and such a user, if malicious, will likely already have enough authority to perpetrate his desired goal.
Logon Type 7 – Unlock
Hopefully the workstations on your network automatically start a password protected screen saver when a user leaves their computer so that unattended workstations are protected from malicious use. When a user returns to their workstation and unlocks the console, Windows treats this as a logon and logs the appropriate Logon/Logoff event but in this case the logon type will be 7 – identifying the event as a workstation unlock attempt. Failed logons with logon type 7 indicate either a user entering the wrong password or a malicious user trying to unlock the computer by guessing the password.
Logon Type 8 – NetworkCleartext
This logon type indicates a network logon like logon type 3 but where the password was sent over the network in the clear text. Windows server doesn’t allow connection to shared file or printers with clear text authentication. The only situation I’m aware of are logons from within an ASP script using the ADVAPI or when a user logs on to IIS using IIS’s basic authentication mode. In both cases the logon process in the event’s description will list advapi. Basic authentication is only dangerous if it isn’t wrapped inside an SSL session (i.e. https). As far as logons generated by an ASP, script remember that embedding passwords in source code is a bad practice for maintenance purposes as well as the risk that someone malicious will view the source code and thereby gain the password.
Logon Type 9 – NewCredentials
If you use the RunAs command to start a program under a different user account and specify the /netonly switch, Windows records a logon/logoff event with logon type 9. When you start a program with RunAs using /netonly, the program executes on your local computer as the user you are currently logged on as but for any connections to other computers on the network, Windows connects you to those computers using the account specified on the RunAs command. Without /netonly Windows runs the program on the local computer and on the network as the specified user and records the logon event with logon type 2.
Logon Type 10 – RemoteInteractive
When you access a computer through Terminal Services, Remote Desktop or Remote Assistance windows logs the logon attempt with logon type 10 which makes it easy to distinguish true console logons from a remote desktop session. Note however that prior to XP, Windows 2000 doesn’t use logon type 10 and terminal services logons are reported as logon type 2.
Logon Type 11 – CachedInteractive
Windows supports a feature called Cached Logons which facilitate mobile users. When you are not connected to the your organization’s network and attempt to logon to your laptop with a domain account there’s no domain controller available to the laptop with which to verify your identity. To solve this problem, Windows caches a hash of the credentials of the last 10 interactive domain logons. Later when no domain controller is available, Windows uses these hashes to verify your identity when you attempt to logon with a domain account.
Conclusion
I hope this discussion of logon types and their meanings helps you as you keep watch on your Windows network and try to piece together the different ways users are accessing your computers. Paying attention to logon type is important because different logon types can affect how you interpret logon events from a security perspective. For instance a failed network logon on a server might now be surprising since users must access servers over the network all the time. But a failed network logon attempt in a workstation security log is different. Why is anyone trying to access someone else’s workstation from over the network? As you can see, it pays to understand the security log.
| Event ID | Description |
|---|---|
528 | Successful logon. |
529 | Logon failure. Unknown user name or bad password. |
530 | Logon failure. Account logon time restriction violation. |
531 | Logon failure. The account is currently disabled. |
532 | Logon failure. The specified user account has expired. |
533 | Logon failure. The user is not allowed to log on at this computer. |
534 | Logon failure. The user has not been granted the requested logon type at this computer. |
535 | Logon failure. The specified account’s password has expired. |
536 | Logon failure. The NetLogon component is not active. |
537 | Logon failure. An unexpected error occurred during logon. |
538 | User logoff. This event is generated when the logoff process is complete. A logoff is considered complete when the associated logon session object is deleted, which occurs after all tokens associated with the logon session are closed. This can take an arbitrarily long time; this event should not be used to calculate the total logon duration. Instead, use event 551. |
539 | Logon failure. Account locked out. |
540 | Successful network logon. |
541 | IPSec security association established. |
542 | IPSec security association ended. Mode: Data Protection (Quick mode). |
543 | IPSec security association ended. Mode: Key Exchange (Main mode). |
544 | IPSec security association establishment failed because peer could not authenticate. The certificate trust could not be established. |
545 | IPSec peer authentication failed. |
546 | IPSec security association establishment failed because peer sent invalid proposal. |
547 | IPSec security association negotiation failed. |
548 | Logon failure. Domain security identifier (SID) is inconsistent. This event is generated when a user account from a trusted domain attempts to authenticate, but the domain SID does not match the SID stored in the Trusted Domain Object (TDO). |
549 | Logon failure. All SIDs were filtered out. During authentication across forests, SIDs corresponding to untrusted namespaces are filtered out. This event is generated when all SIDs are filtered. This event is generated on the Kerberos Key Distribution Center (KDC). This event is not generated on Windows Server 2003. |
550 | Notification message that can indicate a possible denial-of-service attack. |
551 | User-initiated logoff. This event is generated when the user initiates the logoff process. When the logoff process is complete, event 538 is logged. |
552 | Successful logon. This event is generated when a user logs on with explicit credentials while already logged on as another user. This event is logged when using the RunAs tool. |
553 | Logon failure. This event is generated when an authentication package detects a replay attack. |