Solved

Powershell Command

Posted on 2013-11-28
3
322 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create a Shared 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 >> Sha…
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…

751 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