VMWare : ESXi – Powering on a virtual machine from the command line

1. Enable SSH on the ESXi host ( from vSphere client or directly from the console ).

2. Connect to the host using an SSH client ( e.g. PuTTY ) and login using the root account

3. List the inventory ID of the virtual machine with the command:

 vim-cmd vmsvc/getallvms |grep <vm name> 

         **Note: The first column of the output shows the vmid.

4. Check the power state of the virtual machine with the command

vim-cmd vmsvc/power.getstate <vmid>

5. Power-on the virtual machine with the command:

vim-cmd vmsvc/power.on <vmid>
Advertisements

Exchange : PDF Attachment Inspection in Exchange 2010 using Transport Rules and Adobe PDF iFilter 9

PDF

The scope of this article is to show you how you can  inspect emails with attachments that are containing unappropiate words and send a custom delivery status notification (DSN).

Exchange 2010 can perform attachment inspection only for the following file types :

.ascx .asm .asp .aspx .bat .c .cmd .cpp .cxx .def .dic .doc .docx .dot
.h .hhc .hpp .htm .html .htw .htx .hxx .ibq .idl .inc .inf
.ini
.inx .js .log .m3u .mht .odc .one .pl .pot .ppt .pptx .rc
.reg .rtf
.stm .txt .url .vbs .wtx .xlc .xls .xlsb .xlsx .xlt .xml .zip

Continue reading

Powershell : QuickCMD : Find/Modify the default Active Directory Domain Services (AD DS) domain password policy

Get the default password policy for an Active Directory domain

 Get-ADDefaultDomainPasswordPolicy  [-Identity] <ADDefaultDomainPasswordPolicy>

Get-ADDefaultDomainPasswordPolicy

Modify the default password policy for the current Active Directory domain disableing the password history count

 Get-ADDomain | Set-ADDefaultDomainPasswordPolicy -PasswordHistoryCount 0