Solved

Powershell Command

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
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…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

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