Link to home
Start Free TrialLog in
Avatar of pepps11976
pepps11976

asked on

Powershell Command

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
Avatar of Jamie McKillop
Jamie McKillop
Flag of Canada image

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
Avatar of pepps11976
pepps11976

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Jamie McKillop
Jamie McKillop
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial