25 March, 2012

Useful power shell command

Hello Friends,



While performing Administrative duty, We require to enable, disable, Lync user list, Specific OU user list etc task multiple time. GUI mode is not good option. Instead GUI you can use CMDLETS,


Here are the lists of cmdlet which are getting use daily basis.

The difference between Get-CsUser and Get-CsAdUser:


Both cmdlets return information about Lync users. Use Get-CsUser unless you require access to the generic AD attributes, or if the user has not been enabled for Lync Server
Show all the properties returned by Get-CsUser:

Get-CsUser
Get-Member

Show the number of Lync enabled users:

@(Get-CsUser).Count

Get all AD users who are not, and who have never been, enabled for Lync or OCS:

Get-CsAdUser -Filter {Enabled -eq $null}
Format-Table -Wrap

Get users who are disabled for Lync or OCS:

Get-CsAdUser -Filter {Enabled -eq $False}

Get all users who have been enabled for Lync or OCS but are not currently assigned to a registrar pool.

Get-CsUser -UnassignedUser

Get all Lync Users in the 'Sales' Department (You may change sales name with any other name):

Get-CsUser -LDAPFilter 'Department=Sales'



Thank you!

22 March, 2012

How to search user in Lync server 2010 control panel?

How to search user in Lync server 2010 control panel?

You can search for users by using the Lync Server Control Panel or the Active Directory Users and Computers snap-in.

To search for one or more users via Lync server control panel-

1.   From a user account that is assigned to the CsUserAdministrator role or the CsAdministrator role, log on to any computer in your internal deployment.

2.   Open a browser window, and then enter the Admin URL to open the Lync Server Control Panel. For details about the different methods you can use to start Lync Server Control Panel.

3.   In the left navigation bar, click Users.

4.   In the Search users box, type all or the first portion of the display name, first name, last name, SAM account name, SIP address, or line URI of the user account that you want to search for, and then click Find.

5.   (Optional) Specify additional search criteria to narrow the results:

     a. Click the expand arrow button in the upper-right corner of the screen above Search  results, and then click Add Filter.

    b. Enter the user property by typing it or clicking the arrow in the drop-down list to select a user property.

   c. In the Equal to list, click Equal to or Not equal to.

   d. In the text box, type the search criteria you want to use to filter search results, and then click Find.

Microsoft Lync Server 2010 Software and Hardware requirement.

Microsoft Lync Server 2010 Software and Hardware requirement.

Hardware Requirement:-

•  Lync Server 2010 is available only in 64-bit., which requires 64-bit hardware and 64-bit editions of Windows Server.
•  Lync Server 2010 is not available in a 32-bit version.
•  Lync Server 2010 required multiple processor groups (dynamic hardware partitioning)


Software Requirement:-Operating Systems for Server Roles

Microsoft Lync Server 2010 supports the 64-bit editions of the following operating systems:
•  The Windows Server 2008 R2 Standard operating system (required) or latest service pack (recommended)
•  The Windows Server 2008 R2 Enterprise operating system (required) or latest service pack (recommended)
•  The Windows Server 2008 R2 Datacenter operating system (required) or latest service pack (recommended)
•  The Windows Server 2008 Standard operating system with Service Pack 2 (SP2) (required) or latest service pack (recommended)
•  The Windows Server 2008 Enterprise operating system with SP2 (required) or latest service pack (recommended)
•  The Windows Server 2008 Datacenter operating system with SP2 (required) or latest service pack (recommended).
•  To deploy Lync Server 2010 on a computer that is running either the Windows Server 2008 R2 Datacenter operating system or the Windows Server 2008 Datacenter   operating system with Service Pack 2 (SP2)


Lync Server 2010 is not supported on the following operating systems:

•  The Server Core installation option of Windows Server 2008 R2 or Windows Server 2008
•  The Windows Web Server 2008 R2 operating system or the Windows Web Server 2008 operating system
•  Windows Server 2008 R2 HPC Edition or Windows Server 2008 HPC Edition


