Archive - August 2009



Index

bar1
Windows XP DCOM Error Event ID 10005
Forcing Compatibility Mode in IE8
Free Desktop Capture Software
Windows 7, Extend Trial Period
Customized Windows Service Reporting


bar1





Δ Windows XP, DCOM Error Event ID 10005
bar1


Here is an interesting error that has many causes and common enough, many solutions.

dcomerror


Sometimes it is really difficult to know which solution(s) will work for you, there may seem to be several solutions. In my case, we were noticing loss of Ms-Office functionality. Our project managers would upload data via an office product and the data would not reach its destination; a huge pain for them, and now, for me. So where do we begin? Since this appears to be services related, we go to the Microsoft Services Console. What we are looking for are the disabled services, and you will notice I highlighted one in particular.

services

Because this service is DISABLED and our user's software is dependent on internet related services, we can make an educated guess that the service should be enabled. Enabling the service and resetting all internet settings solved this problem. It's always a good idea to delete cache and reset internet configuration settings when experiencing internet application issues.

Here are a few other possible solutions:

From Microsoft

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Windows NT service pack that contains this hotfix.

This fix is implemented by adding two registry values, one to allow you to modify the time for the service to start, and one for you to modify the time for it to stop. 

 

1. Start Registry Editor (Regedt32.exe).

2. Locate the following key in the registry:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Iisadmin\Parameters

3. On the Edit menu, click Add Value, and then add the following registry value:

    Value Name: WaitHintStart

    Data Type: REG_DWORD

    Value: <Time to wait for service to start in milliseconds>

    Value Name: WaitHintStop

    Data Type: REG_DWORD

    Value: <Time to wait for service to stop in milliseconds>

4. Quit Registry Editor.



Other Possible Solutions

There may be other services that this service is dependant on - check disabled services like the World Wide Web service.

Group policy may be disabling this service - check your group policy - local and domain.

There may be corrupted settings or DLL files - reinstalling IIS from setup will resolve this.

A server certificate may have expired - check to make sure a certificate you may use is still valid.

bar1






Δ Windows 7, Extend 30 Day to 120 Trial Period
bar1


Here is an interesting tidbit, Microsoft allows end-users to run any version of Windows 7 for 30 days without requiring a product activation key (the 25 alpha-numeric key that validates your copy of Windows). So what happens after that? Well, once the 30 day limit has been reached, you are nagged to death with activation popups, once every hour! However....there is a command that allows you to reset the activation 3 times, giving you a total of 120 days of free usage. That's good stuff. Oh yeah, the command -> Right-click and Runas Administrator on the cmd shortcut usually located right on the start menu, it will drop down to the command prompt (console window), and now type slmgr.vbs -rearm. And voilà, you'll get an extra 30 days each time. You will of course need to reboot. :-)

Note: Remember, execute this command towards the end of each activation time limit to maximize your available trial period.

bar1


 

 


Δ Customized Windows Service Reporting
bar1

Okay, there are really many ways to query for an existing Windows service. But our script specs will entail a few extra details, making coding the script a little bit time consumeing in VBScripting alone.

Here are our specs:    Query for the dameware service
                                       Output results in real-time to screen
                                       Output results to log file
                                       Log if workstation is offline
                                       Must be coded and report compiled in 1 day


The specs are plenty easy with enough time, however, due to the timeline, we must throw something together quickly and get to reporting.
What we end up coding is a 2 part script: The first part is a batch script (which saves a lot of scripting time) that loops through a text file containing the target workstations, does error handling, and outputs in real-time to screen. And secondly, a VBScript that queries the dameware service via a WMI routine and outputs results to log.

bar1

Script:

@rem ******************************************************************************************
@rem Script Language: Batch Shell
@rem Script Name: _RUNME TO CREATE DAMEWARE LOG.BAT

@rem Purpose: TO COMPILE REPORT WITH WORKSTATIONS THAT HAVE THE DAMEWARE SERVICE RUNNING

@rem Creation Date: 08/11/09

@rem Last Modified: 08/12/09

@rem Author: EDDIE JACKSON

@rem E-Mail: MrNetTek2000@yahoo.com

@rem *******************************************************************************************


@ECHO off

CLS

@COPY /Y /V "\\PathTo\COMPUTERS.TXT" C:\

@COPY /Y /V "\\PathTo\damewareservice.vbs" C:\

@color 0a

@title=Querying Dameware Service...

For /F "tokens=1" %%a in (C:\computers.txt) do set PC=%%a& call :REMOTE

Pause

@REM ERRORTRAPPING AND OFFLINE LOGGING INTO LOG.TXT

:REMOTE

IF EXIST "\\%PC%\C$\BOOT.INI" GOTO NEXT ;ERRORTRAPPING

IF NOT EXIST "\\%PC%\C$\BOOT.INI" GOTO ERR ;ERRORTRAPPING

@REM BEGIN QUERYING FOR DAMEWARE SERVICE

:NEXT

Echo Querying %PC% for Dameware Service

sc.exe \\%PC% getdisplayname "dwmrcs"

echo.

echo.

Echo Querying %PC% for Dameware Service >> c:\Dameware_Log_Raw_Data.txt

sc.exe \\%PC% getdisplayname "dwmrcs" >> c:\Dameware_Log_Raw_Data.txt

echo. >> c:\Dameware_Log_Raw_Data.txt

echo. >> c:\Dameware_Log_Raw_Data.txt

@REM This runs the VBScript WMI Query

wscript.exe c:\damewareservice.vbs %PC%

GOTO END

@REM THIS IS THE OFFLINE LOGGING

:ERR

Echo %PC% is not online

Echo %PC%, is not online >> c:\Dameware_Log.txt

@REM DONE

:END

 

 ******************************************************************************************

 Script Language: VBScript
 Script Name: damewareservice.vbs

 Purpose: QUERIES DAMEWARE SERVICE VIA WMI

 Creation Date: 08/11/09

 Last Modified: 08/12/09

 Author: EDDIE JACKSON

 E-Mail: MrNetTek2000@yahoo.com

 *******************************************************************************************


On error resume next

args = WScript.Arguments.Count

strComputer = WScript.Arguments.Item(0)

'''WScript.Echo strComputer

Set objWMIService = GetObject("winmgmts:" _

& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colListOfServices = objWMIService.ExecQuery _

("Select * from Win32_Service Where Name = 'DWMRCS'")

For Each objService in colListOfServices

'''WScript.Echo "Service DOES Exist"

Const ForAppending1 = 8

'This creates the object

Set objFSO = CreateObject("Scripting.FileSystemObject")

'This sets the LogFile

Set objLogFile1 = objFSO.OpenTextFile("c:\Dameware_Log.txt", ForAppending1, True)

'This writes to the test file

Set objNetwork = CreateObject("WScript.Network")

objLogFile1.WriteLine Date() & "," & Time() & "," & strComputer & "," & "Dameware Service Installed"

'This closes the input

objLogFile1.Close

Next

bar1




Δ Forcing Compatibility Mode in IE8
bar1

Have you seen some web pages in Internet Explorer 8 that look all kinds of messed up? It's mostly scrunched up text which is unreadable. When this happens, you need to view the page in compatibility mode by clicking the broken page icon:

icon

Apparently, when you highlight the overlapped messed it starts behaving most of the time. Now for all you web designers out there who have been plagued with this, there is a meta tag that should work for you, just add this meta tag into the head of your web page and you should be good to go:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

bar1






Δ
Free Desktop Capture Software
bar1

Have you ever heard of Camtasia or Camstudio? Well, even if haven't, I bet you have most likely needed their functionality at one time or another. They are desktop capturing software. Meaning you can capture onscreen video or onscreen movements and record them to a video file. This is very useful if you need to capture a simple video tutorial guide, create your own computer based training, or be able to record a demonstration and convert it right to a web video, available for download immediately. It's really pretty neat right? You set the desktop capture to record, and then begin going through the motions while being recorded. Once complete, you can add special effects like fade-in, fade-out, popup boxes, cut frames, along with many other great features. The commercially available software is incredible, and packed with many features. However, the products are a bit expensive, around the $300 range. If $300 is out of your budget, then there is Microsoft-based desktop capturing software, Windows Media Encoder 9, that may be exactly what you need. It is "free". Yes free. It doesn't quite have all the bells and whistles of some of the other software, but it will get the job done. It records both video and audio, has basic special effects built in, and allows you to edit frames. It does have a very limited frame editor and the cursor effects are not as good, but if you need cheap and just basic capturing functionality, I am sure this will work for you. I recommend using the wizards at the beginning just until you get the feel for the recording process.

Here is the Microsoft link to the encoder: Link




Screenshot of the Wizards:
encoder1



Screenshot of the Quick Starts:
encoder2



Screenshot of the Interface:
encoder0


bar1




 

 


  About

  
I'm a Computer
  
Systems Engineer

  
Living and loving life
........................................


 
Author

.