Translate

Thursday, August 29, 2013

Turn windows features on or off blank

Windows 7 Turn windows features on or off is blank
Turn Windows features on or  off is empty
optionalfeatures.exe is blank or empty

After you open Turn windows features on or off and after few second it will remain blank

Solutions

1) rum below command in command prompt

SFC /scannow

It will take 15 to 20 mins and it will fix lost or corrupt files. If this doesn't work try next steps

2) refer to few blogs on google, found below solution if it works

reg de;ete HKLM\COMPONENTS /v StoreDirty 

If this doesn't work, try next one

3) Download System update readiness tool according to your operating system

Install system update readiness tool, if this doesn't work try next step

4) In my case, try reinstalling .net framwork as optionalfeatures.exe uses .Net framework

If this doesn't work, try more research


Tuesday, August 27, 2013

PowerCLI command to get VMware tools and VMware hardware version information

*Command to find out VMware tool status
*How to find out VMware tools status from Command / PowerCLI



It is easy to find VMware hardware version by using below command

Get-VM | Select name, Version | FT -AutoSize

As version is a root property of get-vm command.

However if we want to get VMware tool status, we need to deep dive into their extension property data and create a custom field as given below*

New-VIProperty -Name ToolsVersionStatus -ObjectType VirtualMachine -ValueFromExtensionProperty 'Guest.ToolsVersionStatus' -force

now rerun above command with ToolsVersionStatus

Get-VM | Select Name, Version, ToolsVersionStatus | FT -AutoSize




If you want to export it

Get-VM | Select Name, Version, ToolsVersionStatus | Export-Csv  -NoTypeInformation -UseCulture -Path c:\yourfile.csv




To get this information on Datacenter level

Get-Datacenter Datacentername | Get-VM | Select name, Version, ToolsVersionStatus | FT -AutoSize

To get this information on Cluster Level

Get-Cluster ClusterName | Get-VM | Select name, Version, ToolsVersionStatus | FT -AutoSize

To get this information on Host level

Get-VMHost hostname.domain | Get-VM | Select name, Version, ToolsVersionStatus | FT -AutoSize


*taken reference for this blog from blogs.vmware.com


Post your question and comment 

Monday, August 19, 2013

Remove LUN from ESXi host correctly

Delete LUN from ESXi host 

For ESXi 4.0
  1. Unregister all objects from the datastore including VMs and Templates
  2. Ensure that no 3rd party tools are accessing the datastore
  3. Ensure that no vSphere features, such as Storage I/O Control, are using the device
  4. Mask the LUN from the ESX host by creating new rules in the PSA (Pluggable Storage Architecture)
  5. Physically unpresent the LUN from the ESX host using the appropriate array tools
  6. Rescan the SAN
  7. Clean up the rules created earlier to mask the LUN
  8. Unclaim any paths left over after the LUN has been removed
For ESXi 5.0
  1. Unregister all objects from the datastore including VMs and Templates
  2. Ensure that no 3rd party tools are accessing the datastore
  3. Ensure that no vSphere features, such as Storage I/O Control or Storage DRS, are using the device
  4. Detach the device from the ESX host; this will also initiate an unmount operation
  5. Physically unpresent the LUN from the ESX host using the appropriate array tools
  6. Rescan the SAN

Friday, August 16, 2013

New feature in SCOM 2012

Added feature

  • .Net application monitoring
  • Resource pool
  • Dashboard View
  • Removal of Root Management Server
  • introduced RMS Emulator, eliminating RMS need
  • Improved network monitoring
  • Improved Web Console
  • Improved Operation Console


Monday, August 12, 2013

Remove snapshot using PowerCLI

* Remove snapshot using PowerCLI
* Remove snapshot using command line
* Remove all VM's snapshot at once using command prompt


To get information about snapshot use following command in PowerCLI

Get-VM | Get-snapshot

This will give all the VM's list which are running on snapshot

Now review it and if you want to delete all the snapshots just add another command

Get-VM | Get-Snapshot | Remove-Snapshot

Thats it, with the help of just one simple command, it will remove all the snapshots from virtual environment

Post your comment or question

Thanks



Tuesday, August 6, 2013

Powershell script to read log file

Powershell script to read log file with specific content
Powershell script to read a txt, log, html file with specific content
Powershell script to read multiple content from log file and send an email
Powershell script to read log file which recently changed

Script




$date1 can be modified to any variable or any content
$date is variable which judges that log was changed before 60 mins
Log.txt file will store match content $date1


Post your comment and question