Backend server (SQL) requirement:-•  Microsoft SQL Server 2008 Express database software, which is installed by default when you install Lync Server 2010, to Microsoft SQL Server 2008 R2 Express.
•  The SQL instance name is RTC for a Standard Edition server back-end database and RTCLocal for the local configuration store (on each server role).
•  A server running Lync Server 2010 Standard Edition has both SQL instances, and each needs to be upgraded separately.

20 March, 2012

Event id: 7034

An event is any significant occurrence in the system or in a program that requires users to be notified, or an entry added to a log. The Event Log Service records application, security, and system events in Event Viewer. With the event logs in Event Viewer, you can obtain information about your hardware, software, and system components, and monitor security events on a local or remote computer. Event logs can help you identify and diagnose the source of current system problems, or help you predict potential system problems.

Today I am trying to collect the information based on Event id: 7034 so that it would be useful for the people to get the information at one place.

1.       Alert Name: User Code Host service fails to start
Source: Service Control Manager
Event ID: 7034
Level: Error
Article: Microsoft KB:

Resolution Mentioned:
Set the data value of ProcessNameFormat in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance to 1

2.      Alert Name: Service instance provisioning failed
Summary: An attempt to start or stop a service instance failed on a server in your farm because the service instance provisioning failed.
Resolution: Start the service (Please refer the following for detailed documentation)

3.      Alert Name: Service Stop Operations
Applies To: Windows Server 2008
Description: Service Control Manager (SCM) stops services and driver services. It also reports when services terminate unexpectedly or fail to restart after it takes corrective action.
Message: The %1 service terminated unexpectedly. It has done this %2 time(s).

4.      Alert Name: The Windows Firewall has detected an application listening for incoming traffic.
Event Type: Failure Audit
Event Source: Security
Event Category: Detailed Tracking

5.      Log name: Application
Source: SharePoint Foundation
Task Category: Web controls
user: domain name\usernaccount name
Description: Load control template file file/_controltemplate/taxonomypicket.ascx failed

19 March, 2012

Event ID 8214: “Object reference not set to an instance of an object”

Problem Description
-You are trying to Check-Out documents from the document library where document check-out is required from the SharePoint site on your SharePoint farm, you are getting following error message
“Object reference not set to an instance of an object”
–You are unable to open and edit any office documents
–You are not facing the issue on the document library where check-out is not required to edit the documents
–Issue started to occur when you installed WSS 3.0 SP2 on you SharePoint server

Under Event Viewer–Application you are getting event ID 8214
Event Type:        Error
Event Source:    Windows SharePoint Services 3
Event Category: Topology
Event ID:              8214
Date:                     3/20/2012
Time:                     4:25:15 AM
User:                     N/A
Computer:          nasdac
Description:
The description for Event ID (8214) in Source (Windows SharePoint Services 3) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: A request was made for a URL, http://novashare, which has not been configured in Alternate Access Mappings.  Some links may point to the Alternate Access URL for the default zone, http://novadc2.  Review the Alternate Access mappings for this Web application at http://nasdac
: 13651/_admin/AlternateUrlCollections.aspx and consider adding http://nasdac as a Public Alternate Access URL if it will be used frequently.  Help on this error: http://go.microsoft.com/fwlink/?LinkId=114854.

Resolution:
1.       Open you Central Administration site and go to “operations”
2.      Look for “Alternate Access Mappings”
3.      In the page you will find “Alternate Access Mapping Collection” and it will say “Show All”
4.      Click on the small arrow point downwards on this “Show All” location and you will get “Change Alternate Access Mapping Collection”
5.      Go ahead and choose the Web Application which is responsible for the problem site
6.      You will see that there is a URL already showing in “Default” zone
7.      You need to specify the URL which is giving you problem in the “Intranet” zone. So it will see like this:
Default: http://sharepointmagic
Intranet: http://myspinventions.org
8.     Performed IISRESET

Now everything should be working fine, you should be able to check-out and edit the office documents

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues J