My Tech Scrap
Flipkart.com

Translate

Share |

Tuesday 31 December 2013

How to Create a Windows Service Dependency (Server 2003/2008)

For 2003 server this can be done by all users having admin privilages from the command prompt.
For 2008 server this should be done via an elevated command prompt (right click and runs as administrator) using the sc command. The syntax is:

sc config [service name] depend= <Dependencies(separated by / (forward slash))>

Points to remember
depend= parameter will overwrite existing dependencies. So for example, if Service_1 already depends on Service_2 and Service_3, if you run depend= Service_4, Service_1 will now depend only on Service_4.

Examples
Dependency on single service:

sc config Service_1 depend= Service_2
Above means that Service_1 will not start until Service_2 has started. If you stop Service_2, Service_1 will stop automatically.

Dependency on multiple services:
sc config Service_1 depend= Service_2/Service_3/Service_4
Above means that Service_1 will not start until Service_2, Service_3, and Service_4 are started. If you stop any of Service_2, Service_3, or Service_4, Service_1 will stop automatically.

Remove all dependencies:
sc config Service_1 depend= /
List current dependencies:
sc qc Service_1

 

Monday 30 December 2013

Windows 7 -The module "msstdfmt.dll" was loaded but the call to DllRegisterServer failed with error code 0x8002801c

Please check whether MSSTDFMT.DLL exists in C:\Windows\SysWOW64\. If it is missing search MSSTDFMT.DLL in c:\windows. Copy MSSTDFMT.DLL and paste it in C:\Windows\sysWOW64
Right click Command Prompt and click on "Run as administrator."

C:\Windows\system32>

Type in Regsvr32 C:\Windows\SysWOW64\MSSTDFMT.DLL

Now on the command screen entry you have:

C:\Windows\system32>Regsvr32 C:\Windows\SysWOW64\MSSTDFMT.DLL


Press "Enter"

Tuesday 24 December 2013

Set an Outlook reminder on last workday of the month

1. Select File >> New >> Appointment or Use keyboard shortcut Ctrl + Shift + A
2. Click on Reccurrence or Use keyboard shortcut Ctrl + G
3. In the Appointment Recurrence window, choose Monthly under Recurrence pattern, choose the second option: The last weekday of every 1 month(s).