Solved

Powershell Command

Posted on 2013-11-28
3
324 Views
Last Modified: 2013-11-30
Can anybody tell me what is wrong with this command I run it but nothing happens

the server is called hosting.aspire.local

$BASEOABCONTAINER=’CN=OFFLINE ADDRESS LISTS,CN=ADDRESS LISTS CONTAINER,CN=FIRST ORGANIZATION,CN=MICROSOFT EXCHANGE,CN=SERVICES,CN=CONFIGURATION,DC=Aspire,DC=local
0
Comment
Question by:pepps11976
[X]
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
  • 2
3 Comments
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39684190
Hello,

All that command does is set the value of a variable. You are missing the closing quote but what did you expect it to do?

-JJ
0
 

Author Comment

by:pepps11976
ID: 39684213
ok thanks I was missing the quote but I got the following error running it


[PS] C:\Windows\system32>GET-ADPERMISSION $BASEOABCONTAINER -USER "NT AUTHORITY\AUTHENTICATED USERS" | WHERE {$_.EXTENDE
DRIGHTS -MATCH 'MS-EXCH-DOWNLOAD-OAB'} | FL

The operation couldn't be performed because object 'CN=OFFLINE ADDRESS LISTS,CN=ADDRESS LISTS CONTAINER,CN=FIRST ORGANI
ZATION,CN=MICROSOFT EXCHANGE,CN=SERVICES,CN=CONFIGURATION,aspire,DC=local' couldn't be found on 'Hosting.aspire.local'.
    + CategoryInfo          : InvalidData: (:) [Get-ADPermission], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : C879D2A6,Microsoft.Exchange.Management.RecipientTasks.GetADPermission

can you see anything else I might be missing?
0
 
LVL 37

Accepted Solution

by:
Jamie McKillop earned 500 total points
ID: 39685289
Try replacing the single quotes with double quotes.

-JJ
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a mailbox database 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 Servers >> Data…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

617 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