Hasim INAL's Braindump / Place 2 Dump.



Hasim INAL's Blog

Microsoft Most Valuable Professional

Home
DC Desing Blog
Administration

RSS Icon

Top Comment Activity

Sql Server 2005 Express (6)
Active Directory'de bir ou içindeki kullanıcıların şifresini resetleme (6)
Kabin içi hava akış diyagramı (2)
Logon Script Parametreleri (1)
VBScript DateAdd Fonksiyonu (1)

Top Focused Entries

Active Directory'de gruplar (2995)
Active Directory'de bir ou içindeki kullanıcıların şifresini resetleme (2542)
Logon Script Parametreleri (2329)
Sql Server 2005 Express (2169)
Word'de logon olan kullanıcının bilgisini girmek. (1636)

Top Scored Entries

Sanallaştırma ve Sanal Ortamların Yönetimi (1)
URL Scan 2.5 (0)
Patch yapılmamış tüm makinaların listesini verir sql querysi (0)
Logon olan kullanıcı isminin computer ve user description kısımlarına yazılması. (0)
Kullanıcıyı screensaver devreye girdiğinde sistemden atma scripti. (0)

Latest Entries

Server Virtualization Validation Program
Kompanzasyon sistemleri nedir? Neden kompanzasyon sistemleri kurarız?
System info Vbscript ile sistem bilgisini alma
Datacenterlarda hava akış yönleri
Kabin içi hava akış diyagramı

Archived Entries

Hyper-V Prerelase&qtden RTM&qte upgrade edilirken dikkat edilmesi gereken şeyler (0)
Server Core Initial Configuration Task list and Commands (0)
Trafo Nedir? (0)
Kabin içi hava akış diyagramı (0)
Datacenterlarda hava akış yönleri (0)



Pazartesi 28/1/08 (951 gün önce)

Patch yapılmamış tüm makinaların listesini verir sql querysi

Gönderen : admin Kategori : SMS Saat : 11:47:48
Skor : 0 | Azalt (0) | Yükselt (0) | Focused: 1109 | Permalink | Digg It

Report Category
Software Update - Compliance
Report Name
All Computers where a software update is applicable
Report Comment
This report lists all targeted computers within the collection specified for which a software update is applicable but not yet installed.

Sql Query

declare @LocaleID int

set @Product = (case when IsNULL(@Product,'')='' then '%' else @Product end)

set @LocaleID = (case when IsNULL(@Locale,'')='' then -1 else convert(int,@Locale) end)


select sys.Netbios_Name0, ps.Product,ps.QNumbers, ps.LocaleID, sys.User_Domain0, sys.User_Name0, fcm.SiteCode, ws.LastHWScan,

DATEADD(ss,@__timezoneoffset,ps.LastStatusTime) as LastStatusTime,

ps.LastStateName, ps.UniqueUpdateID as C086

from v_R_System sys

join v_FullCollectionMembership fcm on sys.ResourceID=fcm.ResourceID

join v_GS_WORKSTATION_STATUS ws on sys.ResourceID=ws.ResourceID

join v_GS_PatchStatusEx ps on sys.ResourceID=ps.ResourceID

join v_ApplicableUpdatesSummaryEx summ on

ps.UpdateID=summ.UpdateID

where fcm.CollectionID = @CollID and ps.LastState != 105

and summ.Type= @Type and

ps.Product like @Product and

(ps.LocaleID=@LocaleID or @LocaleID=-1)



Home

Powered By