Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

Method invocation failed, Verständnisfrage

$
0
0

moin

$Guid = $Mailbox.Guid + ":\Kalender"
$Perms = Get-MailboxFolderPermission $Guid

laut Hilfe könnte ich diese Properties übergeben. Mit Alias funktioniert es. Warum mit GUID nicht? Liegt das daran, das ich es mittels Remote Session abrufe?

-Identity

The Identity parameter specifies the mailbox folder that you want to view. This parameter uses the syntax: <Mailbox>:\<Folder>. For the value of <Mailbox>, you can use any value that uniquely identifies the mailbox.

For example:

  • Name

  • Display name

  • Alias

  • Distinguished name (DN)

  • Canonical DN

  • <domain name>\<account name>

  • Email address

  • GUID

  • LegacyExchangeDN

  • SamAccountName

  • User ID or user principal name (UPN)

Method invocation failed because [System.Guid] does not contain a method named 'op_Addition'.
At KalenderDefaultPermission.ps1:6 char:1
+ $Guid = $Mailbox.Guid + ":\Kalender"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (op_Addition:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound


Chris


Viewing all articles
Browse latest Browse all 2314


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>