Search This Blog

Friday, 31 May 2013

Exchange 2010 - How to bulk Import Users from a CSV file

This guide explains how to bulk import users into Exchange using CSV and Powershell

Create a CSV File

media_1370003015370.png

The first step is to get a CSV file with all your email addresses in and create different columns that contain the formatted data you want. This will take some skills in Excel to complete but once done you will need several columns with the names

Alias,Firstname, Lastname,Name,UPN,SAM,OUpath,AddressBook,Database,Password

These fields will provide the data for

Alias - Exchange Alias
FirstName - Users First Name
LastName - Users Last Name
UPN - Users login containing their domain name @cscm.co.uk for example
SAM - Users pre Windows2000 login name for domain
OUPath - Organisational Unit Path in Active Directory
AddressBook - Users Global Address Book
Database - Mailbox Database
Password - Users Password

 

Test Access to CSV File

media_1370003499326.png

The Excel file needs to be saved as a CSV file in a location that is accessible from the Exchange Server. In this example we use C:\IT Support\users.csv

Now to access the CSV file you can use this cmdlet

$users = Import-CSV "C:\IT Support\users.csv"

The result of this cmlet should show as above the details from the CSV file for all of the users, in this example we show one user.

 

 

Import a User

media_1370003578662.png

The PowerShell command to import the users is

Import-CSV "C:\IT Support\users.csv" | foreach {New-Mailbox -Name $_.name -Alias $_.alias -Database "Database NewDatabase" -OrganizationalUnit $_.OUpath -UserPrincipalName $_.UPN -SamAccountName $_.SAM -FirstName $_.Firstname -LastName $_.Lastname -Password (ConvertTo-SecureString $_.password -AsPlainText -Force) -ResetPasswordOnNextLogon $false -AddressBookPolicy $_.AddressBook}

What happens here is that the Import-CSV file reads the CSV file, we then pipe the output to the command foreach which for each row in the output it applies the cmdlet New-Mailbox.

Then in the New-Mailbox cmdlet we have variables that read the CSV column titles and apply the content to the cmdlet. For example the columns title Name is applied as $_.name

The password content is converted to a PlainText field so that it can be imported and not have to be entered manually into a credentials window.

You are now able to bulk Import Users into Exchange and Active Directory without the need to enter them manually.

Friday, 10 May 2013

How to configure the Wireless LAN for a Cisco 877VAW Router

The Cisco 877VAW is a newer version of the 800 series routers and as a result has the AP built in on a different plane and so you have to login to the Wireless AP to be able to configure the WiFi. You do not do this from the Router config.

Note Wireless Interface

media_1368195459153.png

The router has a Wireless Interface called wlan-ap0 this is the service module interface, this is linked ip unnumbered to VLAN 1

Login to Service Module

media_1368195557889.png

You can connect to the service module with the command service-module wlan-ap0 session

Disconnect from Service Module

media_1368195563233.png

Once you are connected to the service module and you want to return to the router config you need to disconnect, this is done with the commands

Ctrl ^
x
disconnect

Wireless Config

media_1368195574827.png

You can now see the familiar config for a Cisco Wireless AP using IOS.

Acronis - Operations in Progress - The Answer!

As you may know I have posted on the Acronis Operations In Progress issue when you try to reboot a server that is running an Acronis Backup Job.

Well I have had a really good solution come in as a comment and credit where it is due.  If you want to resolve this issue without the need to iLO or hard reboot your server then look here.

Tuesday, 23 April 2013

Blank Screen on Citrix XenApp Web Interface

When you access your XenApp 6.5 Server Web Interface you find a blank page loads.

Web Interface stops loading

media_1366754720247.png
I was working on our Citrix XenApp 6.5 farm and I suddenly found that when I tried to load the page a blank white page would load. When I went to the Citrix Web Management Console and tried the Preview Site test this also fails with the same issue. The problem is actually caused by IIS on the Citrix Web Interface Server and the solution is described here

Open IIS Manager

media_1366754736032.png
Open the IIS Manager and browse to the Citrix Web Site and then choose the Directory Browsing feature.

Enable Directory Browsing

media_1366754747502.png
Choose the option in the right pane to Enable Directory Browsing.

Default Document

media_1366754754588.png
Open the IIS Manager and browse to the Citrix Web Site and then choose the Default Document feature.

Enable Default Document

media_1366754762729.png
In the right pane choose the option to Enable the Default Document.

Web Interface Operational

media_1366755078848.png
Now when you reload the site the Web Interface will now load correctly.

Wednesday, 27 March 2013

One for the boss to learn from

If you have BES Server and you add a new Mailbox Database to the Exchange 2010 Server then do not forget this command to make sure BesAdmin can SendAs for the users in the database.


Get-MailboxDatabase | Add-ADPermission -User "BESAdmin" -AccessRights ExtendedRight -ExtendedRights Receive-As, ms-Exch-Store-Admin

This post is dedicated to the tireless work and commitment of the one and only Dave Brown.

Saturday, 16 March 2013

When to say No and make it a Yes

Saying yes is important, it opens doors to new opportunities in life, say no and you close a door. Or do you?

Sometimes when we say yes to something we are actually saying the opposite to what the person asking the question wants to hear.   As our business grows our clients expect that we will want to do more, sell more and make more.  That is a given, it shows good business acumen.

But what about when you over promise?  What if you agree to do something and you can't really do it and your client knows it too? What does that say about you?

Clients are not fools, they know what your business can and cannot do, they want you to succeed but they will not accept you risking their business for your growth.

So if a client asks you to do something and you are not geared up for it, or you know you cannot deliver it, do not be the old school sales man and say yes.  Say no. Explain why, may be you just need a week longer, may be their time scales are too short, may be their price point is too low.  If you cannot do it then say so, they will respect you for it and it you have a great relationship they will say "OK, so what do we need to do?"

They may ask you to do something that they know is not possible to see if you say yes to everything, to see if you really have their interests at heart.  If you do not see this, your yes becomes a no. If you do see this your no becomes a yes.

Sunday, 10 March 2013

How To - Uninstall Windows Internal Database

If you have replaced WSUS on a SBS Server 2008 and you are removing Sharepoint Services 3.0 then you will need to remove the Windows Internal Database and the associated files.

1. Windows Internal Database Files

media_1362924824956.png

The file location for the Windows Internal Database in SBS Server 2008 is C:\Windows\SYSMSI\SSEE\MSSQL.2005\MSSQL\Data Here you can see the highlighted files that are taking up useful disk space on the server, these were the databases for WSUS and Sharepoint Services 3.0

2. SQL Server Studio Express

media_1362924836184.png

If you have SQL Server Studio Express installed you can open the application as Administrator and connect to \\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query and then you can see the Database files.

3. Uninstall Windows Internal Database

media_1362924854232.png

The uninstall for the Windows Internal Database is performed from the command line. The syntax is

On 32-bit platforms: msiexec /x {CEB5780F-1A70-44A9-850F-DE6C4F6AA8FB} callerid=ocsetup.exe
On 64-bit platforms: msiexec /x {BDD79957-5801-4A2D-B09E-852E7FA64D01} callerid=ocsetup.exe

The Microsoft article on this is found here.

4. Uninstall

media_1362924864091.png

Accept the uninstall warning.

5. Database Uninstalls

media_1362924872231.png

6. Delete Database Files

media_1362924959686.png

You can now safely delete the SQL Server database files.