cześć, próbuję zaimportować kontakty do o365 za pomocą polecenia:
Import-Csv .\tylkoaliasy.csv | ForEach {New-MailContact -Name $_.Name -DisplayName $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -FirstName $_.FirstName -LastName $_.LastName}
jednak podczas importu z użyciem ww. cmdlet dostaję takie info:
New-MailContact : The term 'New-MailContact' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:41
+ Import-Csv .\tylkoaliasy.csv | ForEach {New-MailContact -Name $_.Name ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-MailContact:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
jak to rozwiązać?