20
May/10
0

Change Outlook 2003 Free Busy Update Information

Here’s a small batch that changes Outlook Free Busy Information in your local Registry.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@ECHO OFF
 
SET FBPublishRange=%1
SET FBUpdateSecs=%2
 
IF NOT DEFINED FBPublishRange (
  SET FBPublishRange=6
  )
IF %FBPublishRange% LSS 1 (
  GOTO :HELP)
IF %FBPublishRange% GTR 12 (
  GOTO :HELP)
 
IF NOT DEFINED FBUpdateSecs (
  SET FBUpdateSecs=1800
  )
IF %FBUpdateSecs% LSS 1800 (
  GOTO :HELP)
IF %FBUpdateSecs% GTR 7200 (
  GOTO :HELP)
 
ECHO Updating Outlook Free Busy Options  
ECHO  Updating FBPublishRange using value %FBPublishRange%
reg add HKCU\Software\Microsoft\Office\11.0\Outlook\Preferences /t REG_DWORD /v FBPublishRange /d %FBPublishRange% /f>NUL
ECHO  Updating FBUpdateSecs using value %FBUpdateSecs%
reg add HKCU\Software\Microsoft\Office\11.0\Outlook\Preferences /t REG_DWORD /v FBUpdateSecs /d %FBUpdateSecs% /f>NUL
IF %ERRORLEVEL% EQU 0 (
	ECHO Update Completed Successfully
  GOTO :EOF
	) ELSE (
	ECHO There was an error updating Outlook Free Busy Options. Return Value: %ERRORLEVEL%
	GOTO :EOF
	)
:HELP
ECHO.
ECHO Invalid Arguments Found
ECHO ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
ECHO.
ECHO Allows 2 optional arguments: [FBPublishRange] and [FBUpdateSecs]
ECHO.
ECHO Argument 1 specifies the number of months to publish Free/Busy information
ECHO   Valid values for argument 1 (FBPublishRange): 1 to 12
ECHO.
ECHO Argument 2 specifies the update interval to publish Free/Busy information
ECHO   Valid values for argument 2 (FBUpdateSecs): 1800 to 7200
ECHO.
ECHO Examples:
ECHO.
ECHO "UpdateOutlookFreeBusy.cmd" Uses default values 
ECHO   -FBPublishRange = 6, FBUpdateSecs = 1800
ECHO.
ECHO "UpdateOutlookFreeBusy.cmd 9"
ECHO   -FBPublishRange = 9, FBUpdateSecs = 1800
ECHO.
ECHO "UpdateOutlookFreeBusy.cmd 9 2400"
ECHO   -FBPublishRange = 9, FBUpdateSecs = 2400
GOTO :EOF
 
:EOF
Print This Post
(No Ratings Yet)
Loading ... Loading ...
131 views
21
Apr/10
2

Windows 7: Desktop Icons suddenly disappear

I love Windows 7! It’s robust, fast, looks great and command lines / power shell / wmi / scripting platforms are just awesome.
In other words: It kicks the hell out of a Banana (or some other proprietary fruit I can’t remember).
However, there still are some little things that cause headache: Why would anyone do this!?
This is what I thought after my desktop shortcuts disappeared for the 3rd time after a while being unused.

Turned out there is a maintenance Task that runs as a Scheduled task under Windows 7. It executes various powershell scripts including this:

%windir%\diagnostics\scheduled\Maintenance\
RS_RemoveUnusedDesktopIcons.ps1

If you comment out line 57, you should be good to go and your Desktop Icons won’t disappear anymore:

Replace “Remove-FileList $deleteList”
with “# Remove-FileList $deleteList”

Note: To edit the file you must first take ownership and grant you permissions to it!

Hope that helps…

Print This Post
(2 votes, average: 5.00 out of 5)
Loading ... Loading ...
332 views
Filed under: Windows 7
21
Apr/10
2

“vssadmin list writers” does not return any writers

If you get one of the following events in your Application Event Log, try the solution below:

Event Type: Error
Event Source: VSS
Event ID: 20
Description: Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy Service is not registered. This might happened if an error occurred during Windows setup or during installation of a Shadow Copy provider. The error returned from CoCreateInstance on class with CLSID {faf53cc4-bd73-4e36-83f1-2b23f46e513e} and Name VSSEvent is [0x80040154].

