忘れないうちに昨日の続き...
- PowerShell で Lync Online に接続してみる (準備編)
- PowerShell で Lync Online に接続してみる
- PowerShell で Office 365 に接続してみる
前準備
例によって認証情報をセットしておきます。
PS C:\WINDOWS\system32> $credential = Get-Credential
Office 365 のユーザー名・パスワードを入力しましょう。
Exchange Online に接続
ちょっと長いけど...
PS C:\WINDOWS\system32> $exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $credential -Authentication "Basic" -AllowRedirection 警告: 接続は次の URI にリダイレクトされました。"https://pod51054psh.outlook.com/powershell-liveid?PS Version=4.0
なんか警告出ますね。
気にせずリモートセッションに接続します。
PS C:\WINDOWS\system32> Import-PSSession $exchangeSession 警告: モジュール 'tmp_wsd3sodl.sdi' からインポートされたコマンドの中には、名前に承認されていない動詞を含むものがあ り、このようなコマンドは検出される可能性が低くなる場合があります。承認されてい ない動詞を含むコマンドを見つけるには、Verbose パラメーターを使用してもう一度 Import-Module コマンドを実行してください。承認されている動詞の一覧を表示するには、「Get-Verb 」と入力してください。 ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 1.0 tmp_wsd3sodl.sdi {Add-AvailabilityA...
ここでも何やら警告が出てきます。
無視して使えるコマンドを確認。
PS C:\WINDOWS\system32> Get-Module ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add... Manifest 3.0.0.0 Microsoft.PowerShell.Security {ConvertFrom-Secur... Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-T... Manifest 1.0 MSOnline {Add-MsolForeignGr... Script 1.0 tmp_wsd3sbex.4hn {Add-AvailabilityA... PS C:\WINDOWS\system32> Get-Command -Module tmp_wsd3sbex.4hn CommandType Name ModuleName ----------- ---- ---------- Function Add-AvailabilityAddressSpace tmp_wsd3s... Function Add-DistributionGroupMember tmp_wsd3s... Function Add-MailboxFolderPermission tmp_wsd3s... Function Add-MailboxPermission tmp_wsd3s... Function Add-PublicFolderClientPermission tmp_wsd3s... Function Add-RecipientPermission tmp_wsd3s... Function Add-RoleGroupMember tmp_wsd3s... Function Clear-ActiveSyncDevice tmp_wsd3s... Function Clear-MobileDevice tmp_wsd3s... Function Clear-TextMessagingAccount tmp_wsd3s... Function Compare-TextMessagingVerificationCode tmp_wsd3s... Function Complete-MigrationBatch tmp_wsd3s... Function Disable-App tmp_wsd3s... Function Disable-HostedContentFilterRule tmp_wsd3s... Function Disable-InboxRule tmp_wsd3s... Function Disable-JournalRule tmp_wsd3s... Function Disable-Mailbox tmp_wsd3s... Function Disable-MailPublicFolder tmp_wsd3s... Function Disable-MalwareFilterRule tmp_wsd3s... Function Enable-App tmp_wsd3s... Function Enable-HostedContentFilterRule tmp_wsd3s... Function Enable-InboxRule tmp_wsd3s... Function Enable-JournalRule tmp_wsd3s... Function Enable-Mailbox tmp_wsd3s... Function Enable-MailPublicFolder tmp_wsd3s... Function Enable-MalwareFilterRule tmp_wsd3s... Function Enable-OrganizationCustomization tmp_wsd3s... Function Export-MailboxDiagnosticLogs tmp_wsd3s... Function Export-MigrationReport tmp_wsd3s... Function Get-AcceptedDomain tmp_wsd3s... Function Get-ActiveSyncDevice tmp_wsd3s... Function Get-ActiveSyncDeviceAccessRule tmp_wsd3s... Function Get-ActiveSyncDeviceClass tmp_wsd3s... Function Get-ActiveSyncDeviceStatistics tmp_wsd3s... Function Get-ActiveSyncMailboxPolicy tmp_wsd3s... Function Get-ActiveSyncOrganizationSettings tmp_wsd3s... Function Get-AdminAuditLogConfig tmp_wsd3s... Function Get-App tmp_wsd3s... Function Get-AuditLogSearch tmp_wsd3s... Function Get-AuthServer tmp_wsd3s... Function Get-AvailabilityAddressSpace tmp_wsd3s... Function Get-AvailabilityConfig tmp_wsd3s... Function Get-CalendarDiagnosticLog tmp_wsd3s... Function Get-CalendarNotification tmp_wsd3s... Function Get-CalendarProcessing tmp_wsd3s... Function Get-CASMailbox tmp_wsd3s... Function Get-CASMailboxPlan tmp_wsd3s... Function Get-CompliancePolicySyncNotification tmp_wsd3s... Function Get-ConnectionByClientTypeDetailReport tmp_wsd3s... Function Get-ConnectionByClientTypeReport tmp_wsd3s... Function Get-ConnectSubscription tmp_wsd3s... Function Get-Contact tmp_wsd3s... Function Get-CsActiveUserReport tmp_wsd3s... Function Get-CsAVConferenceTimeReport tmp_wsd3s... Function Get-CsConferenceReport tmp_wsd3s... Function Get-CsP2PAVTimeReport tmp_wsd3s... Function Get-CsP2PSessionReport tmp_wsd3s... Function Get-DistributionGroup tmp_wsd3s... Function Get-DistributionGroupMember tmp_wsd3s... Function Get-DynamicDistributionGroup tmp_wsd3s... Function Get-FailedContentIndexDocuments tmp_wsd3s... Function Get-FederatedOrganizationIdentifier tmp_wsd3s... Function Get-FederationInformation tmp_wsd3s... Function Get-FederationTrust tmp_wsd3s... Function Get-FfoMigrationReport tmp_wsd3s... Function Get-Group tmp_wsd3s... Function Get-GroupActivityReport tmp_wsd3s... Function Get-HistoricalSearch tmp_wsd3s... Function Get-HostedConnectionFilterPolicy tmp_wsd3s... Function Get-HostedContentFilterPolicy tmp_wsd3s... Function Get-HostedContentFilterRule tmp_wsd3s... Function Get-HostedOutboundSpamFilterPolicy tmp_wsd3s... Function Get-HotmailSubscription tmp_wsd3s... Function Get-HybridMailflow tmp_wsd3s... Function Get-HybridMailflowDatacenterIPs tmp_wsd3s... Function Get-ImapSubscription tmp_wsd3s... Function Get-InboundConnector tmp_wsd3s... Function Get-InboxRule tmp_wsd3s... Function Get-IntraOrganizationConfiguration tmp_wsd3s... Function Get-IntraOrganizationConnector tmp_wsd3s... Function Get-IRMConfiguration tmp_wsd3s... Function Get-JournalRule tmp_wsd3s... Function Get-LinkedUser tmp_wsd3s... Function Get-LogonStatistics tmp_wsd3s... Function Get-Mailbox tmp_wsd3s... Function Get-MailboxActivityReport tmp_wsd3s... Function Get-MailboxAuditBypassAssociation tmp_wsd3s... Function Get-MailboxAutoReplyConfiguration tmp_wsd3s... Function Get-MailboxCalendarConfiguration tmp_wsd3s... Function Get-MailboxCalendarFolder tmp_wsd3s... Function Get-MailboxFolder tmp_wsd3s... Function Get-MailboxFolderPermission tmp_wsd3s... Function Get-MailboxFolderStatistics tmp_wsd3s... Function Get-MailboxImportRequest tmp_wsd3s... Function Get-MailboxImportRequestStatistics tmp_wsd3s... Function Get-MailboxJunkEmailConfiguration tmp_wsd3s... Function Get-MailboxMessageConfiguration tmp_wsd3s... Function Get-MailboxPermission tmp_wsd3s... Function Get-MailboxPlan tmp_wsd3s... Function Get-MailboxRegionalConfiguration tmp_wsd3s... Function Get-MailboxSearch tmp_wsd3s... Function Get-MailboxSpellingConfiguration tmp_wsd3s... Function Get-MailboxStatistics tmp_wsd3s... Function Get-MailboxUsageDetailReport tmp_wsd3s... Function Get-MailboxUsageReport tmp_wsd3s... Function Get-MailContact tmp_wsd3s... Function Get-MailDetailMalwareReport tmp_wsd3s... Function Get-MailDetailSpamReport tmp_wsd3s... Function Get-MailDetailTransportRuleReport tmp_wsd3s... Function Get-MailFilterListReport tmp_wsd3s... Function Get-MailPublicFolder tmp_wsd3s... Function Get-MailTrafficPolicyReport tmp_wsd3s... Function Get-MailTrafficReport tmp_wsd3s... Function Get-MailTrafficSummaryReport tmp_wsd3s... Function Get-MailTrafficTopReport tmp_wsd3s... Function Get-MailUser tmp_wsd3s... Function Get-MalwareFilterPolicy tmp_wsd3s... Function Get-MalwareFilterRule tmp_wsd3s... Function Get-ManagementRole tmp_wsd3s... Function Get-ManagementRoleAssignment tmp_wsd3s... Function Get-ManagementRoleEntry tmp_wsd3s... Function Get-ManagementScope tmp_wsd3s... Function Get-MessageCategory tmp_wsd3s... Function Get-MessageClassification tmp_wsd3s... Function Get-MessageTrace tmp_wsd3s... Function Get-MessageTraceDetail tmp_wsd3s... Function Get-MessageTrackingReport tmp_wsd3s... Function Get-MigrationBatch tmp_wsd3s... Function Get-MigrationConfig tmp_wsd3s... Function Get-MigrationEndpoint tmp_wsd3s... Function Get-MigrationStatistics tmp_wsd3s... Function Get-MigrationUser tmp_wsd3s... Function Get-MigrationUserStatistics tmp_wsd3s... Function Get-MobileDevice tmp_wsd3s... Function Get-MobileDeviceDashboardSummaryReport tmp_wsd3s... Function Get-MobileDeviceDetailsReport tmp_wsd3s... Function Get-MobileDeviceMailboxPolicy tmp_wsd3s... Function Get-MobileDeviceStatistics tmp_wsd3s... Function Get-MoveRequest tmp_wsd3s... Function Get-MoveRequestStatistics tmp_wsd3s... Function Get-MxRecordReport tmp_wsd3s... Function Get-Notification tmp_wsd3s... Function Get-OMEConfiguration tmp_wsd3s... Function Get-OnPremisesOrganization tmp_wsd3s... Function Get-OrganizationalUnit tmp_wsd3s... Function Get-OrganizationConfig tmp_wsd3s... Function Get-OrganizationRelationship tmp_wsd3s... Function Get-OutboundConnector tmp_wsd3s... Function Get-OutboundConnectorReport tmp_wsd3s... Function Get-OwaMailboxPolicy tmp_wsd3s... Function Get-PartnerApplication tmp_wsd3s... Function Get-PartnerCustomerUserReport tmp_wsd3s... Function Get-PerimeterConfig tmp_wsd3s... Function Get-PopSubscription tmp_wsd3s... Function Get-PublicFolder tmp_wsd3s... Function Get-PublicFolderClientPermission tmp_wsd3s... Function Get-PublicFolderItemStatistics tmp_wsd3s... Function Get-PublicFolderMailboxDiagnostics tmp_wsd3s... Function Get-PublicFolderMigrationRequest tmp_wsd3s... Function Get-PublicFolderMigrationRequestStatistics tmp_wsd3s... Function Get-PublicFolderStatistics tmp_wsd3s... Function Get-QuarantineMessage tmp_wsd3s... Function Get-Recipient tmp_wsd3s... Function Get-RecipientPermission tmp_wsd3s... Function Get-RecipientStatisticsReport tmp_wsd3s... Function Get-RemoteDomain tmp_wsd3s... Function Get-RemovedMailbox tmp_wsd3s... Function Get-RetentionPolicy tmp_wsd3s... Function Get-RetentionPolicyTag tmp_wsd3s... Function Get-RMSTemplate tmp_wsd3s... Function Get-RMSTrustedPublishingDomain tmp_wsd3s... Function Get-RoleAssignmentPolicy tmp_wsd3s... Function Get-RoleGroup tmp_wsd3s... Function Get-RoleGroupMember tmp_wsd3s... Function Get-SearchDocumentFormat tmp_wsd3s... Function Get-SecurityPrincipal tmp_wsd3s... Function Get-SendAddress tmp_wsd3s... Function Get-ServiceDeliveryReport tmp_wsd3s... Function Get-ServiceStatus tmp_wsd3s... Function Get-SharingPolicy tmp_wsd3s... Function Get-SiteMailbox tmp_wsd3s... Function Get-SiteMailboxDiagnostics tmp_wsd3s... Function Get-SiteMailboxProvisioningPolicy tmp_wsd3s... Function Get-SmimeConfig tmp_wsd3s... Function Get-SPOActiveUserReport tmp_wsd3s... Function Get-SPOSkyDriveProDeployedReport tmp_wsd3s... Function Get-SPOSkyDriveProStorageReport tmp_wsd3s... Function Get-SPOTeamSiteDeployedReport tmp_wsd3s... Function Get-SPOTeamSiteStorageReport tmp_wsd3s... Function Get-SPOTenantStorageMetricReport tmp_wsd3s... Function Get-StaleMailboxDetailReport tmp_wsd3s... Function Get-StaleMailboxReport tmp_wsd3s... Function Get-Subscription tmp_wsd3s... Function Get-SyncConfig tmp_wsd3s... Function Get-SyncRequest tmp_wsd3s... Function Get-SyncRequestStatistics tmp_wsd3s... Function Get-TextMessagingAccount tmp_wsd3s... Function Get-ToolInformation tmp_wsd3s... Function Get-TransportConfig tmp_wsd3s... Function Get-User tmp_wsd3s... Function Get-UserPhoto tmp_wsd3s... Function Import-ContactList tmp_wsd3s... Function New-ActiveSyncDeviceAccessRule tmp_wsd3s... Function New-ActiveSyncMailboxPolicy tmp_wsd3s... Function New-AdminAuditLogSearch tmp_wsd3s... Function New-App tmp_wsd3s... Function New-AvailabilityConfig tmp_wsd3s... Function New-CompliancePolicySyncNotification tmp_wsd3s... Function New-ConnectSubscription tmp_wsd3s... Function New-DistributionGroup tmp_wsd3s... Function New-DynamicDistributionGroup tmp_wsd3s... Function New-HostedConnectionFilterPolicy tmp_wsd3s... Function New-HostedContentFilterPolicy tmp_wsd3s... Function New-HostedContentFilterRule tmp_wsd3s... Function New-HotmailSubscription tmp_wsd3s... Function New-ImapSubscription tmp_wsd3s... Function New-InboundConnector tmp_wsd3s... Function New-InboxRule tmp_wsd3s... Function New-IntraOrganizationConnector tmp_wsd3s... Function New-JournalRule tmp_wsd3s... Function New-Mailbox tmp_wsd3s... Function New-MailboxAuditLogSearch tmp_wsd3s... Function New-MailboxFolder tmp_wsd3s... Function New-MailboxImportRequest tmp_wsd3s... Function New-MailboxSearch tmp_wsd3s... Function New-MailContact tmp_wsd3s... Function New-MailMessage tmp_wsd3s... Function New-MailUser tmp_wsd3s... Function New-MalwareFilterPolicy tmp_wsd3s... Function New-MalwareFilterRule tmp_wsd3s... Function New-MessageClassification tmp_wsd3s... Function New-MigrationBatch tmp_wsd3s... Function New-MigrationEndpoint tmp_wsd3s... Function New-MobileDeviceMailboxPolicy tmp_wsd3s... Function New-MoveRequest tmp_wsd3s... Function New-OnPremisesOrganization tmp_wsd3s... Function New-OrganizationRelationship tmp_wsd3s... Function New-OutboundConnector tmp_wsd3s... Function New-OwaMailboxPolicy tmp_wsd3s... Function New-PartnerApplication tmp_wsd3s... Function New-PopSubscription tmp_wsd3s... Function New-PublicFolder tmp_wsd3s... Function New-PublicFolderMigrationRequest tmp_wsd3s... Function New-RemoteDomain tmp_wsd3s... Function New-RetentionPolicy tmp_wsd3s... Function New-RetentionPolicyTag tmp_wsd3s... Function New-SharingPolicy tmp_wsd3s... Function New-SiteMailbox tmp_wsd3s... Function New-SiteMailboxProvisioningPolicy tmp_wsd3s... Function New-Subscription tmp_wsd3s... Function New-SyncMailPublicFolder tmp_wsd3s... Function New-SyncRequest tmp_wsd3s... Function Release-QuarantineMessage tmp_wsd3s... Function Remove-ActiveSyncDevice tmp_wsd3s... Function Remove-ActiveSyncDeviceAccessRule tmp_wsd3s... Function Remove-ActiveSyncMailboxPolicy tmp_wsd3s... Function Remove-App tmp_wsd3s... Function Remove-AvailabilityAddressSpace tmp_wsd3s... Function Remove-AvailabilityConfig tmp_wsd3s... Function Remove-CompliancePolicySyncNotification tmp_wsd3s... Function Remove-ConnectSubscription tmp_wsd3s... Function Remove-DistributionGroup tmp_wsd3s... Function Remove-DistributionGroupMember tmp_wsd3s... Function Remove-DynamicDistributionGroup tmp_wsd3s... Function Remove-HostedConnectionFilterPolicy tmp_wsd3s... Function Remove-HostedContentFilterPolicy tmp_wsd3s... Function Remove-HostedContentFilterRule tmp_wsd3s... Function Remove-HybridConfiguration tmp_wsd3s... Function Remove-InboundConnector tmp_wsd3s... Function Remove-InboxRule tmp_wsd3s... Function Remove-IntraOrganizationConnector tmp_wsd3s... Function Remove-JournalRule tmp_wsd3s... Function Remove-Mailbox tmp_wsd3s... Function Remove-MailboxFolderPermission tmp_wsd3s... Function Remove-MailboxImportRequest tmp_wsd3s... Function Remove-MailboxPermission tmp_wsd3s... Function Remove-MailboxSearch tmp_wsd3s... Function Remove-MailContact tmp_wsd3s... Function Remove-MailUser tmp_wsd3s... Function Remove-MalwareFilterPolicy tmp_wsd3s... Function Remove-MalwareFilterRule tmp_wsd3s... Function Remove-MessageClassification tmp_wsd3s... Function Remove-MigrationBatch tmp_wsd3s... Function Remove-MigrationEndpoint tmp_wsd3s... Function Remove-MigrationUser tmp_wsd3s... Function Remove-MobileDevice tmp_wsd3s... Function Remove-MobileDeviceMailboxPolicy tmp_wsd3s... Function Remove-MoveRequest tmp_wsd3s... Function Remove-OnPremisesOrganization tmp_wsd3s... Function Remove-OrganizationRelationship tmp_wsd3s... Function Remove-OutboundConnector tmp_wsd3s... Function Remove-OwaMailboxPolicy tmp_wsd3s... Function Remove-PartnerApplication tmp_wsd3s... Function Remove-PublicFolder tmp_wsd3s... Function Remove-PublicFolderClientPermission tmp_wsd3s... Function Remove-PublicFolderMigrationRequest tmp_wsd3s... Function Remove-RecipientPermission tmp_wsd3s... Function Remove-RemoteDomain tmp_wsd3s... Function Remove-RetentionPolicy tmp_wsd3s... Function Remove-RetentionPolicyTag tmp_wsd3s... Function Remove-RoleGroupMember tmp_wsd3s... Function Remove-SharingPolicy tmp_wsd3s... Function Remove-Subscription tmp_wsd3s... Function Remove-SyncRequest tmp_wsd3s... Function Remove-UserPhoto tmp_wsd3s... Function Resume-MailboxImportRequest tmp_wsd3s... Function Resume-MoveRequest tmp_wsd3s... Function Resume-PublicFolderMigrationRequest tmp_wsd3s... Function Resume-SyncRequest tmp_wsd3s... Function Search-AdminAuditLog tmp_wsd3s... Function Search-Mailbox tmp_wsd3s... Function Search-MailboxAuditLog tmp_wsd3s... Function Search-MessageTrackingReport tmp_wsd3s... Function Send-TextMessagingVerificationCode tmp_wsd3s... Function Set-AcceptedDomain tmp_wsd3s... Function Set-ActiveSyncDeviceAccessRule tmp_wsd3s... Function Set-ActiveSyncMailboxPolicy tmp_wsd3s... Function Set-ActiveSyncOrganizationSettings tmp_wsd3s... Function Set-App tmp_wsd3s... Function Set-AvailabilityConfig tmp_wsd3s... Function Set-CalendarNotification tmp_wsd3s... Function Set-CalendarProcessing tmp_wsd3s... Function Set-CASMailbox tmp_wsd3s... Function Set-ConnectSubscription tmp_wsd3s... Function Set-Contact tmp_wsd3s... Function Set-DistributionGroup tmp_wsd3s... Function Set-DynamicDistributionGroup tmp_wsd3s... Function Set-FederatedOrganizationIdentifier tmp_wsd3s... Function Set-Group tmp_wsd3s... Function Set-HostedConnectionFilterPolicy tmp_wsd3s... Function Set-HostedContentFilterPolicy tmp_wsd3s... Function Set-HostedContentFilterRule tmp_wsd3s... Function Set-HostedOutboundSpamFilterPolicy tmp_wsd3s... Function Set-HotmailSubscription tmp_wsd3s... Function Set-HybridMailflow tmp_wsd3s... Function Set-ImapSubscription tmp_wsd3s... Function Set-InboundConnector tmp_wsd3s... Function Set-InboxRule tmp_wsd3s... Function Set-IntraOrganizationConnector tmp_wsd3s... Function Set-JournalRule tmp_wsd3s... Function Set-LinkedUser tmp_wsd3s... Function Set-Mailbox tmp_wsd3s... Function Set-MailboxAuditBypassAssociation tmp_wsd3s... Function Set-MailboxAutoReplyConfiguration tmp_wsd3s... Function Set-MailboxCalendarConfiguration tmp_wsd3s... Function Set-MailboxCalendarFolder tmp_wsd3s... Function Set-MailboxFolderPermission tmp_wsd3s... Function Set-MailboxImportRequest tmp_wsd3s... Function Set-MailboxJunkEmailConfiguration tmp_wsd3s... Function Set-MailboxMessageConfiguration tmp_wsd3s... Function Set-MailboxPlan tmp_wsd3s... Function Set-MailboxRegionalConfiguration tmp_wsd3s... Function Set-MailboxSearch tmp_wsd3s... Function Set-MailboxSpellingConfiguration tmp_wsd3s... Function Set-MailContact tmp_wsd3s... Function Set-MailPublicFolder tmp_wsd3s... Function Set-MailUser tmp_wsd3s... Function Set-MalwareFilterPolicy tmp_wsd3s... Function Set-MalwareFilterRule tmp_wsd3s... Function Set-MessageClassification tmp_wsd3s... Function Set-MigrationBatch tmp_wsd3s... Function Set-MigrationEndpoint tmp_wsd3s... Function Set-MobileDeviceMailboxPolicy tmp_wsd3s... Function Set-MoveRequest tmp_wsd3s... Function Set-Notification tmp_wsd3s... Function Set-OMEConfiguration tmp_wsd3s... Function Set-OnPremisesOrganization tmp_wsd3s... Function Set-OrganizationConfig tmp_wsd3s... Function Set-OrganizationRelationship tmp_wsd3s... Function Set-OutboundConnector tmp_wsd3s... Function Set-OwaMailboxPolicy tmp_wsd3s... Function Set-PartnerApplication tmp_wsd3s... Function Set-PerimeterConfig tmp_wsd3s... Function Set-PopSubscription tmp_wsd3s... Function Set-PublicFolder tmp_wsd3s... Function Set-MigrationEndpoint tmp_wsd3s... Function Set-MobileDeviceMailboxPolicy tmp_wsd3s... Function Set-MoveRequest tmp_wsd3s... Function Set-Notification tmp_wsd3s... Function Set-OMEConfiguration tmp_wsd3s... Function Set-OnPremisesOrganization tmp_wsd3s... Function Set-OrganizationConfig tmp_wsd3s... Function Set-OrganizationRelationship tmp_wsd3s... Function Set-OutboundConnector tmp_wsd3s... Function Set-OwaMailboxPolicy tmp_wsd3s... Function Set-PartnerApplication tmp_wsd3s... Function Set-PerimeterConfig tmp_wsd3s... Function Set-PopSubscription tmp_wsd3s... Function Set-PublicFolder tmp_wsd3s... Function Set-PublicFolderMigrationRequest tmp_wsd3s... Function Set-RemoteDomain tmp_wsd3s... Function Set-RetentionPolicy tmp_wsd3s... Function Set-RetentionPolicyTag tmp_wsd3s... Function Set-RoleGroup tmp_wsd3s... Function Set-SharingPolicy tmp_wsd3s... Function Set-SiteMailbox tmp_wsd3s... Function Set-SiteMailboxProvisioningPolicy tmp_wsd3s... Function Set-SmimeConfig tmp_wsd3s... Function Set-SyncRequest tmp_wsd3s... Function Set-TextMessagingAccount tmp_wsd3s... Function Set-TransportConfig tmp_wsd3s... Function Set-UMMailbox tmp_wsd3s... Function Set-UMMailboxPIN tmp_wsd3s... Function Set-User tmp_wsd3s... Function Set-UserPhoto tmp_wsd3s... Function Start-HistoricalSearch tmp_wsd3s... Function Start-ManagedFolderAssistant tmp_wsd3s... Function Start-MigrationBatch tmp_wsd3s... Function Stop-HistoricalSearch tmp_wsd3s... Function Stop-MigrationBatch tmp_wsd3s... Function Suspend-MailboxImportRequest tmp_wsd3s... Function Suspend-MoveRequest tmp_wsd3s... Function Suspend-PublicFolderMigrationRequest tmp_wsd3s... Function Suspend-SyncRequest tmp_wsd3s... Function Test-MAPIConnectivity tmp_wsd3s... Function Test-MigrationServerAvailability tmp_wsd3s... Function Test-OAuthConnectivity tmp_wsd3s... Function Test-OrganizationRelationship tmp_wsd3s... Function Test-SiteMailbox tmp_wsd3s... Function Undo-SoftDeletedMailbox tmp_wsd3s... Function Update-DistributionGroupMember tmp_wsd3s... Function Update-HybridConfiguration tmp_wsd3s... Function Update-PublicFolderMailbox tmp_wsd3s... Function Update-RoleGroupMember tmp_wsd3s... Function Update-SiteMailbox tmp_wsd3s... Function Write-AdminAuditLog tmp_wsd3s...
かなり多いですね。それぞれのコマンドの解説はこちらにありました。
とりあえずプロフィール写真を更新してみます。
PS C:\WINDOWS\system32> Set-UserPhoto "****" -PictureData ([System.IO.File]::ReadAllBytes("C:\Users\kazuaki\SkyDrive\Image\Profile\Profile-lync-96x96.jpg")) Confirm Are you sure you want to perform this action? メールボックスの写真 **** は変更されます。 [Y] Yes [A] Yes to All [N] No [L] No to All [?] ヘルプ (既定値は "Y"):
(変更はできたっぽいのですが、これ Lync Online とは連動してないようですね...)
後始末
Import-PSSession しているので最後は忘れずに Remove-PSSession しておきましょう。
PS C:\WINDOWS\system32> Remove-PSSession $exchangeSession