Solved

Powershell Command

Posted on 2013-11-28
3
313 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
  • 2
3 Comments
 
LVL 37

Expert Comment

by:Jamie McKillop
Comment Utility
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
Comment Utility
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
Comment Utility
Try replacing the single quotes with double quotes.

-JJ
0

Featured Post

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Easy CSR creation in Exchange 2007,2010 and 2013
In this video we show how to create an email address policy 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 Mail Flow…
To show how to generate a certificate request 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 >> Certificates…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now