Friday, February 17, 2012
C drive disk space information on my all machine
Wednesday, February 8, 2012
For a specific Advertisement status for last 3 Days…
---for a specific Advertisement status for last 3 Days… if we include the Set @AdvName = '%' line then and remove the above line in red color will show for all advertisements with last 3 days status
-- To include all we need to give % in SQL this is a tip
Declare @AdvName Varchar(256)
Set @AdvName = 'Lync_2010_Full_Install'
---Set @AdvName = '%'
Select adv.AdvertisementName
, adv.AdvertisementID
, s.Host
, LastAcceptanceMessageIDName
, LastAcceptanceStateName
, LastAcceptanceStatusTime
, LastStatusMessageIDName
, LastStateName
, LastStatusTime
, LastExecutionResult
From (
Select AdvertisementName
, AdvertisementID
From dbo.v_AdvertisementInfo
Where AdvertisementName Like @AdvName
) As adv
Join (
Select AdvertisementID
, ResourceID
, LastAcceptanceMessageIDName
, LastAcceptanceStateName
, LastAcceptanceStatusTime
, LastStatusMessageIDName
, LastStateName
, LastStatusTime
, LastExecutionResult
From dbo.v_ClientAdvertisementStatus
Where LastStatusTime >= DateAdd(d,-3,GetDate())
) As cas
On adv.AdvertisementID = cas.AdvertisementID
Join (
Select ResourceID
, Netbios_Name0 As Host
From dbo.v_R_System
Where Client0 = 1
And Active0 = 1
And Obsolete0 = 0
) As s
On cas.ResourceID = s.ResourceID
Order By
AdvertisementName
, Host
HeartBeat Discovery Status of specific collection of systems
select
CS.Name0,
max(AD.AgentTime) as 'Date/Time'
from
dbo.v_AgentDiscoveries ad
JOIN dbo.v_GS_COMPUTER_SYSTEM cs on AD.ResourceID = CS.ResourceId
join dbo.v_FullCollectionMembership FCM on FCM.ResourceID = CS.ResourceId
Where
AgentName = 'Heartbeat Discovery'
and FCM.CollectionID = 'SMS00001'
Group by
CS.Name0
Tuesday, February 7, 2012
To get ride of IIS Webdav issue
Most of the time some or other application extension would be blocked because of IIS Webdav Settings issue, to stop filtering in IIS Webdav we can change the
setting at the site level, i.e., open inetmgr/ IIS Console and chose the server name and in the right side we need to choose the “WebDav Authoring Rules” and in actions you will see “WebDAV settings” click on the button and you need to configure you Request filtering Behavior as below.
Okey, we may read in the blogs as we need to change in the applicationHost.config file.. if we do above settings it must be appear in the file… okey if you want to see the file how it looks like ……..
<requestFiltering>
<fileExtensions allowUnlisted="true" applyToWebDAV="false">
<add fileExtension=".asa" allowed="true" />
<add fileExtension=".asax" allowed="true" />
<add fileExtension=".ascx" allowed="true" />
<add fileExtension=".master" allowed="true" />
<add fileExtension=".skin" allowed="true" />
<add fileExtension=".browser" allowed="true" />
<add fileExtension=".sitemap" allowed="true" />
<add fileExtension=".config" allowed="true" />
<add fileExtension=".cs" allowed="true" />
<add fileExtension=".csproj" allowed="true" />
<add fileExtension=".vb" allowed="true" />
<add fileExtension=".vbproj" allowed="true" />
<add fileExtension=".webinfo" allowed="true" />
<add fileExtension=".licx" allowed="true" />
<add fileExtension=".resx" allowed="true" />
<add fileExtension=".resources" allowed="true" />
<add fileExtension=".mdb" allowed="true" />
<add fileExtension=".vjsproj" allowed="true" />
<add fileExtension=".java" allowed="true" />
<add fileExtension=".jsl" allowed="true" />
<add fileExtension=".ldb" allowed="true" />
<add fileExtension=".dsdgm" allowed="true" />
<add fileExtension=".ssdgm" allowed="true" />
<add fileExtension=".lsad" allowed="true" />
<add fileExtension=".ssmap" allowed="true" />
<add fileExtension=".cd" allowed="true" />
<add fileExtension=".dsprototype" allowed="true" />
<add fileExtension=".lsaprototype" allowed="true" />
<add fileExtension=".sdm" allowed="true" />
<add fileExtension=".sdmDocument" allowed="true" />
<add fileExtension=".mdf" allowed="true" />
<add fileExtension=".ldf" allowed="true" />
<add fileExtension=".ad" allowed="true" />
<add fileExtension=".dd" allowed="true" />
<add fileExtension=".ldd" allowed="true" />
<add fileExtension=".sd" allowed="true" />
<add fileExtension=".adprototype" allowed="true" />
<add fileExtension=".lddprototype" allowed="true" />
<add fileExtension=".exclude" allowed="true" />
<add fileExtension=".refresh" allowed="true" />
<add fileExtension=".compiled" allowed="true" />
<add fileExtension=".msgx" allowed="true" />
<add fileExtension=".vsdisco" allowed="true" />
<add fileExtension=".exe" allowed="true" />
<add fileExtension=".vbs" allowed="true" />
</fileExtensions>
<verbs allowUnlisted="true" applyToWebDAV="false" />
<hiddenSegments applyToWebDAV="false">
<add segment="web.config" />
<add segment="bin" />
<add segment="App_code" />
<add segment="App_GlobalResources" />
<add segment="App_LocalResources" />
<add segment="App_WebReferences" />
<add segment="App_Data" />
<add segment="App_Browsers" />
</hiddenSegments>
</requestFiltering>
Monday, February 6, 2012
PXE error: PXE-T01:File not Found & PXE-E3B: TFTP Error – File Not Found
You might get the below error..
The above problem will come When you don’t Have the files in DriveLetter:\RemoteInstall\SMSBoot\
In fact the below article address the issue, However I have approached in different way as just copy the Missing files & folders from other Remote Install Folder and past on the Problem system.
Friday, January 27, 2012
AD computer Numbers vs SCCM Computer Numbers
read here more http://smsug.ca/blogs/garth_jones/archive/2008/12/03/how-to-add-ad-data-to-configmgr-reporting.aspx
AD it just another database, just like SQL server is. With that in mind there is nothing stopping you from using SQL to link to AD to give you data about your AD environment!
1) Create Linked Server using SSMS
exec master.dbo.sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces', 'ADSDSOObject', '<DC Name FQDN>'
2) Modify the security for ADSI using SSMS
exec master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'ADSI', @locallogin = NULL , @useself = N'False', @rmtuser = N'<Domian>\<User Id>', @rmtpassword = N'<Password>'
3) The hard part is over!
4) Create query to query AD and ConfigMgr
This query will list all PCs within AD that are NOT within ConfigMgr (or SMS)
select
AD.cn as 'PC Name(AD)',
AD.operatingSystem as 'OS (AD)',
AD.operatingSystemServicePack as 'SP (AD)'
from
openquery (ADSI,
'SELECT cn,
operatingSystem,
operatingSystemServicePack
FROM ''LDAP://<DC Name FQDN>''
WHERE objectCategory = ''Computer''') as AD
Where
AD.cn not in (Select name0 from v_GS_Computer_System as CS)
order by
AD.cn,
AD.operatingSystem,
AD.operatingSystemServicePack
This query will give you a count of all OS that are NOT within ConfigMgr (or SMS)
select
AD.operatingSystem as 'OS (AD)',
count(AD.operatingSystem)
from
openquery (ADSI,
'SELECT cn,
operatingSystem,
operatingSystemServicePack
FROM ''LDAP://gartek-dc.gartek.tst''
WHERE objectCategory = ''Computer''') as AD
Where
AD.cn not in (Select name0 from v_GS_Computer_System as CS)
Group by
AD.operatingSystem
order by
AD.operatingSystem
So what does this report look like.
So there you have it.
Wednesday, January 25, 2012
ClientIDManagerStartup.log Error: 0x80040225 & Error 3
Failed to send registration request message. Error: 0x80040225
also when you see in the error 3 in ClientIDManagerStartup log
RegTask: Server rejected registration request: 3 ClientIDManagerStartup 26/01/2012 1:07:43 AM 7904 (0x1EE0)
You might also see (not in all cases) in ccmexec.log
System task 'ClientRegistrationStartup' returned error code 0x80040222. CcmExec 26/01/2012 1:10:03 AM 7904 (0x1EE0)
Solution: Remove the Client authentication and SMS certificates Certificates of from Certificates console and request new certificates
PXE-T00: Unspecified file opening error detected
Found the error: While deploying 7 with the SCCM 2007 and MDT 2010.
sccm PXE-T00: Unspecified file opening error detected
PXE-E36:Error Received from TFTP server
Solution:This is not related to SCCM / WDS Issue.. it was with Symantec Ghost caused the issue, once the service was stopped the issue is resolved.
Sunday, January 22, 2012
Wanna Drive to SCCM 2012
here are the Virtual labs from MS System Center 2012
- TechNet Virtual Lab: System Center 2012 Configuration Manager: Application Management
- TechNet Virtual Lab: System Center 2012 Configuration Manager: Content Management
- TechNet Virtual Lab: System Center 2012 Configuration Manager: Managing Clients
- TechNet Virtual Lab: System Center 2012 Configuration Manager: OSD Bare Metal
- TechNet Virtual Lab: System Center 2012 Configuration Manager: Advanced Software Distribution
- TechNet Virtual Lab: System Center 2012 Configuration Manager: Basic Software Distribution
- TechNet Virtual Lab: System Center 2012 Configuration Manager: Software Updates
- TechNet Virtual Lab: System Center 2012 Configuration Manager: Endpoint Protection RC
- TechNet Virtual Lab: Migrating from Configuration Manager 2007 to Configuration Manager 2012
- TechNet Virtual Lab: System Center Operations Manager 2012: Infrastructure and Application Performance Monitoring
- TechNet Virtual Lab: System Center Virtual Machine Manager 2012: Building Your Cloud Infrastructure
- TechNet Virtual Lab: System Center Virtual Machine Manager 2012: Building a Service Template
- TechNet Radio: Virtual Lab Insider - An Introduction to System Center Configuration Manager 2012 Video!
- TechNet Virtual Lab: Introduction to System Center Configuration Manager 2012
Enjoy,
Saturday, January 21, 2012
How would I extend my Windows 2008 R2 Evolution ?
It will again extend your evolution to 180 Days
Friday, January 20, 2012
How to change the SCCM Client Log files size to Max value that you want
Sometimes or other we might need to retain the max size of log files for reading/analyzing.
Here are some useful info………… in this regards………….
Client side reference registry
For X86 systems
- HKLM\Software\Microsoft\CCM\Logging\@GLOBAL
For X64 systems
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\CCM\Logging\@GLOBAL
The reference key is Log Maxsize
I tried to change manually by regedit how it is showing error as can’t be edited the value..
So I depended on below WMI script
' VBScript to change the Log File Size on a ConfigMgr client
' Change the 500000 to your required size in bytes
Dim newLogMaxSize
Dim sMachine
newLogMaxSize = 500000
sMachine = "."
set oCCMNamespace = GetObject("winmgmts://" & sMachine & "/root/ccm")
Set oInstance = oCCMNamespace.Get("SMS_Client")
set oParams = oInstance.Methods_("SetGlobalLoggingConfiguration").inParameters.SpawnInstance_()
oParams.LogMaxSize = newLogMaxSize
oCCMNamespace.ExecMethod "SMS_Client", "SetGlobalLoggingConfiguration", oParams
' End of script
So Do not change the registry value directly!
The SDK shows the SetGlobalLoggingConfiguration Method in Class SMS_Client
http://msdn.microsoft.com/en-us/library/cc146025.aspx
Thursday, January 19, 2012
Take help of world wide Telescopes to see universe
best ground and space-based telescopes in the world, combined with 3D navigation—all free from your computer.
http://www.worldwidetelescope.org/Home.aspx?qstr=CR_CC=&CR_ID=
Monday, January 16, 2012
How to learn / Education
1. Information -- Often we think information is education, but it is only one aspect of education.
2. Concepts -- Concepts are the basis for all research. You need to conceive in order to create.
3. Attitude -- An integral aspect of education is cultivating the right attitude. Proper attitude at the right time and place determines your actions and behavior.
4. Imagination -- Imagination is essential for creativity, for the arts. But if you get stuck in imagination, you may become psychotic.
5. Freedom -- Freedom is your very nature. Only with freedom, do joy, generosity and other human values blossom. Without freedom, attitudes become stifling, concepts become a burden, information is of no value and imagination becomes stagnant.
Friday, January 13, 2012
The program for advertisement "CEN20199" has not been run yet ("CEN0018E" - "*"). Software Distribution is currently paused on this computer, and it has to be resumed before this program can begin.
You may get above (The program for advertisement "XXXXXXX" has not been run yet ("XXXXXXXX" - "*"). Software Distribution is currently paused on this computer, and it has to be resumed before this program can begin. ) error and your advertisement will never run… because system required a reboot to continue further any installation……
Solution: Reboot the system
Packaging tools - From Forum Responses
Some of Free Packaging tools - From Forum Responses
- Install shield Adminstudio
- wise package studio
- Repackaging tool http://www.appdeploy.com/tools/repackager/download.asp
- EMCO Package Builder!http://emcosoftware.com/msi-package-builder
- Invest some time and training budget in www.windowsinstallertraining.com