Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Exchange management shell parameter not found error

Posted on 2007-11-15
6
2,292 Views
Last Modified: 2008-02-21
I have been trying to bulk load users into Exchange 2007.
Environment is a single 2003 server and a single exchange 2007 domain member server.

In the shell command I can run the following

get-user                     - correctly returns all users with and without mailboxs
get-user -organizationalunit users   - correctly returns all users
BUT
get-user - organizationalunit users where-object{$_.RecipientType -eq "User"}
gives error message
A parameter cannot be found that matches parameter name $_.RecipientType -eq "User"

I have been following instructs from exchangepedia.com/blog/2006/12/id-written-about-how-to-bulk-create.html

Any pointers greatfully appreciated. I have also noticed that one of the services I would expect to see is not present in the services list - microsoft exchange management

Thanks

Willy
0
Comment
Question by:wsmyth
  • 4
  • 2
6 Comments
 
LVL 22

Expert Comment

by:ATIG
ID: 20290818
what is your over all goal...... if you already doing a get user why add the where-object?

also you can read in from a csv file if you have one.......

you want to read user from an  OU and do what?
0
 

Author Comment

by:wsmyth
ID: 20290904
The overall goal is to bulk add the non-mailbox enabled users.
I only posted the first part of the command as this was the part generating the message. The full command
get-user –organizationalUnit users | where-object{$_.RecipientType –eq “User”  Enable-Mailbox –Database “MAILSRV1\Mailbox Database” get-mailbox select name,windowsemailaddress,database

I appreciate there may be other ways of obtaining the same result ie load from CSV but I am concerned that the fact the $_.RecipientType parameter cannot be found is a pointer to something more fundamental being wrong
0
 
LVL 22

Expert Comment

by:ATIG
ID: 20291201
use a CSV file to create users.  This command can be used in the same function to create users on one database or distribute them across databases.  An example of the CSV is below the command.  There is two parts to this command.  The first line sets the password for all creations.

$Password=Read-Host "Enter Password" -AsSecureString

Import-Csv csvtest.csv | foreach { New-Mailbox –alias $_.Alias –name $_.Name –UserPrincipalName $_.UPN  â€“Database “ent-labexmb01\mailbox database” –OrganizationalUnit "XXXX" –Password $Password –ResetPasswordOnNextLogon:$true }

This would create them all on one database but with the addition of $.Database after the –database and an additional column in the CSV file you can distribute them.  The CSV file would look like this

Alias,Name,UPN
User1,User 1,user1@dell.com
User2,User 2,user2@dell.com
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:wsmyth
ID: 20492708
Try installing sp1
0
 

Author Comment

by:wsmyth
ID: 20657439
I have installed SP1 and resolved the error myself.
Thanks
0
 

Accepted Solution

by:
wsmyth earned 0 total points
ID: 20821903
As  previously posted I installed SP1 and resolved the issue myself. Can this now be closed?
Thanks
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question