Jump to content

WSUS 2008 [résolu]


Recommended Posts

Bonjour,

J'ai un serveur 2008 Datacenter R2. Sur ce serveur, j'ai un wsus. Ce WSUS reconnait les ordinateurs w10 en Vista.

En faisant des recherches, je dois installer un patchs et ré-indexer la base WSUS.  https://gallery.technet.microsoft.com/ScriptCenter/6f8cde49-5c52-4abd-9820-f1d270ddea61/

Pour cela, on lance un script avec sqlcmd. Mais cela ne marche pas....
 

image.png.886dd665d0d28e2fabe486e43286f026.png

Link to comment
Share on other sites

Ok, mais de ce que je vois tu n'as pas le bon script :transpi:

Essai ca plutôt (je ne prend aucune responsabilité :dd: )

USE [SUSDB]
GO

SET NOCOUNT ON;
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows 10 Enterprise'
WHERE OSMajorVersion = 10 AND OldProductType = 1 AND NewProductType = 4 
-- 4 = Enterprise
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows 10 Pro'
WHERE OSMajorVersion = 10 AND OldProductType = 1 AND NewProductType = 48
-- 48 = Pro
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows 10 Enterprise 2016 LTSB'
WHERE OSMajorVersion = 10 AND OldProductType = 1 AND  NewProductType = 125
-- 125 = Windows 10 Enterprise 2016 LTSB
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows Server 2016 Datacenter'
WHERE OSMajorVersion = 10 AND OldProductType = 3 AND NewProductType = 8
-- 8 = Windows Server 2016 Datacenter
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows Server 2016 Standard'
WHERE OSMajorVersion = 10 AND OldProductType = 3 AND NewProductType = 7
-- 7 = Windows Server 2016 Standard
GO

source: https://social.technet.microsoft.com/Forums/en-US/a05a872f-9a36-484a-9dfb-59d7320623a7/windows-10-pcs-are-shown-in-wsus-as-windows-vista?forum=winserverwsus

 

Link to comment
Share on other sites

Il y a 16 minutes, CryoGen a écrit :

Ok, mais de ce que je vois tu n'as pas le bon script :transpi:

Essai ca plutôt (je ne prend aucune responsabilité :dd: )


USE [SUSDB]
GO

SET NOCOUNT ON;
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows 10 Enterprise'
WHERE OSMajorVersion = 10 AND OldProductType = 1 AND NewProductType = 4 
-- 4 = Enterprise
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows 10 Pro'
WHERE OSMajorVersion = 10 AND OldProductType = 1 AND NewProductType = 48
-- 48 = Pro
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows 10 Enterprise 2016 LTSB'
WHERE OSMajorVersion = 10 AND OldProductType = 1 AND  NewProductType = 125
-- 125 = Windows 10 Enterprise 2016 LTSB
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows Server 2016 Datacenter'
WHERE OSMajorVersion = 10 AND OldProductType = 3 AND NewProductType = 8
-- 8 = Windows Server 2016 Datacenter
UPDATE [dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows Server 2016 Standard'
WHERE OSMajorVersion = 10 AND OldProductType = 3 AND NewProductType = 7
-- 7 = Windows Server 2016 Standard
GO

source: https://social.technet.microsoft.com/Forums/en-US/a05a872f-9a36-484a-9dfb-59d7320623a7/windows-10-pcs-are-shown-in-wsus-as-windows-vista?forum=winserverwsus

 

Beaugoss! Fonctionne!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...