Le Café Central de DeVa
let.us.develop.share.messaging.more... DeVa blogs!!
I changed the way of blogging. Re-designed the site & started using the latest Windows Live Writer 2011!! Additionally added Microsoft Translator gadget available @ top of page, so that you can change the page in your preferred language!!
Hi, I am Deva working with Microsoft Dev. Messaging & Collaboration team.
This blog will assist developers who design/develop custom applications using Microsoft Messaging libraries. I will try to touch base other developer related info too.
Let us talk.develop.messaging.share.more.
Exchange Management Shell:
How to list Service Information using Windows Powershell & cmdlet:
In Exchange Server 2007, Get-Service cmdlet will be used to retrieve information about the services installed on the computer. By default, it will return the results in alphabetical order.
(1) Get information about the services installed
Get-Service
It will list/get you the information about the service name, status and, display name.
(2) Get information about the services in sorted
Get-Service | Sort-Object status, displayname
Here, Sort-Object - the cmdlet can sort the data in any way we want, Status - service property which needs to be filtered, display - represents display name
(3) Get information about the services installed, but only for running services
Get-Service | Where-Object {$_.status –eq "running"}
Here, Where-Object - the cmdlet filters out everything except those services that are stopped, $_. - the object passed across the pipeline, Status - service property which needs to be filtered, -eq "running" - represents the running services
(4) Get information about the services installed, but only for stopped services
Get-Service | Where-Object {$_.status –eq "stopped"}
Here, Where-Object - the cmdlet filters out everything except those services that are stopped, $_. - the object passed across the pipeline, Status - service property which needs to be filtered, -eq " stopped" - represents the stopped services
How to verify Autodiscover Service info for Outlook 2007 using "Test-OutlookWebServices" cmdlet:
In Exchange Server 2007 environment, to verify the Autodiscover service settings for Outlook and that has Client Access server role installed or not, we can use of "Test-OutlookWebServices cmdlet". It verifies information for the services like, (1) Availability service (2) Outlook Anywhere (3) Offline Address Book (4) Unified Messaging.
The cmdlet tests for a connection to each service. For example, it requests the availability service for the above user to check the user's free/busy information obtained from Client Access server to the Outlook 2007.
For Example, "test-OutlookWebServices -identity:sample@administrator.com"
This cmdlet verifies the service information that is returned to the Outlook 2007 client from the Autodiscover service for sample@administrator.com
Identifying Cmdlet:Simple way to recognize the cmdlets by their name format -- "a verb and noun separated by a dash (-), such as Get-Help, Get-Process, and Start-Service"
get-help <cmdlet-name> -detailed
It will provide detailed view of the cmdlet help file includes a description of the cmdlet, the command syntax, descriptions of the parameters, and example that demonstrate use of the cmdlet.
Still for more information, we can identify that,
About cmdlets:
After entry of Exchange Server 2007, there is a famous buzzword called "cmdlet" started revolving. In this series, we'll look some of its features, usage and importance in Exchange Server 2007 environment.
What is a cmdlet?
A cmdlet, pronounced "command-let", is the basic unit of Microsoft Shell (codenamed Monad). The Microsoft Shell (Monad) is a break through console shell for Windows. It's designed for the manipulation of objects.
They resemble built-in commands in other shells, for example, the Dir command in cmd.exe.
Advantages of cmdlet with other Existing shells:
Adjoining issues:
Monad is revolutionary because text strings were a limitation. Lets we understand how it works.
What is a PowerShell?
Windows PowerShell or Powershell or Windows Shell is a new Windows command-line shell (includes an prompt and scripting environment, which can accept and return text) designed for specially system adminis.
Windows Powershell Vs. Classic Shell(s):
New feature?
PowerShell uses its own scripting language, rather than reusing existing languages, for the following reasons.
Advantages:
It is built on top of the .NET common language runtime (CLR) and the .NET Framework, and accepts and returns .NET objects.
Pipeline operator:
The Pipeline operator helps to pass the output of one command to another command as input. In Powershell-cmdlet it receives an object can act directly on its properties and methods without any conversion or manipulation. So that users can refer to properties and methods of the object by name, rather than calculating the position of the data in the output.
What can we work with Powershell?
For example, "c:\> ipconfig | select-string -pattern 255" where,- "ipconfig" command-line program, which will provide Windows IP configuration details- "select-string -pattern 255" cmdlet to manipulate to find the text pattern "255" in the Ipconfig output
I found an interesting article which talks about Microsoft Visual Basic sample code that demonstrates how to programmatically create a global address list (GAL) in Exchange Server.
Please click here to read the article
Here is a code snippet script that uses CDO to send email from a computer.
Set objEml = CreateObject("CDO.Message")objEml.From = "testuser@admin.com"objEml.To = "sampleuser@admin.com"objEml.Subject = "Test Mail" objEml.Textbody = "Oops...You got the Mail!!"objEml.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2objEml.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtpserver" objEml.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25objEml.Configuration.Fields.UpdateobjEml.SendMsgbox "Mail Sent!"
Please note that,1) Replace the name SSN with SMTP server name2) The script will work where the SMTP Service has not been installed
Here is a code snippet of a script that uses CDO to send email from a computer. Set objEml = CreateObject("CDO.Message") objEml.From = "testuser@admin.com" objEml.To = "sampleuser@admin.com" objEml.Subject = "Sample Message" objEml.Textbody = "Test Message from Test User" objEml.Send Msgbox "Mail Sent!!"
Please note that the script will work only where SMTP Service has been installed.
Microsoft Surface - Key Features:
• Direct interaction: Users can actually “grab” digital information with their hands, interacting with content by touch and gesture, without the use of a mouse or keyboard. • Multi-touch: Surface computing recognizes many points of contact simultaneously, not just from one finger like a typical touch-screen, but up to dozens of items at once. • Multi-user: The horizontal form factor makes it easy for several people to gather around surface computers together, providing a collaborative, face-to-face computing experience. • Object recognition: Users can place physical objects on the surface to trigger different types of digital responses, including the transfer of digital content.