Thursday, February 2, 2017

Update ESXi host in Esxi Shell

Cut and paste these commands into an ESXi shell to update your host with this Imageprofile
  • esxcli network firewall ruleset set -e true -r httpClient
  • esxcli software profile update -p ESXi-6.0.0-20161104001-standard \ -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
  • esxcli network firewall ruleset set -e false -r httpClient # # Reboot to complete the upgrade
Note: Replace the version number ESXi-6.0.0-20161104001 with version you want update to

Enabling and access ESXi Shell

Enabling ESXi Shell access using the vSphere Client
  1. Log in to a vCenter Server system using the vSphere Client.
  2. Select the host in the Inventory panel.
  3. Click the Configuration tab and click Security Profile.
  4. In the Services section, click Properties.
  5. Select ESXi Shell from this list:
    ESXi Shell
    SSH
    Direct Console UI
  6. Click Options and select Start and stop manually.
    Note: When you select Start and stop manually, the service does not start when you reboot the host. If you want the service to start when you reboot the host, select Start and stop with host.
  7. Click Start to enable the service.
  8. Click OK.
Enabling ESXi Shell access using the Direct Console User Interface
Use the direct console user interface to enable the ESXi Shell:
  1. From the Direct Console User Interface, press F2 to access the System Customization menu.
  2. Select Troubleshooting Options and press Enter.
  3. From the Troubleshooting Mode Options menu, select Enable ESXi Shell.
    Enable ESXi Shell
    Enable SSH
  4. Press Enter to enable the service.
Accessing the remote ESXi Shell
  1. Open an SSH client.
  2. Specify the IP address or domain name of the ESXi host.
    Notes:
    • Steps may vary depending on the SSH client you are using. For more information, consult the client documentation and support.
    • By default, SSH works on TCP port 22.
  3. Provide credentials when prompted.

Saturday, December 24, 2016

Enable Copy and Paste between Console and Windows VM

  1. After create the Windows Vitrual Michine, keep it power off
  2. Navigate to Options > Advanced > General and click Configuration Parameters.
  3. Click Add Row
  4. Type these values in the Name and Value columns:

    NameValue
    isolation.tools.copy.disableFALSE
    isolation.tools.paste.disableFALSE
  5. Click OK to close the Configuration Parameters dialog and click OK again to close the VM properties dialog
  6. Start the VM
Remark: This approach only work in Copy and Patse by right click, it does not work when use the shortcut key Ctrl + C and Crtl + V

Monday, November 28, 2016

Enable CBT in a VMware virtual machine

To enable CBT in a virtual machine:
  1. Power off the virtual machine.
  2. Right-click the virtual machine and click Edit Settings
  3. Click the Options tab.
  4. Click General under the Advanced section and then click Configuration Parameters. The Configuration Parameters dialog opens.
  5. Click Add Row.
  6. Add the ctkEnabled parameter and then set its value to true.
  7. Click Add Row, add scsi0:0.ctkEnabled, and set its value to true.
    Note: scsi0:0 in scsi0:0.ctkEnabled indicates the SCSI device assigned to the       hard disk that is added to the virtual machine. Every hard disk added to the virtual machine is given a SCSI device that appears similar to scsi0:0, scsi0:1, or scsi 1:1. CBT is enabled (or disabled) individually on each disk.
  8. Power on the virtual machine.
  9. In the home directory of the virtual machine, verify that each disk having CBT enabled has also a vmname-ctk.vmdk file.

Setting Printer Preferences when printing in Visual FoxPro

1.Open the FRX file as a table (USE YourReport.FRX) in command window of VFP

2. Look at the Expr column in the first record by double click it.

3. It should contain printer settings - something like:
    ORIENTATION=0
    PAPERSIZE=9
    COLOR=2

4. Change the COLOR to 1 and the output should appear in B/W colors.

Sunday, October 18, 2015

How to use a internal Windows CA (Certificate Authority) in Windows 2012 with Exchange 2013

