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 ,

/var/log/messages:
/var/log/vmware/hostd.log
/var/log/sysboot.log

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:
127.0.0.1         localhost.localdomain localhost
192.168.1.10   server.domain.com 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:

NETWORKING=yes
HOSTNAME=server.domain.com
GATEWAY=192.168.1.1
GATEWAYDEV=vswif0

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:

DEVICE=vswif0
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.10
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
PORTGROUP="Service Console"
MACADDR=00:50:56:4a:66:ba

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

192.168.1.0   0.0.0.0    255.255.255.0 U         0          0        0    vswif0
169.254.0.0   0.0.0.0   255.255.0.0      U         0          0        0    vswif0
0.0.0.0          192.168.1.1 0.0.0.0        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:
search domain.com
nameserver 192.168.1.2
nameserver 192.168.1.3

Monday, May 7, 2012

SCCM-Failed to get certificate. Error: 0x80004005

Problem:

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.





Solution:

Windows XP:

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

Windows 7:
Drive:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\19c5cf9c7b5dc9de3e548adb70398402_50e417e0-e461-474b-96e2-077b80325612.sys.


Note:

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

Solution

Mention the , Domain\User Name (or UPN) is ,
username@domainname.com

Eg:
user1@expertise.com

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.


Error:

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

Solution:

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.

CCMCERTSEL :

Select domainname.com domain certificate that matches

Condition:

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

10.0.0.49                 SCCM                                                              #PRE
10.0.0.49                "SMS_SLP                            \0X1A"               #PRE
10.0.0.49                "MP_CA1                                \0X1A"            #PRE

Where ,

10.0.0.49        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


C:\Client>CCMSETUP.EXE FSP=server name SMSMP=domainname.com SMSSLP= server name SMSCACHESIZE=1000 CCMLOGMAXHISTORY=2 SMSSITECODE=Site code  CMCERTSEL=domainname.com
 Eg:
 C:\Client>CCMSETUP.EXE FSP=sccm SMSMP=expertise.com SMSSLP=sccm SMSCACHESIZE=1000 CCMLOGMAXHISTORY=2 SMSSITECODE=CA1 CCMCERTSEL= expertise.com

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>
Eg:
                    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

http://gallery.technet.microsoft.com/Exchange-2010-SP1-ExFolders-e6bfd405



File à Connect,
FQDN:Servername.Domainname.com











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

[HKEY_CURRENT_USER\Software\Microsoft\Communicator\ContextPackages\{54C2C31A-A291-4DFA-825A-18994EBE9877}]
"Name"="Conversation Translator"
"ExtensibilityApplicationType"=dword:00000000
"ExtensibilityWindowSize"=dword:00000001
"DefaultContextPackage"=dword:00000000
"InternalURL"="http://input.microsoft.com/translator/OCTranslatorTestPage.html"
"ExternalURL"="http://input.microsoft.com/translator/OCTranslatorTestPage.html"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\microsoft.com\input]
"http"=dword:00000002


Registry changed into batch file:
@ECHO OFF
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"
  Pause
 )
)
> "%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"="http://input.microsoft.com/translator/OCTranslatorTestPage.html"
>> "%Temp%\~import.reg" ECHO "ExternalURL"="http://input.microsoft.com/translator/OCTranslatorTestPage.html"
>> "%Temp%\~import.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\microsoft.com\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 inout.microsoft.com site into Trusted site on Internet Explorer
Lync Translation Registry:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Communicator\ContextPackages\{54C2C31A-A291-4DFA-825A-18994EBE9877}]
"Name"="Conversation Translator"
"ExtensibilityApplicationType"=dword:00000000
"ExtensibilityWindowSize"=dword:00000001
"DefaultContextPackage"=dword:00000000
"InternalURL"="http://input.microsoft.com/translator/OCTranslatorTestPage.html"
"ExternalURL"="http://input.microsoft.com/translator/OCTranslatorTestPage.html"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\microsoft.com\input]
"http"=dword:00000002

Lync 2010 Commands


Create Lync 2010 User 

Enable-CsUser -Identity "niteenp" -RegistrarPool "lync.orchidpharma.com"  -SipAddressType SamAccountName  -SipDomain orchidpharma.com


 Migrates   user accounts from OCS to  Lync Server 2010.

 Move-CsLegacyUser -Identity "user1" -Target "lync.info-identity.com" 

 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"