showing posts tagged with 'computer'
by lunarg on March 19th 2015, at 14:43
You can quickly configure message tracking logging through the Exchange Management Shell (EMS). Among the things you can set up are: the time the logs are to be kept, where they should be stored, the individual log file size, the total maximum size for the tracking logs directory, etc.

Retrieve the current settings for a server with:

Get-TransportServer <server-name> | Select MessageTracking*

Change those values with:

Set-TransportServer <server-name> <parameters>

In case your mailbox role is running on different servers, you also need to run:

Set-MailboxServer <server-name> <parameters>

Example: set the message tracking log for a server called EXCH01 to   ...
by lunarg on March 19th 2015, at 12:39
Using the vSphere (Web) Client, it is only possible to "upgrade" your virtual hardware to the latest version supported by your ESX host. Sometimes, it's necessary to set the hardware version to a specific version, rather than just the latest supported one. This can be done through PowerCLI (for use with vCenter) or ESXi Shell (for free ESXi).

Before you begin, note that you have to power down a VM before you can change the hardware version.

You need VMWare vSphere PowerCLI installed on a computer, and access to a vCenter server (can be appliance or full version for Windows) with the necessary credentials.

Connect to the vSphere server:

$cred = Get-CredentialConnect-VIServer -Se  ...
by lunarg on March 18th 2015, at 16:05

After deleting an unused mailbox database from Exchange 2013, you may see warnings appearing in the Application log (Event Log):

The Microsoft Exchange Mailbox Replication service was unable to process jobs in a mailbox database.
Database: Missing database (GUID)
Error: Database 'GUID' doesn't exist.

If removed very recently, wait for replication of AD throughout your domain, but the Mailbox Replication service will also cache the existence of the database. You can resolve this by simply restarting the Microsoft Exchange Mailbox Replication service (can be done during operation).

by lunarg on March 18th 2015, at 13:38
When implementing AD/Dirsync to synchronize your on-premise AD with Office365, you may have to change the UPN-suffix to match the (e-mail) domain name used in your Office365 tenant. Most often, the local UPN-suffix would be something like domain.local, and would then have to be changed to With a lot of users, it can quickly become tedious to change this manually. Along came Powershell...

The attached script is an easy way to quickly change the UPN-suffix for all users in a particular OU. Simply adjust the parameters to match your configuration, and let it run. Note that the script runs recursively, so be careful when running this on a top-level OU, as it will cascade through a  ...
by lunarg on March 17th 2015, at 08:10

I followed this guide to replace the HDD on my Mac Mini (2009, aka model A1283):

The most tricky part is probably opening up the Mac. As I did not have a putty knife at hand, I used a rack cage nut mounting tool to create an opening,  and a very thin flathead screw driver to pry the case off, as explained in the guide.

EDIT: added picture of tool.

by lunarg on March 16th 2015, at 14:15

I'ved noticed the Airport Configuration Utility from Apple requires "elevation" (= run as administrator) to work properly on a Windows 8/8.1.

If it still throws out an error after connecting, try disabling IPv6, then reboot.

by lunarg on March 16th 2015, at 13:34
There are a lot of misconceptions about the %WINDIR%\SoftwareDistribution folder, home to the Windows Update data files. This can be seen by the myriad of posts and comments found all over the internet. So here's the real deal about cleaning out the Windows Updates cache.

Note that Windows Update automatically cleans out the cached updates at a regular interval (depending on the age of the cache, etc). If you're running production servers, you usually don't have to manually clean out the cache, unless you have acute disk space trouble. But sometimes it may be necessary to accelerate the process, and that's when the methods of the article come into play.

