Monday, April 14, 2014

Creating "Wildcard" Certificate Requests for IIS

If you don’t have an enterprise CA, please don’t search for the “webserver” templates info. It does not help even if it is there.Creating a custom request is fine. Just make sure that you save it to a file at the end. -> This is the PKCS#10 CSR you need to take to the external CA.
1)      In the MMC, go to the “Personal” folder. Right click, chose all tasks-> Advanced Operations->Custom Request.
a.       Hit “next”
b.      Choose “((no template) Legacy Key” as template
c.       Request Format = PKCS #10 is default and OK.
d.      Hit “next”
e.      Click on “Details” to get  the “Properties button to show and hit that.
f.        Please go over the tabs right to left. This will ensure that you 1st take care of the important functional items before coming to your customizations.

Read More ->>

Friday, April 11, 2014

OVO Agent Error (depl-428) The service did not start due to a logon failure. This error occurs if the service is configured to run under an account that does not have the "Log on as a service" right.

Remote Agent Installation on Windows 2k8 from OMW server.

 However when attempting to install the agent I get the following error:

(depl-448) Cannot start OvDeplSvc service
(depl-428) The service did not start due to a logon failure. This error occurs if the service is configured to run under an account that does not have the "Log on as a service" right.


Locally on the managed server with Admin rights:


Start ---Run

secpol.msc

It will open the window: Local Security Policy

Go under Local Policies--> User Rights Assignments then on the right part of the windows click on Log on as a service.

It will open a windows and then click on Add user or Group and add the OVO Agent User.




Read More ->>

Thursday, April 3, 2014

How to use powershell command from vbs script


Edit in MyVBSScript:

Set objShell = CreateObject("Wscript.shell")
objShell.run("powershell -file C:\Users\bla_bla\Documents\powershell.ps1")


Where in powershell.ps1 file this is an example of what it can contain:

$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://nameserver.domain/PowerShell/ -Authentication Kerberos
Import-PSSession $s

Get-MailboxDatabase gb* -Status | select name,mounted > C:\Users\bla_bla\Documents\command.txt

Remove-PSSession $s (this is important for close powershell sessions)



Powershell script to monitor Backup Processes and then send the alert to OVO Manager:


 $processes= Get-Process Ese_bar,mbx_bar,E2010_bar

 $processes > C:\Users\bla_bla\Documents\out_processes.txt
 $processes

 $m= $processes| measure
 $m
 $a=$m.count
 $a

 if ($a -eq 0) {$OVOMSG = "There are $a backup processes and DB is in False status"
& 'C:\Program Files\HP\HP BTO Software\bin\win64\opcmsg.exe' --ArgumentList "a=MSExchange" "o=Database" "msg_t=$OVOMSG" "s=critical" "msg_grp=E-mail"}
 
   else {$OVOMSG = "There are $a backup processes $processes and DB is in False status"
& 'C:\Program Files\HP\HP BTO Software\bin\win64\opcmsg.exe' --ArgumentList "a=MSExchange" "o=Database" "msg_t=$OVOMSG" "s=major" "msg_grp=E-mail"}
Read More ->>