顯示具有 Windows Server 2022 標籤的文章。 顯示所有文章
顯示具有 Windows Server 2022 標籤的文章。 顯示所有文章

2024年7月26日 星期五

[研究]Windows Server 2022忘記密碼處理

[研究]Windows Server 2022忘記密碼處理

2024-07-26

忘記 Windows Server 2022 所有管理員密碼,如何用 Windows Server 2022 Bootable Installable USB  Flash 重設 administrator 密碼  ?

Power On電腦開機時,快速多按下幾次F8按鍵。

1.進入修復模式:

當安裝程序啟動時,選擇您的語言設置,然後點擊「下一步」。

點擊左下角的「修復您的電腦」,選擇「疑難解答」 > 「命令提示字元」。

更改 utilman.exe 為 cmd.exe:

在命令提示符中輸入以下命令,進入 Windows 安裝目錄:

cd /d D:\Windows\System32

如果 D: 不是您的 Windows 安裝分區,請根據需要調整。(可能是 C: 或 D: 或 E:,找有 utilman.exe 和 cmd.exe 檔案的)


2.將 utilman.exe 更名為備份文件:

ren utilman.exe utilman.exe.bak

將 cmd.exe 複製並重命名為 utilman.exe:

copy cmd.exe utilman.exe

重啟到正常模式:

關閉命令提示符並選擇「繼續」以重新啟動到 Windows。


3.重設密碼:

在登錄屏幕上,點擊「輔助工具」圖標(應該打開命令提示符)。

在命令提示符中輸入以下命令來重設管理員密碼:

net user administrator 新密碼


4.恢復 utilman.exe:

cd /d D:\Windows\System32

del utilman.exe

ren utilman.exe.bak utilman.exe

這樣您就可以重置 Windows Server 2022 的管理員密碼了。

********************************************************************************

實務上可能略有不同,例如

ren utilman.exe.old utilman.exe 出現 "存取被拒。"

變通一下

copy utilman.exe.old utilman.exe 成功。


一開始要改的在 E:,改好重啟後,utilman.exe 和 cmd.exe 是在 C:









Windows Server 2016、Windows Server 2019、Windows Server 2022 都是 NT 10.0,方法可能相同。

(完)

2023年5月2日 星期二

[研究]Windows Server 2022-復原

[研究]Windows Server 2022-復原

2023-05-02

今天突然看到某台 Windows Server 2022出現「復原」訊息,紀錄一下。






(完)

2021年10月26日 星期二

[研究] IIS SMTP 6.0 在 Windows Server 2022 有 Bug 無法用?

[研究] IIS SMTP 6.0 在 Windows Server 2022 有 Bug 無法用?

2021-10-26

(下圖) Windows Server 2022 Standard 上,在 IIS SMTP 6.0 的 Internet Information Services (IIS) 6.0 Manager 的 [SMTP Virtual Server #1] 上按下滑鼠右鍵,選「內容」


(下圖) 結果出現「告知Microsoft這個錯誤然後關閉MMC」、「略過這個錯誤並繼續執行」。
選「告知Microsoft這個錯誤然後關閉MMC」,畫面就關閉了。
選「略過這個錯誤並繼續執行」,畫面是仍在,但 ... 我要設定它啊 ...



(下圖) 這是 Windows Server 2019 的 IIS SMTP 畫面,正常而言,Windows Server 2022 應該也是此畫面。

********************************************************************************

Google 了一下

[Server Buld 20303.1] IIS 6 Manager crashes trying to edit SMTP Virtual Server Properties - Microsoft Tech Community
https://techcommunity.microsoft.com/t5/windows-server-insiders/server-buld-20303-1-iis-6-manager-crashes-trying-to-edit-smtp/m-p/2215174

********************************************************************************

Kevin Shaughnessy - Sr. Program Manager - Microsoft Exchange Transport
凱文·肖內  高級項目經理  Microsoft Exchange

Features Removed or Deprecated in Windows Server 2012
Windows Server 2012 中刪除或棄用的功能
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh831568(v=ws.11)

SMTP

SMTP and the associated management tools are deprecated. Though the functionality is still available in Windows Server 2012, you should begin using System.Net.Smtp. With this API, you will not be able to insert a message into a file for pickup; instead configure Web applications to connect on port 25 to another server using SMTP.

不推薦使用 SMTP 和相關的管理工具。儘管該功能在 Windows Server 2012 中仍然可用,但您應該開始使用 System.Net.Smtp。使用此 API,您將無法將消息插入文件中以供取件;而是將 Web 應用程序配置為使用 SMTP 在端口 25 上連接到另一台服務器。

註:上面疑似寫錯,不是 System.Net.Smtp,是 System.Net.Mail。

********************************************************************************

You'd have to write an application using System.SMTP.Mail or update an existing app to use it. MailKit is another popular SMTP set of services - still requires coding though. Other alternatives include turboSMTP (https://www.serversmtp.com/smtp-for-windows/), a popular SMTP service for Windows that doesn't require coding.

您必須使用 System.SMTP.Mail 編寫應用程序或更新現有應用程序才能使用它。MailKit 是另一個流行的 SMTP 服務集——不過仍然需要寫程式。其他替代方案包括 turboSMTP ( https://www.serversmtp.com/smtp-for-windows/ ),這是一種流行的 Windows SMTP 服務,不需要寫程式。

********************************************************************************

System.Net.Mail

System.Net.Mail 命名空間 | Microsoft Docs
https://docs.microsoft.com/zh-tw/dotnet/api/system.net.mail?view=net-5.0

SmtpClient 類別 (System.Net.Mail) | Microsoft Docs
https://docs.microsoft.com/zh-tw/dotnet/api/system.net.mail.smtpclient?view=net-5.0

SmtpClient.Send 方法 (System.Net.Mail) | Microsoft Docs
https://docs.microsoft.com/zh-tw/dotnet/api/system.net.mail.smtpclient.send?view=net-5.0

[研究][C#][ASP.NET] 加簽寄信 (使用 System.Net.Mail.MailMessage)
http://shaurong.blogspot.com/2019/10/caspnet-systemnetmailmailmessage.html

********************************************************************************

(完)

2021年8月24日 星期二

2021年6月17日 星期四

[研究] Windows Server 2022 Preview 安裝記

[研究] Windows Server 2022 Preview 安裝記

2021-06-17

Windows Server 2022 Preview (x64) - DVD (Chinese-Traditional)

ct_windows_server_2022_preview_x64_dvd_7e6eb90c.iso

4.54 GB (4,881,731,584 位元組)

2021-05-04 釋出

不難安裝,只是做個紀錄。

Click 圖片可看 100% 原始尺寸圖片。




















另外測試安裝了 IIS,仍和 Windows Server 2019 依樣是 10.0 版, IIS SMTP 也仍是 6.0 版。


**********

2021-06-19

Try Windows Server 2022 Preview on Microsoft Evaluation Center

https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2022-preview

**********

這邊還沒提供

https://www.microsoft.com/zh-tw/evalcenter/

(完)