Don't delete   ...
by lunarg on March 16th 2015, at 11:09
EDIT: added Yosemite (it's exactly the same as for Mavericks).

Creating an USB installer for Mac OSX Mavericks or Yosemite is a little different than previous releases. The InstallESD.dmg no longer contains the complete bootable installation files, so writing that image to an USB stick is no longer a valid option.

There's now a tool within the downloaded OSX Mavericks or OSX Yosemite app which creates a bootable volume with all the required files for installation from a media. You can then unleash the command on any mounted volume (including disk images), provided they are big enough. For USB or other flash media, you'll need at least 8GB or more.

For this to wor  ...
by lunarg on March 13th 2015, at 14:32

SwitchExplorer for Brocade FC switches no longer works properly on more recent versions of Java, because of security constraints. They can, however, be relaxed so you can still access your switches.

  1. Browse for the installation location for your JRE, and look for the folder lib/security (note: differentiate between 32 and 64-bit on Windows).
  2. Open the file, and look for the line:
  3. jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
  4. Change the 1024 to 256, and save.

Note for Windows Vista and up: open the file elevated, or you won't be able to save it.

by lunarg on March 13th 2015, at 13:08

Since Exchange 2010 SP1, when giving users Full access to another mailbox, they automatically get that mailbox added to their Outlook (2007 and up). This feature is called mailbox auto-mapping, and has made life a little easier for us IT administrators. But sometimes, you do not want a mailbox to be auto-mapped in Outlook for a particular user.

This can be achieved by setting the access permission through Powershell, and including the parameter -AutoMapping:$false in the cmdlet.

Add-MailboxPermission "Shared Mailbox" -User <user> -AccessRights FullAccess -AutoMapping:$false
by lunarg on March 10th 2015, at 16:12
You can easily view message tracking logs through the Exchange Management Shell (EMS). The cmdlet to use is called Get-MessageTrackingLog, and roughly provides the same search queries as before, and to be honest, it's faster than using the GUI in older Exchange versions, once you get to know the syntax. And thanks to the power of Powershell, you have a lot more options about exporting said data (e.g. to CSV).

The basic syntax is as follows:

Get-MessageTrackingLog [-Server <ServerIdentity.] [-ResultSize <Integer> | Unlimited] [-Start <DateTime>] [-End <DateTime>] [-EventId <EventId>] [-InternalMessageId <InternalMessageId>] [-MessageId <MessageId>] [-M  ...
by lunarg on March 9th 2015, at 11:15
You can easily reset the root password on linux-based VMWare appliances through the boot loader. For this to work, you need access to the console of the appliance (i.e. through vSphere (Web) Client), and needs to be performed during offline hours as the appliance has to be rebooted.

Reboot the appliance, and as soon as you see the GRUB boot loader, halt the automatic boot timer by hitting any key (I usually move the selection using the arrows).

Select the first entry, and press e, allowing you to type in some text. At the end of the line that starts with kernel, add the following text:


Do not remove any other text. Then press Enter to confirm.

Press b to continue the boot  ...
by lunarg on March 5th 2015, at 12:35
By default, when opening up OWA (Outlook Web App) access to the internet, you could technically also get into Exchange Admin Center (EAC) by appending /ecp after the external OWA URL, potentionally creating a security vulnerability and increasing the chance for a brute-force attack to succeed.

While it is generally a good idea to deny access to the Administrator user to manage the Exchange-server, this is not always possible or desireable. Additionally, because EAC is a VirtualDirectory within a site in IIS, it is not possible to have it listen on a separate internal IP address and secure it through the edge firewall. Luckily, IIS also has some other mechanisms to secure access. There's an   ...
by lunarg on March 4th 2015, at 17:18

You can easily find quarantined mailboxes through Powershell:

Get-Mailbox | Get-MailboxStatistics | Where { $_.IsQuarantined -eq $True } | Select Name,Alias

More information about quarantined mailboxes: KB2603736.

by lunarg on March 4th 2015, at 15:09
By default, when a user first logs on to Outlook Web App, they are prompted to choose their language and time zone. Sometimes, it's required to change these settings for a certain user, or even, for all users. This can be done by an administrative user through Exchange Management Shell (EMS), and works for both Exchange 2010/2013 and Office365, with the cmdlet Set-MailboxRegionalConfiguration.

First, open EMS for your on-premise Exchange, or for Office365, connect to Exchange Online using Powershell.

You can then set/change the language and time zone for a user like so:

Set-MailboxRegionalConfiguration -Identity -Language -TimeZone

identity speaks for itself: it can be an alia  ...
by lunarg on February 27th 2015, at 12:06
By default, in Exchange 2013, OWA prompts the user to type in their username including the logon name. This can be altered so OWA accepts usernames in a different format.

Log on to EMS and run the following Powershell cmdlet:

Set-OwaVirtualDirectory "owa (Default Web Site)" -LogonFormat Username -DefaultDomain your-domain-name

Change your-domain-name to your domain name.

Next, restart IIS to apply the changes:

iisreset /noforce

Note: not entirely correct as, in fact, you change it to the UserPrincipalName, which is not necessarily the same as the e-mail address.

Log on to EMS and run the following Powershell cmdlet:

Set-OwaVirtualDirectory "owa (Default Web Site)" -LogonFormat Pr  ...
by lunarg on February 19th 2015, at 15:54
You can manually opt-in to Microsoft Update (allowing installation of updates for other Microsoft products through Windows Update) through a simple script:

ServiceManager = CreateObject("Microsoft.Update.ServiceManager")
ServiceManager.ClientApplicationID = "My App"
Set NewUpdateService = ServiceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")

$ServiceManager = New-Object -ComObject "Microsoft.Update.ServiceManager"
$ServiceManager.ClientApplicationID = "My App"

Note that you probably need at least vers  ...
by lunarg on February 18th 2015, at 14:19

ViewDbChk is a free tool that helps you overcome and clean up database inconsistencies for VMware Horizon View, the VMware solution for VDI.

The tool, available for version 5.3 and 6.0, can be downloaded through the link below. When downloading, be sure to select the correct version.

showing posts tagged with 'computer'