DotVBS | Windows Systems Management
Get more for your money using Microsoft Systems Management Server 2003, Microsoft SQL Server (2000 & 2005), VBScript, and Powershell for Windows Systems Management.
Thursday, November 6, 2008
How to Troubleshoot SMS Client Install Errors
Posted by
Emmanuel
Often time, I'm asked how to troubleshoot SMS client installation errors. First thing I would recommend is to check WMI by running wmidiag.vbs on the troubled computer, be sure to run it under admin context. The beauty of wmidiag is, it tells you how to fix the problem. Secondly, if WMI is fine, look through the installation or client logs.
Tuesday, August 5, 2008
SMS SQL for Last Hardware Inventory
Posted by
Emmanuel
The following SQL Query will return last HW Inventory date for a specific computer. Code is based on the client health queries by Paul Thomsen.
-- Last hardware inventory
-- Last hardware inventory
select Name0, LastHWScan as 'HW Inventory'
from v_R_System sys full join v_RA_System_SMSAssignedSites ass ON ass.resourceID=SYS.resourceID
full join v_GS_WORKSTATION_STATUS WS ON WS.resourceID=sys.resourceID
where client0=1
and Name0 = 'computername'
Friday, August 1, 2008
SMS SQL for Last Discovery
Posted by
Emmanuel
The following SQL Query will return last discovery date for a specific computer. Code is based on the client health queries by Paul Thomsen.
-- Last discovery date
select Name0, AgentTime as 'Discovery'
from v_R_System sys full join v_RA_System_SMSAssignedSites ass ON ass.resourceID=SYS.resourceID full join (select ResourceId, MAX(AgentTime) as AgentTime from v_AgentDiscoveries where agentname<>'SMS Discovery Data Manager' AND agentname not like '%!_AD!_System%' ESCAPE'!' group by ResourceId) disc on disc.resourceid=sys.resourceid
where client0=1 --and IsNULL(AgentTime,@NullVal)>@olddate
and Name0 = 'computername'
-- Last discovery date
select Name0, AgentTime as 'Discovery'
from v_R_System sys full join v_RA_System_SMSAssignedSites ass ON ass.resourceID=SYS.resourceID full join (select ResourceId, MAX(AgentTime) as AgentTime from v_AgentDiscoveries where agentname<>'SMS Discovery Data Manager' AND agentname not like '%!_AD!_System%' ESCAPE'!' group by ResourceId) disc on disc.resourceid=sys.resourceid
where client0=1 --and IsNULL(AgentTime,@NullVal)>@olddate
and Name0 = 'computername'
Subscribe to:
Posts (Atom)