iT邦幫忙

0

很久沒跟WSUS報告狀態的電腦

  • 分享至 

  • xImage

某些電腦"上次狀態報告日期"停留在去年, 有些問題想請教

  1. 有辦法撈取這些上次狀態報告日期停留很久的機器嗎 ?

  2. 造成這現象的原因 我google查大概有兩個原因

a.因為使用Ghost這類的工具造成SID重覆。(這我有Script 可重建)

b.新安裝的電腦,原來的電腦名稱不會自動刪除,會留在WSUS資料庫中,成為一條無效的記錄,這樣也會造成不能報告的問題,微軟提供了工具(Windows Server Update Services API Samples and Tools)可以删除。

問題來了這個工具怎樣使用? 又跟直接從WSUS管控介面刪除電腦是不一樣的嗎?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
8
billlie
iT邦新手 2 級 ‧ 2011-05-04 08:18:08
最佳解答

http://support.microsoft.com/kb/903262/zh-tw
1.將SusClientId機碼刪除
2.gpupdate/force
3.重開機
試看看,電腦GHOST後除了SID會相同外
SusClientID也會相同,刪除後重開機便會重新產生新的SusClientID
然後電腦就會去找WSUS報到了。
或者將以下的語法,另存成BAT檔,於電腦上執行看看
@echo off
if exist %systemdrive%\SUSClientID.log goto end
net stop wuauserv
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f > %systemdrive%\SUSClientID.log 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f >> %systemdrive%\SUSClientID.log 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f >> %systemdrive%\SUSClientID.log 2>&1
net start wuauserv
wuauclt.exe /resetauthorization /detectnow
:end
exit

這是從網路上查到的bat檔,網址忘記了。

lalelee iT邦新手 4 級 ‧ 2011-05-04 08:31:46 檢舉

這個Script 就是我在a 提到的,所以這點是OK的,我的疑問是網路上查到的重裝機電腦時還需要用"Windows Server Update Services API Samples and Tools" 去刪除WSUS中的電腦有這個必要嗎? 還是直接從WSUS 管理介面中刪除即可 ??

4
infornet
iT邦高手 1 級 ‧ 2011-05-04 14:27:58

lalelee提到:
b.新安裝的電腦,原來的電腦名稱不會自動刪除,會留在WSUS資料庫中,成為一條無效的記錄,這樣也會造成不能報告的問題,微軟提供了工具(Windows Server Update Services API Samples and Tools)可以删除。

我自已的習慣是本來就知道要更換電腦,所以會先到WSUS中將該電腦先行移到未分類中之後就刪除。

0
grissonlin
iT邦新手 3 級 ‧ 2016-12-12 13:35:19

我想回覆原本的問題,雖然沒解決我的問題,但或許其他人會用到


微軟提供了工具(Windows Server Update Services API Samples and Tools)可以删除。問題來了這個工具怎樣使用?


用法如下

http://etactiks.blogspot.tw/2011/04/remove-stale-computers-from-wsus.html
Remove stale computers from WSUS
To clean up the old computer objects, use CleanStaleComputers from Windows Server Update Services API Samples and Tools.
Download and install it on the WSUS server and you'll find the tool located in %ProgramFiles%\Update Services 3.0 API Samples and Tools\CleanStaleComputers.
Usage is pretty straight forward, here is an example:

CleanStaleComputers.exe /DAYS:60 /DELETE:NO /PROMPT:NO

This command will move all computers that hasn't contacted the WSUS server in the last 60 days into a "Stale Computers" computer group in WSUS. That makes the task of checking the list of stale computers much easier.

我要發表回答

立即登入回答