Month: September 2009

Exchange 2007 – Enumerate all public folders and their email addresses using Exchange Management Shell (EMS)

Ever wanted to enumerate all Public Folders and their email addresses? here’s a way to do this using Microsoft Exchange Management Shell (EMS) Get-Mailpublicfolder | select name , alias ,EmailAddresses | foreach { “Name: “+$_.name “Alias: “+$_.alias $_.EmailAddresses | foreach { if($_.SmtpAddress){ if($_.IsPrimaryAddress){ “Primary SmtpAddress: $($_.SmtpAddress)” } else { “SmtpAddress: $($_.SmtpAddress)” } } } write-output…



Exchange 2007 – Get Email Addresses for each Mailbox using Exchange Management Shell (EMS)

Ever needed to export the list of mailbox of your Microsoft Exchange 2007 with all alias and all the smtp addresses? Try this with this command: Get-Mailbox | select name , alias ,EmailAddresses | foreach { “Name: “+$_.name “Alias: “+$_.alias $_.EmailAddresses | foreach { if($_.SmtpAddress){ if($_.IsPrimaryAddress){ “Primary SmtpAddress: $($_.SmtpAddress)” } else { “SmtpAddress: $($_.SmtpAddress)” }…



Enable RDP (Remote Desktop Protocol) using WMI remotely

This allows you to enable Remote Desktop remotely and add a Domain User to the Remote Desktop Users local group. ‘Make sure to replace “/” with your Domain name. Const ENABLE_CONNECTIONS = 1 Dim PCName, UsrName strComputer = InputBox(“Enter computer name:”,PCName) strUser = InputBox(“Type username:”,UsrName) Set objWMIService = GetObject(“winmgmts:” _ & “{impersonationLevel=impersonate}\\” & strComputer &…



Special chars (Sonderzeichen) like ä ö ü in Eventum Issue / Bug Tracking System

There’s an issue when you try to add issues containing special characters (sonderzeichen) like ä ü ö è à é etc. to the eventum bug tracking system – they won’t be displayed correctly. I’ve spent hours finding out where and how to fix that. At first i thought i have to make changes to the…



Powershell – Download File from the Internet using Net.WebClient Object

Powershell – Download File from the Internet using Net.WebClient Object You can tap into the wealth of .NET methods easily. Use New-Object to instantiate a new .NET class, and off you go. For example, instantiate an instance of Net.WebClient and you can enable your PowerShell scripts to download files from the Internet: $object = New-Object…



Microsoft Office Sharepoint Server 2007 on Windows Server 2008 – This Program is blocked due to compatibility issues

When trying to install Microsoft Office Sharepoint Server 2007 (en_office_sharepoint_server_2007_standard_and_enterprise_edition_with_service_pack_1_x86_x64_dvd_x14-40187.iso) on a Microsoft Windows Server 2008 or Microsoft Windows Server 2008 R2 System, you’ll get an error message stating:…



Overview: Which PowerShell Snap-Ins and Modules are available for use

Which PowerShell Snap-Ins and Modules are available for use? This is the way to determine which PowerShell Snap-Ins and Modules are available in Windows Server 2008 R2… PS C:\> Get-PSSnapin…



Servermanagercmd.exe is deprecated, and is not guaranteed to be supported in future releases of Windows.

Command Line version of Server Manager in Windows Server 2008 R2 Today I was using “ServerManagerCmd.exe” on a Microsoft Windows Server 2008 R2. When I executed it I saw the following informational message: “Servermanagercmd.exe is deprecated, and is not guaranteed to be supported in future releases of Windows. We recommend that you use the Windows…