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=OFFL INE ADDRESS LISTS,CN=ADDRESS LISTS CONTAINER,CN=FIRST ORGANIZATION,CN=MICROSOFT EXCHANGE,CN=SERVICES,CN=CO NFIGURATIO N,DC=Aspir e,DC=local
the server is called hosting.aspire.local
$BASEOABCONTAINER=’CN=OFFL
ASKER
ok thanks I was missing the quote but I got the following error running it
[PS] C:\Windows\system32>GET-AD PERMISSION $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=CO NFIGURATIO N,aspire,D C=local' couldn't be found on 'Hosting.aspire.local'.
+ CategoryInfo : InvalidData: (:) [Get-ADPermission], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : C879D2A6,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Ge tADPermiss ion
can you see anything else I might be missing?
[PS] C:\Windows\system32>GET-AD
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=CO
+ CategoryInfo : InvalidData: (:) [Get-ADPermission], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : C879D2A6,Microsoft.Exchang
can you see anything else I might be missing?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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