Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 651
  • Last Modified:

Block access to OWA in Exchange 2010 SP1 Hosting Mode

Friends okay.

I'm trying to block access to OWA on my Exchange 2010 SP1 Hosting Mode.

I am using this command:

Set-CASMailbox -Identity adam@contoso.com -OWAEnabled:$true -POPEnabled:$true
Refer: http://technet.microsoft.com/pt-br/library/bb125264.aspx

But when I try to apply this command to the Domain User powershell returns me the error saying it could not find the object.

Thank you friends.
0
welltecnologia
Asked:
welltecnologia
  • 13
  • 5
  • 4
  • +2
1 Solution
 
welltecnologiaAuthor Commented:
hello, please...

0
 
welltecnologiaAuthor Commented:
PLEASE.. hello....

Posted: 29/09/11 12:56 PM


0
 
welltecnologiaAuthor Commented:
hello..... please...
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Jian An LimCommented:
put -Organization TestOrg  at the end of your command
0
 
welltecnologiaAuthor Commented:

Nothing, please... helpme..

Set-CASMailbox -identify 'user' -OWAEnabled:$false -Organization domain.com.br
0
 
welltecnologiaAuthor Commented:
See the error:

[PS] C:\>Set-CASMailbox -identify user -OWAEnabled:$false -Organization domain.com.br
Não é possível localizar um parâmetro posicional que aceite o argumento 'user'.
    + CategoryInfo          : InvalidArgument: (:) [Set-CASMailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Set-CASMailbox

[PS] C:\>
0
 
Jian An LimCommented:
is identity  

not identify
0
 
welltecnologiaAuthor Commented:
Ok, now no more the error, but the error at the end of this command, see:


[PS] C:\>Set-CASMailbox -identity 'user' -OWAEnabled:$false -Organization domain.com.br
Não é possível localizar um parâmetro posicional que aceite o argumento '-Organization'.
    + CategoryInfo          : InvalidArgument: (:) [Set-CASMailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Set-CASMailbox

[PS] C:\>
0
 
James HIT DirectorCommented:
Organization is the name of the company "Comany Name" not the domain name.
0
 
welltecnologiaAuthor Commented:
But alas, the error message is not the name of the organization but the code does not recognize it (Can not find a positional parameter that accepts the argument '-Organization. ")

The name of my own domain is the oganização.
0
 
welltecnologiaAuthor Commented:
But alas, the error message is not the name of the organization but the code does not recognize it (Can not find a positional parameter that accepts the argument '-Organization. ")

The name of my organization's own domain.
0
 
Auric1983Commented:
Here is the documentation for the Set-CASMailbox http://technet.microsoft.com/en-us/library/bb125264.aspx

Your other alternative is to open up the Exchange Management Console, expand recipients and go into "mailbox options" and disable OWA access
0
 
welltecnologiaAuthor Commented:
friend, we are talking about hosting exchange mode.
there is no console in this version.

exactly why is my difficulty.
0
 
Auric1983Commented:
Right! sorry, I'm only a couple sips into my first morning coffee my apologies.

Are you trying to disable it en masse for  anumber of users?

You could try something like the following http://dougg.co.nz/2011/03/15/disable-owa-in-bulk-for-exchange-2010/ 

0
 
welltecnologiaAuthor Commented:
Okay, fine.

No, this my organization, I have 40 organizations.
But this is specific to only 200 users and 20 users will be blocked from using OWA.

But I can not run this command in powershell to block these 20 users.
0
 
James HIT DirectorCommented:
For 'user' are you putting the full email address?  .... user@domain.com
0
 
Auric1983Commented:
can you please try the following

Get-Mailbox –Organization “Org Name” –Identity “identity” | Set-CASMailbox -OWAEnabled:$false
0
 
welltecnologiaAuthor Commented:
Yes.

only error now seems to be here:

(Can not find a positional parameter that accepts the argument '-Organization. ")

This command is wrong.
0
 
James HIT DirectorCommented:
Sorry.. i see that you did try this.
How many Exchange shells do you have open?
I ran across something similar with the hosting where if there were too many shell sessions open, it would not load all of the shell commands.
0
 
James HIT DirectorCommented:
Ignore Organization, this is not a usable parameter for this command.
0
 
welltecnologiaAuthor Commented:
Perfect, You are amazing!

Unfortunately slow response, but that's OK, problem solved.

I can not imagine my life without the help of you ... thank you friends.
0
 
yo_beeDirector of ITCommented:
@willtech

Sounds a bit ungrateful. Having your issue resolved in less than a day is not a bad turnaround time.
Could have left that part of the comment out if you are thankful.
0
 
Auric1983Commented:
Just remember with powershell you can pipe commands together to get the results you want.  

So if you have another "filter" that you can do a Get-Mailbox command on to get the list of all the users you want to deactivate, you can do that

For example

Get-Mailbox -Organization "Org Name" | Set-CASMailbox ...
0
 
Auric1983Commented:
More than happy to help, but don't forget that EE is a community and most of the contributors have full time jobs as well.  I try to set aside a few minutes of each day to deal with queries but my paying job takes priority :)
0
 
welltecnologiaAuthor Commented:
my goodness.

was a constructive and not destructive criticism.
not misinterpret me.

I am so very pleased with the solution of you, I said this because when we opened a doubt, just above the site says up to 31 minutes and answered the question so I would solve it almost 23 hours later.

I'm new here and thought that would be really repsostas within 31 minutes.

Congratulations to you all and may Necromancer, I will not manage any exchange without the help of you.

thanks for everything and sorry for my previous comment.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 13
  • 5
  • 4
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now