Event Type: Error
Event Source: VSS
Event ID: 20
Description: Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy Service is not registered. This might happened if an error occurred during Windows setup or during installation of a Shadow Copy provider. The error returned from CoCreateInstance on class with CLSID {faf53cc4-bd73-4e36-83f1-2b23f46e513e} and Name VSSEvent is [0x80004002].

Event Type: Error
Event Source: VSS
Event ID: 8193
Description: Volume Shadow Copy Service error: Unexpected error calling routine CoCreateInstance. hr = 0×80040154.

Event Type: Error
Event Source: VSS
Event Category: None
Event ID: 8193
Description: Volume Shadow Copy Service error: Unexpected error calling routine CoCreateInstance. hr = 0×80004002.

Event Type: Error
Event Source: VSS
Event ID: 12302
Description: Volume Shadow Copy Service error: An internal inconsistency was detected in trying to contact shadow copy service writers. Please check to see that the Event Service and Volume Shadow Copy Service are operating properly.

Solution:
Click Start, click Run, type cmd, and then click OK.
Type the following commands at a command prompt. Press ENTER after you type each command.

cd /d %windir%\system32
Net stop vss
Net stop swprv
regsvr32 ole32.dll
regsvr32 oleaut32.dll
regsvr32 vss_ps.dll
vssvc /register
regsvr32 /i swprv.dll
regsvr32 /i eventcls.dll
regsvr32 es.dll
regsvr32 stdprov.dll
regsvr32 vssui.dll
regsvr32 msxml.dll
regsvr32 msxml3.dll
regsvr32 msxml4.dll
cd /d %windir%\system32
Net stop vss
Net stop swprv
regsvr32 ole32.dll
regsvr32 oleaut32.dll
regsvr32 vss_ps.dll
vssvc /register
regsvr32 /i swprv.dll
regsvr32 /i eventcls.dll
regsvr32 es.dll
regsvr32 stdprov.dll
regsvr32 vssui.dll
regsvr32 msxml.dll
regsvr32 msxml3.dll
regsvr32 msxml4.dll

Print This Post
(2 votes, average: 5.00 out of 5)
Loading ... Loading ...
448 views
8
Apr/10
0

How to reset the Primary Key Index Value on an SQL Table

I recently had to reset the Primary key (Integer, AutoIncrement) from a Table I removed all entries from.

You can use the DBCC CKECKIDENT Statement to achieve this.

Reset Primary Key Index on SQL Table

USE YourDatabase
DBCC CHECKIDENT('YourTable', RESEED, 0)

This would reset the next identity value to begin at 1.

If you are receiving the following error, you might have not switched to the correct Database before executing the Statement:

Msg 2501, Level 16, State 45, Line 1
Cannot find a table or object with the name "YourTable". Check the system catalog.

Make sure you are using the “USE YourDatabase” statement before executing the DBCC .

Print This Post
(3 votes, average: 4.67 out of 5)
Loading ... Loading ...
314 views
22
Mar/10
4

Convert BMP to JPG Command Line Utility (Free)

A small and free command line utility that converts a single .bmp file or a directory containing multiple .bmp files into jpg’s.

Requires .Net Framework 2.0 or later.

UPDATE! Sorry, the previous download File was corrupted. Please download this zip file now.

Download

  BMP2JPG.exe (8.0 KiB, 25,294 hits)

Help:
BMP2JPG :: Converts BMP to JPG (100% JPEG Quality only) :: Version 1.0

Converts BMP Files

Syntax :: BMP2JPG [Source Directory or File] [Destination Directory or File] [overwrite]

::
:: Examples
::
BMP2JPG "C:\Temp\My Bitmap.bmp" "C:\Temp\My JPEG File.jpg"
Converts a single File

BMP2JPG "C:\Temp\My BMP Folder" "C:\Temp\My JPEG Folder"
Converts all Files found in "C:\Temp\My BMP Folder" to "C:\Temp\My JPEG Folder"

BMP2JPG "C:\Temp\My BMP Folder" "C:\Temp\My JPEG Folder" overwrite
Converts all Files found in "C:\Temp\My BMP Folder" to "C:\Temp\My JPEG Folder"
Overwrites Existing Files

Author :: Tom Schindler, 2010 | http://www.microtom.net
Codename :: WIN32_ConvertBMP2JPG

Print This Post
(5 votes, average: 4.20 out of 5)
Loading ... Loading ...
689 views