Friday, March 21, 2014

Create Batch file as Windows Services

- Download Windows Server 2003 Resource Kit Tools @http://www.microsoft.com/en-us/download/details.aspx?id=17657

- Create Service
    sc create ServiceName binPath= 'path_to_binary' DisplayName= 'Name_of_Servies' start= auto

- Create Parameters on Regedit
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName

- Create Key name 'Parameters'

- Add String Value 'Application' for binary file (Full path)

- go to Services.msc

- on 'Log on' tab check box 'Allow service to interact with desktop'

Saturday, February 1, 2014

IMAP-Cyrus

# service cyrus-imapd stop
# su - cyrus
$ cd /usr/lib/cyrus-imapd
$ ./ctl_cyrusdb -r
$ exit
# service cyrus-imapd start

Thursday, December 12, 2013

convert cert.pfx to cer , key

Extract crt and key

openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.crt
openssl pkcs12 -in domain.pfx -nocerts -nodes  -out domain.key 
openssl pkcs12 -in domain.pfx -out domain-ca.crt -nodes -nokeys -cacerts


Created pfx file from crt and key 

openssl pkcs12 -export -out nokey-domain.pfx -inkey domain.key -in domain.crt 


Friday, December 6, 2013

Disable bing.com

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\EnableActiveProbing
change vule to 0

Tuesday, November 26, 2013

Installation failed; reason - load on module failed, failed to load security policy - Checkpoint Firewall

Running in  expert Mode


cpwd_admin stop -name FWM -path "$FWDIR/bin/fw" -command "fw kill fwm"
cpwd_admin start -name FWM -path "$FWDIR/bin/fwm" -command "fwm"

cpwd_admin stop -name CPD -path "$CPDIR/bin/cpd_admin" -command "cpd_admin stop"
cpwd_admin start -name CPD -path "$CPDIR/bin/cpd" -command "cpd"


check Process
cpwd_admin list

Sunday, November 17, 2013

Configuration issues. "Quick stats on hostname is not up-to-date" vCenter 5.5

vpxd.quickStats.HostStatsCheck
vpxd.quickStats.ConfigIssues

To add the quickStats parameters to the Advanced Settings of the vCenter Server:

vpxd.quickStats.HostStatsCheck

Value: False

vpxd.quickStats.ConfigIssues

Value: False

reboot vCenter

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout