Query the windows registry

I had the need to query the registry for a specific string, if the string is found or not then engage an action.

Within this scenario as example, it query the registry and a specified string, an action is taken if this one is not found/present.

 

@ECHO OFF
set regpath=HKLM\Software\Microsoft\xx\
set regvalue=mystring
set regdata=1
reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%"
if errorlevel 1 (
      echo Please wait blah blah......
      Start /WAIT .\myprog\install.exe
      EXIT /B /0
)

 

Suspend running vmware and switch the esx(i) off

I have been using a script for a while switching off the esxi to a certain time. Crontab in used to do it, as this post

Unfortunately, this script does not do much than poweroff the vms and switching off the esxi; As a consequence the vmware’s running at that time would have been stopped roughtly;

All the work done would have been lost, so I decided to review this script to do the following;

– List of Machines currently running
– Retrieve ID’s for each Machines
– suspend command for each IDs.
– Then Poweroff the Esx(i).

Continue reading “Suspend running vmware and switch the esx(i) off”

PHP Warning: phpinfo(): It is not safe to rely on the system’s timezone settings.

Having set the PHP Engine running on Domino Server; Any/All request to access to some PHP files filling up my log.nsf of this type of entries and warning:

PHP Warning:  phpinfo(): It is not safe to rely on the system's 
timezone settings. You are *required* to use the date.timezone 
setting or the date_default_timezone_set() function. 
In case you used any of those methods and you are still 
getting this warning, you most likely misspelled the timezone 
identifier. We selected the timezone 'UTC' for now, 
but please set date.timezone to select your timezone. 
in E:\IBM\Lotus\Domino\data\domino\html\info.php on line 4

One more thing is needed to be set into the php.ini file:

Set this line:

date.timezone = "UTC"

Or and based on your location; including the list of Supported Timezones

http://pl.php.net/manual/en/timezones.php

Domino server running PHP CGI /Install/implement PHP on Domino Windows Server

I have been looking the trick to run PHP engine into a Domino server;

By default, Domino Server does not support PHP; However I am including the step by step instructions on how to implement it into Domino Server on Windows Machine.

You need first the PHP binaries:

http://windows.php.net/download/

I have been using the version (5.4.9), downloadable here.

– Uncompress the content of this zip file.

Continue reading “Domino server running PHP CGI /Install/implement PHP on Domino Windows Server”

Domino hiding SMTP header items

I needed to hide server version and Domino information ‘leakage’ in MIME information, follow the steps below to hide this information.

To hide the senders client information which is  Lotus Notes 6.5.3 as indicated by the X-Mailer line, then you would include the field “$XMailer” as one to be hidden from the SMTP header. Also, the X-MIMETrack field above shows information about all the SMTP servers that have itemized and serialized the SMTP message on it’s travels to my IBM account. Hiding the $MIMETrack  will force the outbound Domino server to not include any information about the serialization and itemization when it leaves Domino. Finally specifying the Received field will remove information in the Received field of the message about previous hops that the message has taken in your internal system.

Continue reading “Domino hiding SMTP header items”

Customize Windows 7 splash

I found a nice tool that allow you to change or replace the traditional Windows screen at the boot.

This tool is called Win7BootUpdater.exe.

Also included a quick splash made for my home media center.

 

Unable to create a temp copy of transform

Attempting to upgrade Windows installer Application ‘s packages.
the MST failed, noticed the following error from the MSI log:

Installation: Unable to create a temp copy of transform,
Note: 1: 2203 2:  3: -2147287037
etc..
MainEngineThread is returning 1624

 

Solution that worked for me:

Change TRANSFORMSSECURE value to 0 in the registry, and try a re-installation

More details from MS:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa372089%28v=vs.85%29.aspx

Domino Server installation on Linux (Centos or Redhat)

I have been struggling a little, on the configuration steps until I figured that these steps could be done remotely from a Windows Machine.

I have been taken Centos 5.7 x64 and Domino 8.5.1 and Windows Machine. (Windows)

An additional machine is needed to install the Lotus Notes Administrator in order to configure and setup the Domino Server remotely and manage it later on.

Let start by installing the Domino server on the Linux machine; Before starting to install you do need to prepare the platform.

Continue reading “Domino Server installation on Linux (Centos or Redhat)”