Monday, June 25, 2012

VMware Important Commands

Upgrade VMware Tools, all virtual machines in cluster:

Get-Cluster "Productie" | Get-VM | Update-Tools –NoReboot

Upgrade VMware Tools, located in folder:

Get-Cluster "Productie" | Get-Folder "Beheer servers" | Get-VM | Update-Tools –NoReboot

Upgrade VMware Tools, selected virtual machine:

Get-Cluster "HOCluster" | Get-VM "VDI01" | Update-Tools –NoReboot

Find VMware CPU Information

cat /proc/cpuinfo

Find out memory information

cat /proc/memoinfo

Enter Maintenance Mode:

Vimsh -n –e /hostsvc/maintenance_mode_enter

Exit maintenance Mode:

Vimsh –n –e /hostsvc/maintenance_mode_exit

Check the ESX server whether Maintenance mode or Not:

Vimsh –n –e “hostsvc/hostsummary” | grep inMaintenanceMode

List the location of the virtual machine.

vmware-cmd -l

VMware Host Log Files located in ,


To Restart VMware services

#service mgmt-vmware restart
#service vmware-vpxa restart
#/etc/init.d/network restart

 VMware DNS verification

1.Verify the format and content of /etc/hosts, run the command:
[root@server root]# cat /etc/hosts
 Here is an example of the hosts file:         localhost.localdomain localhost server

2. To verify the contents of /etc/sysconfig/network, run the command: [root@server root]# cat /etc/sysconfig/network

Confirm that the proper values for your environment exist for the fully qualified hostname and gateway. Consult your network administrator if you are unsure of the proper values. Here is an example of the network file:


3. To verify that /etc/sysconfig/network-scripts/ifcfg-vswif0 has the correct settings for IP address (IPADDR), subnet mask (NETMASK), and network (NETWORK), run the command:

[root@server root]# cat /etc/sysconfig/network-scripts/ifcfg-vswif0

Consult your network administrator if you are unsure of the correct settings.
Here is an example of the ifcfg-vswif0 file:

PORTGROUP="Service Console"

4. To display the routing table, run the command:
[root@server root]# route –n

The output looks similar to:

Destination   Gateway Genmask         Flags  Metric   Ref   Use  Iface U         0          0        0    vswif0      U         0          0        0    vswif0        UG       0          0        0    vswif0

Ensure that the second column of the row flagged with UG matches the gateway address for your environment.

5. To verify that the DNS information in /etc/resolv.conf is correct for your environment, run the command:

[root@server root]# cat /etc/resolv.conf

Here is an example of the resolv.conf file:

Monday, May 7, 2012

SCCM-Failed to get certificate. Error: 0x80004005


ClientIDManagerStartup.log files repeat the below error continually  ,

RegTask: Failed to get certificate. Error: 0x80004005 
Failed to find the certificate in the store, retry 1.
Failed to find the certificate in the store, retry 2.

Failed to find the certificate in the store, retry 3.
Failed to find the certificate in the store, retry 4. Failed to find the certificate in the store, retry 5. Already refreshed within the last 10 minutes, Sleeping for the next 9 minutes before reattempt.


Windows XP:

Drive:\Documents and Settings\all users\ApplicationData\Microsoft\Crypto\RSA\MachineKeys\ 19c5cf9c7b5dc9de3e548adb70398402_50e417e0-e461-474b-96e2-077b80325612.sys.

Windows 7:


Cannot locate the same file (19c5cf9c7b5dc9de3e548adb70398402_50e417e0-e461-474b-96e2-077b80325612.sys) mentioned above, check only start with 19cXXXX.

Connectivity Test Failed

Expanding the Test Steps, I found the following error message:
ExRCA is attempting to send the OPTIONS command to the server.
Testing of the OPTIONS command failed. For more information, see Additional Details.
    Additional Details:
A Web Exception occurred because an HTTP 401 – Unauthorized response was received from IIS7


Mention the , Domain\User Name (or UPN) is ,


Event ID 106 MSExchange Common

Manually add RPC Client Access performance counters
  • Start Exchange Management Shell
  • Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Setup
  • New-PerfCounters -DefinitionFileName "C:\Program Files\Microsoft\Exchange Server\V14\Setup\Perf\RpcClientAccessPerformanceCounters.xml" 

Saturday, May 5, 2012

Task ‘Microsoft Exchange Server ‘reported error (0x8004010F): The operation failed. An object could not be found.


Task ‘Microsoft Exchange Server ‘reported error (0x8004010F): The operation failed. An object could not be found.


1.      Tools->Options

2.      Click Mail Setup tab, click Send/Receive button

3.      Select All Accounts group and click Edit

4.      Please unchecked Download offline address book and click OK to save the change.

Please click Send/Receive button again to check whether the issue persist

SCCM to manage clients in a workgroup or untrusted domain

Fallback Status Point (FSP):

 A “catch all” Site System for Clients that cannot be installed because of various issues such as assignment, or their inability to communicate with their Management Point (MP).  Not required by default, but recommended to help with Client installation issues.

Management Point (MP) :

 SCCM Clients do not communicate directly with the SCCM Site Server and vice versa.  Instead all communication is facilitated via the Management Point.  A Default Management Point needs to be defined in every Site that has Intranet Clients.

Server Locator Point (SLP) :

 Responsible for informing SCCM Clients which MP they should access in order to install the SCCM Client software. Only required in some Client Deployment scenarios.