We can use a internal windows CA certificate with Exchange 2013 to avoid Cert Errors
Something which you need to know is , Using a Internal Windows CA Certificate you need to install the certificates on every machine you use and Mobile devices other wise you will end up in a certificate error.
So that’s why people prefer going for a 3rd party certificate to overcome it.
In this article We Will Learn issuing a Internal Windows CA Certificate ,
You need to have two A records , Mail.domain.com and Autodisover.domain.com
and you will place the cert which we generate into the machines your configuring outlook. or any device, So that you can over come outlook errors
First we will learn how to Export a Certificate request file from Exchange 2013,
Step 1:
Login to Exchange Administration Center (EAC) in Exchange 2013
Servers – Certificates – Click on the “+” Sign – New
image
Choose
“Create a request for a Certificate from the Certification authority”, Next
image
Type a Friendly Name :
image
Wild Card is used if you are going to manage more URLs .For Example : *.Domain.com
image
Choose the Server to have the Cert Request
image
Step 2:
Enter the Required URL’s for your Exchange ,
image
For Example Am entering only for Outlook Web App (When accessed from the internet)
image
Step 3:
You will see the collection for URL’s
image

Step 4:
Fill out the Form
image
Create a Simple Share to Save the Cert Request
image

Save the Cert Request to a Shared Location as below
image
Now you could see the Pending Cert Request
image
Step 5:
Your request file would look like this
image

ExchangeCert.req is the request file you created. Now right click on the file , Open with , Use notepad, opening it via Notepad , It would give a set of Request content, You will use this content in the later part
image
Step 6:
You need to have this role installed to have a  Certificate Authority , It can be DC or Exchange it self
I have done this in the Exchange itself (No Harm)
Open Server Manager – Manage – Add Roles and Features
image
Step 7:
Choose Active Directory Certificate Services, Choose Next and Choose Certification Authority Web Enrollment
image
Choose : Certification Authority Web Enrollment
image
Choose Install
image
Choose Close
image

Step 8:
To Configure Active Directory Certificate Services, choose the Exclamation Mark on the Flag
image
Choose Next
image
Choose Certificate Authority and Certification Authority Web Enrollment
image
Choose Enterprise
image
Step 9:
Choose Root CA
image
Step 10:
Create a new Private key
image
Step 11:
Have this Default with 2048 key Character length
image
Step 12:
Click Next
image
Step 13:
By Default Certificate is valid for 5 years , don’t make any changes on it , Click next
image
Step 14:
image
image
image
Step 15:
Now if you Open IIS manager , you will see “CertSrv”  a Virtual Directory Created ,
image
Use the right side column “Browse *.443(https)
Step 16:
You would see a page like this , Choose Request a Certificate
image
Step 17:
Click on Advanced Certificate Request
image
Step 18:
Choose the Second one
Submit a certificate request by using a base-64-Encoded CMC
image
Step 19:
Now Copied the content from the  Note pad  – (See Step5), choose Template : WebServer
image
Step 20:
Choose “Base 64 encoded”
image
Step 21:
Save the Certificate
image
Copied the File to a  Common Share
image
Step 22:
Now go to your EAC – Servers – Certificates- Choose the Pending Request – Choose Complete
image

image
Step 23:
Now Assign Services to the Certificate, choose Cert and Click on Edit
image
image
Now the Server Part is ready
image
Step 24:
Now will learn how to install the Certificate in the Client End,double Click on the Certificate
image
Click Install Certificate – Click Next –
image
Choose Local Machine
image
Choose Personal –
image
Click Next And Import will be Successful
image
Now Do the Same Process, Double Click on the Certificate, Click Install Certificate – Click Next – Choose Trusted Root Certification Authorities
image
Double Click on the Certificate, Click Install Certificate – Click Next – Choose Intermediate Certification Authorities
image
Step 25:
Before
image
After installing the Certificate in the Client
image

Prevent or Prohibit Server Drives From Being Visible to Users

  To make changes to this policy for one of the seven default values: Start the Microsoft Management Console. On the Console menu, click  Ad...