Select domain certificate that matches


1. During client installation, the logged-on user must possess local administrator rights on the workgroup system.
2. Workgroup clients must be able to locate a server locator point for site assignment because they cannot query Active Directory Domain Services
           3. User targeted advertisements are not possible.
           4. Using a workgroup client as a branch distribution point is not supported.
           5. Workgroup clients cannot locate their default management point from Active Directory Domain Services, and instead must use DNS or WINS
          6. Global roaming is not supported, because clients cannot query Active Directory Domain Services for site information.
          7. Active directory system, user or user group discovery is not possible
          8. Use of software installation account is not possible
          9. Client Push installation is not possible
         10. Logon initiated installation is not possible

Required Host Entries

Once you have done this, from the run Command type c:\Windows\system32\drivers\etc                 SCCM                                                              #PRE                "SMS_SLP                            \0X1A"               #PRE                "MP_CA1                                \0X1A"            #PRE

Where ,        is our SCCM server IP,
SCCM            is our SCCM server Hostname and
CA1                is site code.

There should be 20 spaces between the quotes ("" i.e "MP_CA1 \0x1A")

Go to File Menu and click on save as type the file name as "hosts" shown below

SCCM Client Installation

 C:\>cd  Client


Start ->Run, Type Services.msc

After completed this process client will detect in the SCCM server  workgroup name.

Troubleshooting Tips

To troubleshoot the client push account,monitor the ccm.log file on the site server
To troubleshoot the network discovery,monitor the netdisc.log file on the site server
To troubleshoot the client assignment process,monitor the clientlocation.log file on the client

How to change the Websense Remote Filtering Server passphrase (Password)

1.    From the Remote Filtering Server, open a command prompt and navigate to the Websense bin directory.
2.    Enter the following command, replacing '<newpassphrase>' with your new passphrase:
    SecureWispProxyOptions.exe -p <newpassphrase>    (or)
    SecureWISPProxy -p <newpassphrase>
                    SecureWispProxyOptions.exe -p password
3.    Restart the RFS service.
4.  After restart the service take the client package from C:\Programfiles(X86)\Websecuirity\bin\DFTAgent\Remote Filtering\32Bit
path and install this package in client machine

Exchange 2010 SP1 Public Folder Item Recovery

ExFolder.exe keeps in Exchange/bin Directory
& run TurnOffSNVerificationForExFolders.reg
Connect and select a Global Catalog and the public folder database where the deleted public folder was on.

Download the ExFolders

File à Connect,

Monday, March 19, 2012

Lync2010 Language Translation via Batch

We already discussed Lync language translation using registry ,Now we are going convert Registry file into batch file.This file useful for  apply via Group Policy compare to registry apply

Windows Registry Editor Version 5.00

"Name"="Conversation Translator"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\\input]

Registry changed into batch file:
If exist "%Temp%\~import.reg" (
 Attrib -R -S -H "%Temp%\~import.reg"
 del /F /Q "%Temp%\~import.reg"
 If exist "%Temp%\~import.reg" (
  Echo Could not delete file "%Temp%\~import.reg"
> "%Temp%\~import.reg" ECHO Windows Registry Editor Version 5.00
>> "%Temp%\~import.reg" ECHO 
>> "%Temp%\~import.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Communicator\ContextPackages\{54C2C31A-A291-4DFA-825A-18994EBE9877}]
>> "%Temp%\~import.reg" ECHO "Name"="Conversation Translator"
>> "%Temp%\~import.reg" ECHO "ExtensibilityApplicationType"=dword:00000000
>> "%Temp%\~import.reg" ECHO "ExtensibilityWindowSize"=dword:00000001
>> "%Temp%\~import.reg" ECHO "DefaultContextPackage"=dword:00000000
>> "%Temp%\~import.reg" ECHO "InternalURL"=""
>> "%Temp%\~import.reg" ECHO "ExternalURL"=""
>> "%Temp%\~import.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\\input]
>> "%Temp%\~import.reg" ECHO "http"=dword:00000002
START /WAIT REGEDIT /S "%Temp%\~import.reg"
DEL "%Temp%\~import.reg"

Now copy above file into notepad Saveas  -> filename.bat.Then apply via Group policy using  logon or startup policy

Lync2010 client Language Translation

  • With Conversation Translator, both the sender and receiver can converse in their native language,
  • Lync client is able to convert circa 40 languages. 
  • This is a Silverlight application that is manually enabled in the Conversation window options when you start an IM session with a contact. 
  •  Best future is, Lync will do the language translation back and forth
  • Also we need to add site into Trusted site on Internet Explorer
Lync Translation Registry:

Windows Registry Editor Version 5.00

"Name"="Conversation Translator"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\\input]

Lync 2010 Commands

Create Lync 2010 User 

Enable-CsUser -Identity "niteenp" -RegistrarPool ""  -SipAddressType SamAccountName  -SipDomain

 Migrates   user accounts from OCS to  Lync Server 2010.

 Move-CsLegacyUser -Identity "user1" -Target "" 

 How many users are connected in Lync Server 2010

Get-CsUser -Filter {Enabled -eq $true} | Measure

 Lync Enabled users:

get-csuser | Select-Object DisplayName, SAMAccountname, SIPAddress | Export-CSV "Dup-Phone.csv"