UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

PowerShell CommandLet

PowerShell CommandLet パッケージマネージャ 2021春


更新履歴

  • 2021.03.30

はじめに

  • このドキュメントでは,PowerShellで,パッケージマネージャを使って,主にMicrosoft 365の管理コマンドレットをインストールする手順を説明する.

もくじ

  1. PowerShell CommandLet パッケージマネージャ 2021春
    1. 更新履歴
    2. はじめに
    3. もくじ
    4. サマリ
    5. パッケージプロバイダ
    6. パッケージプロバイダのNugetをインストールする
    7. Azure関連モジュールをインストールしてみる
    8. 「信頼されていないリポジトリからモジュールをインストールしようとしています。」への対処
    9. PowerShellのモジュールが入っている場所を確認.
    10. ExchangeOnlineManagementをインストール
    11. AzureADをインストール
    12. Microsot 365(Office 365)に接続するためのMSOnline(Microsoft Online Services サインイン アシスタント)を導入する
    13. PnP PowerShell
    14. SharePoint Online 管理シェル
    15. インストールされているパッケージの一覧

サマリ

  • このページで説明するコマンド一覧.
コマンド
説明
(Get-WmiObject Win32_OperatingSystem).Caption  OSを確認する.
($PSVersionTable).PSVersion.toString()  PowerShellのバージョンを確認する.
Get-Command -CommandType Cmdlet | Select-Object Name  現在利用できるコマンドレット
Install-Module -Name パッケージ名

Find-PackageProvider  パッケージプロバイダの表示
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
 PSGallaryを信頼する.
(Get-PackageProvider -Name Nuget).ProviderPath
 Nugetをインストール
Install-Module Azure
 Azure関連モジュール
Install-Module AzureAD
 AzureのAD関連モジュール
Install-Module MSOnline
 Microsot 365関連モジュール
Install-Module SharePointPnPPowerShellOnline
 SharePoint Online, Teams, Planner, Flowなどをコントロール.
Install-Module Microsoft.Online.SharePoint.PowerShell
 SharePoint
Install-Module -Name ExchangeOnlineManagement 
 ExchangeOnlineManegement
Get-Package
インストールされているパッケージ一覧.


パッケージプロバイダ

  • 現在利用可能なパッケージプロバイダ(提供先)を調べる.
  • Find-PackageProviderコマンドを実行.


PS C:\Users\ujpadmin> Find-PackageProvider🆑

Name                           Version          Source           Summary
----                           -------          ------           -------
nuget                          2.8.5.208        https://onege... NuGet provider for the OneGet meta-package manager
psl                            1.0.0.210        https://onege... psl provider for the OneGet meta-package manager
chocolatey                     2.8.5.130        https://onege... ChocolateyPrototype provider for the OneGet meta-pa...
PowerShellGet                  2.2.5            PSGallery        PowerShell module with commands for discovering, in...
DockerMsftProvider             1.0.0.8          PSGallery        PowerShell module with commands for discovering, in...
DockerProvider                 0.0.0.3          PSGallery        PowerShell module with commands for discovering, in...
ChocolateyGet                  2.1.0            PSGallery        Package Management (OneGet) provider that facilitat...
ContainerImage                 0.6.4.0          PSGallery        This is a PackageManagement provider module which h...
NanoServerPackage              1.0.1.0          PSGallery        A PackageManagement provider to  Discover, Save and...
Chocolatier                    1.2.0            PSGallery        Package Management (OneGet) provider that facilitat...
GitLabProvider                 1.3.8            PSGallery        GitLab PackageManagement provider
DockerMsftProviderInsider      1.0.0.2          PSGallery        PowerShell module with commands for discovering, in...
GistProvider                   0.6              PSGallery        Gist-as-a-Package - PackageManagement  PowerShell P...
GitHubProvider                 0.5              PSGallery        GitHub-as-a-Package - PackageManagement PowerShell ...
AppxGet                        0.1.0.1          PSGallery        Powershell Package Management (OneGet) Provider for...
0install                       2.18.7           PSGallery        OneGet Package Provider for Zero Install
TSDProvider                    0.2              PSGallery        PowerShell PackageManager provider to search & inst...
OfficeProvider                 1.0.0.1          PSGallery        OfficeProvider allows users to install Microsoft Of...
WinGet                         0.0.1            PSGallery        Package Management (OneGet) provider that facilitat...
WSAProvider                    1.0.0.4          PSGallery        Provider to Discover, Install and inventory windows...
ChocoOneGet                    0.4.0            PSGallery        OneGet provider for Chocolatey
MyAlbum                        0.1.2            PSGallery        MyAlbum provider discovers the photos in your remot...
Pacman-Provider                0.0.1            PSGallery        Pacman provider enables installation of pacman pack...


PS C:\Users\ujpadmin>

  • Microsoftがフレームワークだけ提供して,様々なパッケージプロバイダが乱立している模様.

パッケージプロバイダのNugetをインストールする

  • PowerShellを管理者権限で起動.
  • Nugetのインストールパスを確認.


Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

新しいクロスプラットフォームの PowerShell をお試しください https://aka.ms/pscore6

PS C:\WINDOWS\system32> (Get-PackageProvider -Name Nuget).ProviderPath🆑

プロバイダー 'nuget v2.8.5.208' がインストールされていません。🈁
nuget は、https://onegetcdn.azureedge.net/providers/Microsoft.PackageManagement.NuGetProvider-2.8.5.208.dll
から手動でダウンロードしてインストールすることができます。
PackageManagement で nuget を自動的にダウンロードしてインストールしますか?
[Y] はい(Y)  [N] いいえ(N)  [S] 中断(S)  [?] ヘルプ (既定値は "Y"):


  • インストールされてないので,インストールする.


[Y] はい(Y)  [N] いいえ(N)  [S] 中断(S)  [?] ヘルプ (既定値は "Y"): y🆑
C:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208\Microsoft.PackageManagement.NuGetProvider.dll
PS C:\WINDOWS\system32>

  • インストール完了.
  • パスを確認する.


  • フォルダを確認してみる.

  • ファイルサイズは小さいので即インストール完了.

Azure関連モジュールをインストールしてみる

  • Azure関連モジュールを探す.

PS C:\Users\ujpadmin> Find-Package Azure🆑
Name                           Version          Source           Summary
----                           -------          ------           -------
Azure                          5.3.1            PSGallery        Microsoft Azure PowerShell - Service Management
PS C:\Users\ujpadmin>
  • インストールする.(インストール前後で,パッケージのリストを取得)

PS C:\WINDOWS\system32> Get-Command -CommandType Cmdlet | Select-Object Name > 1.txt🆑
PS C:\WINDOWS\system32> Install-Module Azure🆑

信頼されていないリポジトリ
信頼されていないリポジトリからモジュールをインストールしようとしています。このリポジトリを信頼する場合は、Set-PSReposit
ory コマンドレットを実行して、リポジトリの InstallationPolicy の値を変更してください。'PSGallery'
からモジュールをインストールしますか?
[Y] はい(Y)  [A] すべて続行(A)  [N] いいえ(N)  [L] すべて無視(L)  [S] 中断(S)  [?] ヘルプ (既定値は "N"): y🆑
PS C:\WINDOWS\system32> Get-Command -CommandType Cmdlet | Select-Object Name > 2.txt🆑
PS C:\WINDOWS\system32>
  • PSGallery=PowerShell Gallaryは著名なリポジトリなので,これは信頼しておいたほうが良さそう.
  • そしてAzureパッケージでインストールされたコマンドレットを確認.
$ diff 1.txt 2.txt🆑
8a9,33
> Add-AzureAccount
> Add-AzureApplicationGatewaySslCertificate
> Add-AzureCertificate
> Add-AzureDataDisk
> Add-AzureDisk
> Add-AzureDns
> Add-AzureEndpoint
> Add-AzureEnvironment
> Add-AzureHDInsightConfigValues
> Add-AzureHDInsightMetastore
> Add-AzureHDInsightScriptAction
> Add-AzureHDInsightStorage
> Add-AzureInternalLoadBalancer
> Add-AzureNetworkInterfaceConfig
> Add-AzureNodeWebRole
> Add-AzureNodeWorkerRole
> Add-AzurePHPWebRole
> Add-AzurePHPWorkerRole
> Add-AzureProvisioningConfig
> Add-AzureTrafficManagerEndpoint
> Add-AzureVhd
> Add-AzureVirtualIP
> Add-AzureVMImage
> Add-AzureWebRole
> Add-AzureWorkerRole
27a53
> Clear-AzureProfile
34c60
< Clear-Recyclebin
---
> Clear-RecycleBin
43a70
> Confirm-AzureStorSimpleLegacyVolumeContainerStatus
70a98,102
> Disable-AzureDataCollection
> Disable-AzureServiceProjectRemoteDesktop
> Disable-AzureTrafficManagerProfile
> Disable-AzureWebsiteApplicationDiagnostic
> Disable-AzureWebsiteDebug
96a129,133
> Enable-AzureDataCollection
> Enable-AzureServiceProjectRemoteDesktop
> Enable-AzureTrafficManagerProfile
> Enable-AzureWebsiteApplicationDiagnostic
> Enable-AzureWebsiteDebug
121a159
> Export-AzureVM
166a205,355
> Get-AzureAccount
> Get-AzureAclConfig
> Get-AzureAffinityGroup
> Get-AzureApplicationGateway
> Get-AzureApplicationGatewayConfig
> Get-AzureApplicationGatewaySslCertificate
> Get-AzureAutomationAccount
> Get-AzureAutomationCertificate
> Get-AzureAutomationConnection
> Get-AzureAutomationCredential
> Get-AzureAutomationJob
> Get-AzureAutomationJobOutput
> Get-AzureAutomationModule
> Get-AzureAutomationRunbook
> Get-AzureAutomationRunbookDefinition
> Get-AzureAutomationSchedule
> Get-AzureAutomationScheduledRunbook
> Get-AzureAutomationVariable
> Get-AzureCertificate
> Get-AzureDataDisk
> Get-AzureDeployment
> Get-AzureDeploymentEvent
> Get-AzureDisk
> Get-AzureDns
> Get-AzureEffectiveRouteTable
> Get-AzureEndpoint
> Get-AzureEnvironment
> Get-AzureHDInsightCluster
> Get-AzureHDInsightJob
> Get-AzureHDInsightJobOutput
> Get-AzureHDInsightProperties
> Get-AzureInternalLoadBalancer
> Get-AzureIPForwarding
> Get-AzureLocalNetworkGateway
> Get-AzureLocation
> Get-AzureMediaServicesAccount
> Get-AzureNetworkInterfaceConfig
> Get-AzureNetworkSecurityGroup
> Get-AzureNetworkSecurityGroupAssociation
> Get-AzureNetworkSecurityGroupConfig
> Get-AzureNetworkSecurityGroupForSubnet
> Get-AzureOSDisk
> Get-AzureOSVersion
> Get-AzurePublicIP
> Get-AzurePublishSettingsFile
> Get-AzureRemoteDesktopFile
> Get-AzureReservedIP
> Get-AzureRole
> Get-AzureRoleSize
> Get-AzureRouteTable
> Get-AzureSBAuthorizationRule
> Get-AzureSBLocation
> Get-AzureSBNamespace
> Get-AzureSchedulerJob
> Get-AzureSchedulerJobCollection
> Get-AzureSchedulerJobHistory
> Get-AzureSchedulerLocation
> Get-AzureService
> Get-AzureServiceADDomainExtension
> Get-AzureServiceAntimalwareConfig
> Get-AzureServiceAvailableExtension
> Get-AzureServiceDiagnosticsExtension
> Get-AzureServiceExtension
> Get-AzureServiceProjectRoleRuntime
> Get-AzureServiceRemoteDesktopExtension
> Get-AzureSiteRecoveryJob
> Get-AzureSiteRecoveryNetwork
> Get-AzureSiteRecoveryNetworkMapping
> Get-AzureSiteRecoveryProtectionContainer
> Get-AzureSiteRecoveryProtectionEntity
> Get-AzureSiteRecoveryRecoveryPlan
> Get-AzureSiteRecoveryRecoveryPlanFile
> Get-AzureSiteRecoveryServer
> Get-AzureSiteRecoverySite
> Get-AzureSiteRecoveryStorage
> Get-AzureSiteRecoveryStorageMapping
> Get-AzureSiteRecoveryVault
> Get-AzureSiteRecoveryVaultSettings
> Get-AzureSiteRecoveryVaultSettingsFile
> Get-AzureSiteRecoveryVM
> Get-AzureSqlDatabase
> Get-AzureSqlDatabaseCopy
> Get-AzureSqlDatabaseImportExportStatus
> Get-AzureSqlDatabaseOperation
> Get-AzureSqlDatabaseServer
> Get-AzureSqlDatabaseServerFirewallRule
> Get-AzureSqlDatabaseServerQuota
> Get-AzureSqlDatabaseServiceObjective
> Get-AzureSqlDatabaseUsages
> Get-AzureSqlRecoverableDatabase
> Get-AzureStaticVNetIP
> Get-AzureStorageAccount
> Get-AzureStorageKey
> Get-AzureStoreAddOn
> Get-AzureStorSimpleAccessControlRecord
> Get-AzureStorSimpleDevice
> Get-AzureStorSimpleDeviceBackup
> Get-AzureStorSimpleDeviceBackupPolicy
> Get-AzureStorSimpleDeviceConnectedInitiator
> Get-AzureStorSimpleDeviceVolume
> Get-AzureStorSimpleDeviceVolumeContainer
> Get-AzureStorSimpleFailoverVolumeContainers
> Get-AzureStorSimpleJob
> Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus
> Get-AzureStorSimpleLegacyVolumeContainerMigrationPlan
> Get-AzureStorSimpleLegacyVolumeContainerStatus
> Get-AzureStorSimpleResource
> Get-AzureStorSimpleResourceContext
> Get-AzureStorSimpleStorageAccountCredential
> Get-AzureStorSimpleTask
> Get-AzureSubnet
> Get-AzureSubnetRouteTable
> Get-AzureSubscription
> Get-AzureTrafficManagerProfile
> Get-AzureVirtualNetworkGateway
> Get-AzureVirtualNetworkGatewayConnection
> Get-AzureVirtualNetworkGatewayDiagnostics
> Get-AzureVirtualNetworkGatewayIPsecParameters
> Get-AzureVirtualNetworkGatewayKey
> Get-AzureVM
> Get-AzureVMAccessExtension
> Get-AzureVMAvailableExtension
> Get-AzureVMBGInfoExtension
> Get-AzureVMChefExtension
> Get-AzureVMCustomScriptExtension
> Get-AzureVMDiagnosticsExtension
> Get-AzureVMDscExtension
> Get-AzureVMDscExtensionStatus
> Get-AzureVMExtension
> Get-AzureVMImage
> Get-AzureVMImageDiskConfigSet
> Get-AzureVMMicrosoftAntimalwareExtension
> Get-AzureVMPuppetExtension
> Get-AzureVMSqlServerExtension
> Get-AzureVNetConfig
> Get-AzureVNetConnection
> Get-AzureVNetGateway
> Get-AzureVNetGatewayDiagnostics
> Get-AzureVNetGatewayIPsecParameters
> Get-AzureVNetGatewayKey
> Get-AzureVNetSite
> Get-AzureWebHostingPlan
> Get-AzureWebHostingPlanMetric
> Get-AzureWebsite
> Get-AzureWebsiteDeployment
> Get-AzureWebsiteJob
> Get-AzureWebsiteJobHistory
> Get-AzureWebsiteLocation
> Get-AzureWebsiteLog
> Get-AzureWebsiteMetric
> Get-AzureWinRMUri
273a463,473
> Get-WAPackCloudService
> Get-WAPackCloudVMRoleSizeProfile
> Get-WAPackLogicalNetwork
> Get-WAPackStaticIPAddressPool
> Get-WAPackVM
> Get-WAPackVMOSDisk
> Get-WAPackVMRole
> Get-WAPackVMSizeProfile
> Get-WAPackVMSubnet
> Get-WAPackVMTemplate
> Get-WAPackVNet
298a499,500
> Grant-AzureHDInsightHttpServicesAccess
> Grant-AzureHDInsightRdpAccess
300a503,507
> Import-AzurePublishSettingsFile
> Import-AzureSiteRecoveryVaultSettingsFile
> Import-AzureStorSimpleLegacyApplianceConfig
> Import-AzureStorSimpleLegacyVolumeContainer
> Import-AzureVM
319a527,528
> Invoke-AzureHDInsightHiveJob
> Invoke-AzureRecoveryServicesVaultUpgrade
342a552,558
> Move-AzureDeployment
> Move-AzureNetworkSecurityGroup
> Move-AzureReservedIP
> Move-AzureRouteTable
> Move-AzureService
> Move-AzureStorageAccount
> Move-AzureVirtualNetwork
346a563,641
> New-AzureAclConfig
> New-AzureAffinityGroup
> New-AzureApplicationGateway
> New-AzureAutomationAccount
> New-AzureAutomationCertificate
> New-AzureAutomationConnection
> New-AzureAutomationCredential
> New-AzureAutomationModule
> New-AzureAutomationRunbook
> New-AzureAutomationSchedule
> New-AzureAutomationVariable
> New-AzureCertificateSetting
> New-AzureDeployment
> New-AzureDns
> New-AzureHDInsightCluster
> New-AzureHDInsightClusterConfig
> New-AzureHDInsightHiveJobDefinition
> New-AzureHDInsightMapReduceJobDefinition
> New-AzureHDInsightPigJobDefinition
> New-AzureHDInsightSqoopJobDefinition
> New-AzureHDInsightStreamingMapReduceJobDefinition
> New-AzureInternalLoadBalancerConfig
> New-AzureIPTag
> New-AzureLocalNetworkGateway
> New-AzureMediaServicesAccount
> New-AzureMediaServicesKey
> New-AzureNetworkSecurityGroup
> New-AzureProfile
> New-AzureQuickVM
> New-AzureReservedIP
> New-AzureRoleTemplate
> New-AzureRouteTable
> New-AzureSBAuthorizationRule
> New-AzureSBNamespace
> New-AzureSchedulerHttpJob
> New-AzureSchedulerJobCollection
> New-AzureSchedulerStorageQueueJob
> New-AzureService
> New-AzureServiceADDomainExtensionConfig
> New-AzureServiceDiagnosticsExtensionConfig
> New-AzureServiceExtensionConfig
> New-AzureServiceProject
> New-AzureServiceRemoteDesktopExtensionConfig
> New-AzureSiteRecoveryNetworkMapping
> New-AzureSiteRecoveryProtectionProfileObject
> New-AzureSiteRecoveryRecoveryPlan
> New-AzureSiteRecoverySite
> New-AzureSiteRecoveryStorageMapping
> New-AzureSiteRecoveryVault
> New-AzureSqlDatabase
> New-AzureSqlDatabaseServer
> New-AzureSqlDatabaseServerContext
> New-AzureSqlDatabaseServerFirewallRule
> New-AzureSSHKey
> New-AzureStorageAccount
> New-AzureStorageKey
> New-AzureStoreAddOn
> New-AzureStorSimpleAccessControlRecord
> New-AzureStorSimpleDeviceBackupPolicy
> New-AzureStorSimpleDeviceBackupScheduleAddConfig
> New-AzureStorSimpleDeviceBackupScheduleUpdateConfig
> New-AzureStorSimpleDeviceVolume
> New-AzureStorSimpleDeviceVolumeContainer
> New-AzureStorSimpleInlineStorageAccountCredential
> New-AzureStorSimpleNetworkConfig
> New-AzureStorSimpleStorageAccountCredential
> New-AzureStorSimpleVirtualDevice
> New-AzureTrafficManagerProfile
> New-AzureVirtualNetworkGateway
> New-AzureVirtualNetworkGatewayConnection
> New-AzureVM
> New-AzureVMConfig
> New-AzureVMImageDiskConfigSet
> New-AzureVMSqlServerAutoBackupConfig
> New-AzureVMSqlServerAutoPatchingConfig
> New-AzureVMSqlServerKeyVaultCredentialConfig
> New-AzureVNetGateway
> New-AzureWebsite
> New-AzureWebsiteJob
383a679,685
> New-WAPackCloudService
> New-WAPackQuickVM
> New-WAPackStaticIPAddressPool
> New-WAPackVM
> New-WAPackVMRole
> New-WAPackVMSubnet
> New-WAPackVNet
402a705,708
> Publish-AzureAutomationRunbook
> Publish-AzureServiceProject
> Publish-AzureVMDscConfiguration
> Publish-AzureWebsiteProject
409a716
> Register-AzureAutomationScheduledRunbook
423a731,818
> Remove-AzureAccount
> Remove-AzureAclConfig
> Remove-AzureAffinityGroup
> Remove-AzureApplicationGateway
> Remove-AzureApplicationGatewaySslCertificate
> Remove-AzureAutomationAccount
> Remove-AzureAutomationCertificate
> Remove-AzureAutomationConnection
> Remove-AzureAutomationConnectionType
> Remove-AzureAutomationCredential
> Remove-AzureAutomationModule
> Remove-AzureAutomationRunbook
> Remove-AzureAutomationSchedule
> Remove-AzureAutomationVariable
> Remove-AzureAvailabilitySet
> Remove-AzureCertificate
> Remove-AzureDataDisk
> Remove-AzureDeployment
> Remove-AzureDisk
> Remove-AzureDns
> Remove-AzureEndpoint
> Remove-AzureEnvironment
> Remove-AzureHDInsightCluster
> Remove-AzureInternalLoadBalancer
> Remove-AzureLocalNetworkGateway
> Remove-AzureMediaServicesAccount
> Remove-AzureNetworkInterfaceConfig
> Remove-AzureNetworkSecurityGroup
> Remove-AzureNetworkSecurityGroupAssociation
> Remove-AzureNetworkSecurityGroupConfig
> Remove-AzureNetworkSecurityGroupFromSubnet
> Remove-AzureNetworkSecurityRule
> Remove-AzurePublicIP
> Remove-AzureReservedIP
> Remove-AzureReservedIPAssociation
> Remove-AzureRoute
> Remove-AzureRouteTable
> Remove-AzureSBAuthorizationRule
> Remove-AzureSBNamespace
> Remove-AzureSchedulerJob
> Remove-AzureSchedulerJobCollection
> Remove-AzureService
> Remove-AzureServiceADDomainExtension
> Remove-AzureServiceAntimalwareExtension
> Remove-AzureServiceDiagnosticsExtension
> Remove-AzureServiceExtension
> Remove-AzureServiceRemoteDesktopExtension
> Remove-AzureSiteRecoveryNetworkMapping
> Remove-AzureSiteRecoveryRecoveryPlan
> Remove-AzureSiteRecoveryStorageMapping
> Remove-AzureSqlDatabase
> Remove-AzureSqlDatabaseServer
> Remove-AzureSqlDatabaseServerFirewallRule
> Remove-AzureStaticVNetIP
> Remove-AzureStorageAccount
> Remove-AzureStoreAddOn
> Remove-AzureStorSimpleAccessControlRecord
> Remove-AzureStorSimpleDeviceBackup
> Remove-AzureStorSimpleDeviceBackupPolicy
> Remove-AzureStorSimpleDeviceVolume
> Remove-AzureStorSimpleDeviceVolumeContainer
> Remove-AzureStorSimpleStorageAccountCredential
> Remove-AzureSubnetRouteTable
> Remove-AzureSubscription
> Remove-AzureTrafficManagerEndpoint
> Remove-AzureTrafficManagerProfile
> Remove-AzureVirtualIP
> Remove-AzureVirtualNetworkGateway
> Remove-AzureVirtualNetworkGatewayConnection
> Remove-AzureVM
> Remove-AzureVMAccessExtension
> Remove-AzureVMBGInfoExtension
> Remove-AzureVMChefExtension
> Remove-AzureVMCustomScriptExtension
> Remove-AzureVMDiagnosticsExtension
> Remove-AzureVMDscExtension
> Remove-AzureVMExtension
> Remove-AzureVMImage
> Remove-AzureVMImageDataDiskConfig
> Remove-AzureVMImageOSDiskConfig
> Remove-AzureVMMicrosoftAntimalwareExtension
> Remove-AzureVMPuppetExtension
> Remove-AzureVMSqlServerExtension
> Remove-AzureVNetConfig
> Remove-AzureVNetGateway
> Remove-AzureVNetGatewayDefaultSite
> Remove-AzureWebsite
> Remove-AzureWebsiteJob
451a847,852
> Remove-WAPackCloudService
> Remove-WAPackStaticIPAddressPool
> Remove-WAPackVM
> Remove-WAPackVMRole
> Remove-WAPackVMSubnet
> Remove-WAPackVNet
466a868,873
> Reset-AzureLocalNetworkGateway
> Reset-AzureRoleInstance
> Reset-AzureVirtualNetworkGateway
> Reset-AzureVirtualNetworkGatewayConnection
> Reset-AzureVirtualNetworkGatewayKey
> Reset-AzureVNetGateway
467a875,876
> Resize-AzureVirtualNetworkGateway
> Resize-AzureVNetGateway
469a879,881
> Restart-AzureSiteRecoveryJob
> Restart-AzureVM
> Restart-AzureWebsite
471a884,885
> Restart-WAPackVM
> Restore-AzureWebsiteDeployment
474a889,890
> Resume-AzureAutomationJob
> Resume-AzureSiteRecoveryJob
478a895,901
> Resume-WAPackVM
> Revoke-AzureHDInsightHttpServicesAccess
> Revoke-AzureHDInsightRdpAccess
> Save-AzureServiceProjectPackage
> Save-AzureVhd
> Save-AzureVMImage
> Save-AzureWebsiteLog
481a905,907
> Select-AzureProfile
> Select-AzureStorSimpleResource
> Select-AzureSubscription
498a925,1010
> Set-AzureAclConfig
> Set-AzureAffinityGroup
> Set-AzureApplicationGatewayConfig
> Set-AzureAutomationCertificate
> Set-AzureAutomationConnectionFieldValue
> Set-AzureAutomationCredential
> Set-AzureAutomationModule
> Set-AzureAutomationRunbook
> Set-AzureAutomationRunbookDefinition
> Set-AzureAutomationSchedule
> Set-AzureAutomationVariable
> Set-AzureAvailabilitySet
> Set-AzureDataDisk
> Set-AzureDeployment
> Set-AzureDns
> Set-AzureEndpoint
> Set-AzureEnvironment
> Set-AzureHDInsightClusterSize
> Set-AzureHDInsightDefaultStorage
> Set-AzureInternalLoadBalancer
> Set-AzureIPForwarding
> Set-AzureLoadBalancedEndpoint
> Set-AzureNetworkInterfaceConfig
> Set-AzureNetworkSecurityGroupAssociation
> Set-AzureNetworkSecurityGroupConfig
> Set-AzureNetworkSecurityGroupToSubnet
> Set-AzureNetworkSecurityRule
> Set-AzureOSDisk
> Set-AzurePublicIP
> Set-AzureReservedIPAssociation
> Set-AzureRole
> Set-AzureRoute
> Set-AzureSBAuthorizationRule
> Set-AzureSchedulerHttpJob
> Set-AzureSchedulerJobCollection
> Set-AzureSchedulerStorageQueueJob
> Set-AzureService
> Set-AzureServiceADDomainExtension
> Set-AzureServiceAntimalwareExtension
> Set-AzureServiceDiagnosticsExtension
> Set-AzureServiceExtension
> Set-AzureServiceProject
> Set-AzureServiceProjectRole
> Set-AzureServiceRemoteDesktopExtension
> Set-AzureSiteRecoveryProtectionEntity
> Set-AzureSiteRecoveryVM
> Set-AzureSqlDatabase
> Set-AzureSqlDatabaseServer
> Set-AzureSqlDatabaseServerFirewallRule
> Set-AzureStaticVNetIP
> Set-AzureStorageAccount
> Set-AzureStoreAddOn
> Set-AzureStorSimpleAccessControlRecord
> Set-AzureStorSimpleDevice
> Set-AzureStorSimpleDeviceBackupPolicy
> Set-AzureStorSimpleDeviceVolume
> Set-AzureStorSimpleStorageAccountCredential
> Set-AzureStorSimpleVirtualDevice
> Set-AzureSubnet
> Set-AzureSubnetRouteTable
> Set-AzureSubscription
> Set-AzureTrafficManagerEndpoint
> Set-AzureTrafficManagerProfile
> Set-AzureVirtualNetworkGatewayIPsecParameters
> Set-AzureVirtualNetworkGatewayKey
> Set-AzureVMAccessExtension
> Set-AzureVMBGInfoExtension
> Set-AzureVMBootDiagnostics
> Set-AzureVMChefExtension
> Set-AzureVMCustomScriptExtension
> Set-AzureVMDiagnosticsExtension
> Set-AzureVMDscExtension
> Set-AzureVMExtension
> Set-AzureVMImageDataDiskConfig
> Set-AzureVMImageOSDiskConfig
> Set-AzureVMMicrosoftAntimalwareExtension
> Set-AzureVMPuppetExtension
> Set-AzureVMSize
> Set-AzureVMSqlServerExtension
> Set-AzureVNetConfig
> Set-AzureVNetGateway
> Set-AzureVNetGatewayDefaultSite
> Set-AzureVNetGatewayIPsecParameters
> Set-AzureVNetGatewayKey
> Set-AzureWalkUpgradeDomain
> Set-AzureWebsite
547a1060,1061
> Set-WAPackVM
> Set-WAPackVMRole
563a1078,1079
> Show-AzurePortal
> Show-AzureWebsite
570a1087,1112
> Start-AzureApplicationGateway
> Start-AzureAutomationRunbook
> Start-AzureEmulator
> Start-AzureHDInsightJob
> Start-AzureService
> Start-AzureSiteRecoveryCommitFailoverJob
> Start-AzureSiteRecoveryPlannedFailoverJob
> Start-AzureSiteRecoveryProtectionProfileAssociationJob
> Start-AzureSiteRecoveryProtectionProfileDissociationJob
> Start-AzureSiteRecoveryTestFailoverJob
> Start-AzureSiteRecoveryUnplannedFailoverJob
> Start-AzureSqlDatabaseCopy
> Start-AzureSqlDatabaseExport
> Start-AzureSqlDatabaseImport
> Start-AzureSqlDatabaseRecovery
> Start-AzureSqlDatabaseRestore
> Start-AzureStorSimpleBackupCloneJob
> Start-AzureStorSimpleDeviceBackupJob
> Start-AzureStorSimpleDeviceBackupRestoreJob
> Start-AzureStorSimpleDeviceFailoverJob
> Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan
> Start-AzureVirtualNetworkGatewayDiagnostics
> Start-AzureVM
> Start-AzureVNetGatewayDiagnostics
> Start-AzureWebsite
> Start-AzureWebsiteJob
580a1123
> Start-WAPackVM
582a1126,1138
> Stop-AzureApplicationGateway
> Stop-AzureAutomationJob
> Stop-AzureEmulator
> Stop-AzureHDInsightJob
> Stop-AzureService
> Stop-AzureSiteRecoveryJob
> Stop-AzureSqlDatabaseCopy
> Stop-AzureStorSimpleJob
> Stop-AzureVirtualNetworkGatewayDiagnostics
> Stop-AzureVM
> Stop-AzureVNetGatewayDiagnostics
> Stop-AzureWebsite
> Stop-AzureWebsiteJob
588a1145,1146
> Stop-WAPackVM
> Suspend-AzureAutomationJob
591a1150,1151
> Suspend-WAPackVM
> Switch-AzureWebsiteSlot
595a1156,1159
> Test-AzureName
> Test-AzureRecoveryServicesVaultUpgrade
> Test-AzureStaticVNetIP
> Test-AzureTrafficManagerDomainName
616a1181
> Unregister-AzureAutomationScheduledRunbook
622a1188,1195
> Update-AzureApplicationGateway
> Update-AzureDisk
> Update-AzureSiteRecoveryProtectionDirection
> Update-AzureSiteRecoveryProtectionEntity
> Update-AzureSiteRecoveryRecoveryPlan
> Update-AzureVM
> Update-AzureVMImage
> Update-AzureWebsiteRepository
628a1202
> Use-AzureHDInsightCluster
630a1205
> Wait-AzureHDInsightJob
$

  • 沢山入りました...

「信頼されていないリポジトリからモジュールをインストールしようとしています。」への対処

  • Install-Moduleを実行する際に,警告が出る時がある.


信頼されていないリポジトリ
信頼されていないリポジトリからモジュールをインストールしようとしています。このリポジトリを信頼する場合は、Set-PSReposit
ory コマンドレットを実行して、リポジトリの InstallationPolicy の値を変更してください。'PSGallery'
からモジュールをインストールしますか?
[Y] はい(Y)  [A] すべて続行(A)  [N] いいえ(N)  [L] すべて無視(L)  [S] 中断(S)  [?] ヘルプ (既定値は "N"):

  • リポジトリの状況を確認.

PS C:\WINDOWS\system32> Get-PSRepository🆑
Name                      InstallationPolicy   SourceLocation
----                      ------------------   --------------
PSGallery                 Untrusted🈁            https://www.powershellgallery.com/api/v2
PS C:\WINDOWS\system32>
  • Untrustedになっているので,信頼する.


PS C:\WINDOWS\system32> Set-PSRepository -Name PSGallery -InstallationPolicy Trusted🆑
PS C:\WINDOWS\system32>

  • 状態を確認する.


PS C:\WINDOWS\system32> Get-PSRepository🆑

Name                      InstallationPolicy   SourceLocation
----                      ------------------   --------------
PSGallery                 Trusted🈁              https://www.powershellgallery.com/api/v2


PS C:\WINDOWS\system32>

  • trusted に変更された.

PowerShellのモジュールが入っている場所を確認.

  • 環境変数から取得できる.

PS C:\Users\ujpadmin> Get-ChildItem env:PSModulePath🆑
Name                           Value
----                           -----
PSModulePath                   C:\Users\ujpadmin\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Intel\
PS C:\Users\ujpadmin>
  • うちの環境では,4つのパスが指定されている.


C:\Users\ujpadmin\Documents\WindowsPowerShell\Modules;
C:\Program Files\WindowsPowerShell\Modules;
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;
C:\Program Files\Intel\

ExchangeOnlineManagementをインストール

  • PowerShellを管理者権限で実行.


PS C:\WINDOWS\system32> Install-Module -Name ExchangeOnlineManagement🆑
PS C:\WINDOWS\system32> Get-Command -CommandType Cmdlet | Select-Object Name > 3.txt🆑
PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32>

  • 何もレスポンスなしに終了.
  • 何がインストールされたのか確認する.


$ diff 2.txt 3.txt🆑
34c34
< Clear-Recyclebin                          
---
> Clear-RecycleBin                          
197a198,206
> Get-EXOCasMailbox                         
> Get-EXOMailbox                            
> Get-EXOMailboxFolderPermission            
> Get-EXOMailboxFolderStatistics            
> Get-EXOMailboxPermission                  
> Get-EXOMailboxStatistics                  
> Get-EXOMobileDeviceStatistics             
> Get-EXORecipient                          
> Get-EXORecipientPermission                
222a232
> Get-MyAnalyticsFeatureConfig              
272a283
> Get-UserBriefingConfig                    
527a539
> Set-MyAnalyticsFeatureConfig              
546a559
> Set-UserBriefingConfig                    
[macmini2014:ujpadmin 14:59:10 /tmp ]
$

  • 差分を確認.


$ diff 2.txt 3.txt🆑
386a387,395
> Get-EXOCasMailbox
> Get-EXOMailbox
> Get-EXOMailboxFolderPermission
> Get-EXOMailboxFolderStatistics
> Get-EXOMailboxPermission
> Get-EXOMailboxStatistics
> Get-EXOMobileDeviceStatistics
> Get-EXORecipient
> Get-EXORecipientPermission
411a421
> Get-MyAnalyticsFeatureConfig
461a472
> Get-UserBriefingConfig
> Set-MyAnalyticsFeatureConfig
1058a1071
> Set-UserBriefingConfig
$

  • EXOと記載があるのが,ExchangeOnline関係だとわかるけど,その例に倣ってない場合もある.

AzureADをインストール

  • モジュール名はAzureAD.


PS C:\WINDOWS\system32> Install-Module AzureAD🆑
PS C:\WINDOWS\system32> Get-Command -CommandType Cmdlet | Select-Object Name > 4.txt🆑
PS C:\WINDOWS\system32>

  • 差分は,次の通り.


$ diff 3.txt 4.txt🆑
9a10,21
> Add-AzureADApplicationOwner
> Add-AzureADDeviceRegisteredOwner
> Add-AzureADDeviceRegisteredUser
> Add-AzureADDirectoryRoleMember
> Add-AzureADGroupMember
> Add-AzureADGroupOwner
> Add-AzureADMSAdministrativeUnitMember
> Add-AzureADMSApplicationOwner
> Add-AzureADMSLifecyclePolicyGroup
> Add-AzureADMSScopedRoleMembership
> Add-AzureADMSServicePrincipalDelegatedPermissionClassification
> Add-AzureADServicePrincipalOwner
69a82
> Confirm-AzureADDomain
71a85
> Connect-AzureAD
120a135
> Disconnect-AzureAD
128a144
> Enable-AzureADDirectoryRole
206a223,305
> Get-AzureADApplication
> Get-AzureADApplicationExtensionProperty
> Get-AzureADApplicationKeyCredential
> Get-AzureADApplicationLogo
> Get-AzureADApplicationOwner
> Get-AzureADApplicationPasswordCredential
> Get-AzureADApplicationProxyApplication
> Get-AzureADApplicationProxyApplicationConnectorGroup
> Get-AzureADApplicationProxyConnector
> Get-AzureADApplicationProxyConnectorGroup
> Get-AzureADApplicationProxyConnectorGroupMember
> Get-AzureADApplicationProxyConnectorMemberOf
> Get-AzureADApplicationServiceEndpoint
> Get-AzureADContact
> Get-AzureADContactDirectReport
> Get-AzureADContactManager
> Get-AzureADContactMembership
> Get-AzureADContactThumbnailPhoto
> Get-AzureADContract
> Get-AzureADCurrentSessionInfo
> Get-AzureADDeletedApplication
> Get-AzureADDevice
> Get-AzureADDeviceConfiguration
> Get-AzureADDeviceRegisteredOwner
> Get-AzureADDeviceRegisteredUser
> Get-AzureADDirectoryRole
> Get-AzureADDirectoryRoleMember
> Get-AzureADDirectoryRoleTemplate
> Get-AzureADDomain
> Get-AzureADDomainNameReference
> Get-AzureADDomainServiceConfigurationRecord
> Get-AzureADDomainVerificationDnsRecord
> Get-AzureADExtensionProperty
> Get-AzureADGroup
> Get-AzureADGroupAppRoleAssignment
> Get-AzureADGroupMember
> Get-AzureADGroupOwner
> Get-AzureADMSAdministrativeUnit
> Get-AzureADMSAdministrativeUnitMember
> Get-AzureADMSApplication
> Get-AzureADMSApplicationExtensionProperty
> Get-AzureADMSApplicationOwner
> Get-AzureADMSConditionalAccessPolicy
> Get-AzureADMSDeletedDirectoryObject
> Get-AzureADMSDeletedGroup
> Get-AzureADMSGroup
> Get-AzureADMSGroupLifecyclePolicy
> Get-AzureADMSGroupPermissionGrant
> Get-AzureADMSIdentityProvider
> Get-AzureADMSLifecyclePolicyGroup
> Get-AzureADMSNamedLocationPolicy
> Get-AzureADMSPermissionGrantConditionSet
> Get-AzureADMSPermissionGrantPolicy
> Get-AzureADMSScopedRoleMembership
> Get-AzureADMSServicePrincipalDelegatedPermissionClassification
> Get-AzureADOAuth2PermissionGrant
> Get-AzureADObjectByObjectId
> Get-AzureADServiceAppRoleAssignedTo
> Get-AzureADServiceAppRoleAssignment
> Get-AzureADServicePrincipal
> Get-AzureADServicePrincipalCreatedObject
> Get-AzureADServicePrincipalKeyCredential
> Get-AzureADServicePrincipalMembership
> Get-AzureADServicePrincipalOAuth2PermissionGrant
> Get-AzureADServicePrincipalOwnedObject
> Get-AzureADServicePrincipalOwner
> Get-AzureADServicePrincipalPasswordCredential
> Get-AzureADSubscribedSku
> Get-AzureADTenantDetail
> Get-AzureADTrustedCertificateAuthority
> Get-AzureADUser
> Get-AzureADUserAppRoleAssignment
> Get-AzureADUserCreatedObject
> Get-AzureADUserDirectReport
> Get-AzureADUserExtension
> Get-AzureADUserLicenseDetail
> Get-AzureADUserManager
> Get-AzureADUserMembership
> Get-AzureADUserOAuth2PermissionGrant
> Get-AzureADUserOwnedDevice
> Get-AzureADUserOwnedObject
> Get-AzureADUserRegisteredDevice
> Get-AzureADUserThumbnailPhoto
377a477
> Get-CrossCloudVerificationCode
574a675,704
> New-AzureADApplication
> New-AzureADApplicationExtensionProperty
> New-AzureADApplicationKeyCredential
> New-AzureADApplicationPasswordCredential
> New-AzureADApplicationProxyApplication
> New-AzureADApplicationProxyConnectorGroup
> New-AzureADDevice
> New-AzureADDomain
> New-AzureADGroup
> New-AzureADGroupAppRoleAssignment
> New-AzureADMSAdministrativeUnit
> New-AzureADMSApplication
> New-AzureADMSApplicationExtensionProperty
> New-AzureADMSApplicationKey
> New-AzureADMSApplicationPassword
> New-AzureADMSConditionalAccessPolicy
> New-AzureADMSGroup
> New-AzureADMSGroupLifecyclePolicy
> New-AzureADMSIdentityProvider
> New-AzureADMSInvitation
> New-AzureADMSNamedLocationPolicy
> New-AzureADMSPermissionGrantConditionSet
> New-AzureADMSPermissionGrantPolicy
> New-AzureADServiceAppRoleAssignment
> New-AzureADServicePrincipal
> New-AzureADServicePrincipalKeyCredential
> New-AzureADServicePrincipalPasswordCredential
> New-AzureADTrustedCertificateAuthority
> New-AzureADUser
> New-AzureADUserAppRoleAssignment
743a874,923
> Remove-AzureADApplication
> Remove-AzureADApplicationExtensionProperty
> Remove-AzureADApplicationKeyCredential
> Remove-AzureADApplicationOwner
> Remove-AzureADApplicationPasswordCredential
> Remove-AzureADApplicationProxyApplication
> Remove-AzureADApplicationProxyApplicationConnectorGroup
> Remove-AzureADApplicationProxyConnectorGroup
> Remove-AzureADContact
> Remove-AzureADContactManager
> Remove-AzureADDeletedApplication
> Remove-AzureADDevice
> Remove-AzureADDeviceRegisteredOwner
> Remove-AzureADDeviceRegisteredUser
> Remove-AzureADDirectoryRoleMember
> Remove-AzureADDomain
> Remove-AzureADGroup
> Remove-AzureADGroupAppRoleAssignment
> Remove-AzureADGroupMember
> Remove-AzureADGroupOwner
> Remove-AzureADMSAdministrativeUnit
> Remove-AzureADMSAdministrativeUnitMember
> Remove-AzureADMSApplication
> Remove-AzureADMSApplicationExtensionProperty
> Remove-AzureADMSApplicationKey
> Remove-AzureADMSApplicationOwner
> Remove-AzureADMSApplicationPassword
> Remove-AzureADMSApplicationVerifiedPublisher
> Remove-AzureADMSConditionalAccessPolicy
> Remove-AzureADMSDeletedDirectoryObject
> Remove-AzureADMSGroup
> Remove-AzureADMSGroupLifecyclePolicy
> Remove-AzureADMSIdentityProvider
> Remove-AzureADMSLifecyclePolicyGroup
> Remove-AzureADMSNamedLocationPolicy
> Remove-AzureADMSPermissionGrantConditionSet
> Remove-AzureADMSPermissionGrantPolicy
> Remove-AzureADMSScopedRoleMembership
> Remove-AzureADMSServicePrincipalDelegatedPermissionClassifi...
> Remove-AzureADOAuth2PermissionGrant
> Remove-AzureADServiceAppRoleAssignment
> Remove-AzureADServicePrincipal
> Remove-AzureADServicePrincipalKeyCredential
> Remove-AzureADServicePrincipalOwner
> Remove-AzureADServicePrincipalPasswordCredential
> Remove-AzureADTrustedCertificateAuthority
> Remove-AzureADUser
> Remove-AzureADUserAppRoleAssignment
> Remove-AzureADUserExtension
> Remove-AzureADUserManager
878a1059
> Reset-AzureADMSLifeCycleGroup
895a1077,1078
> Restore-AzureADDeletedApplication
> Restore-AzureADMSDeletedDirectoryObject
906a1090,1091
> Revoke-AzureADSignedInUserAllRefreshToken
> Revoke-AzureADUserAllRefreshToken
915a1101,1104
> Select-AzureADGroupIdsContactIsMemberOf
> Select-AzureADGroupIdsGroupIsMemberOf
> Select-AzureADGroupIdsServicePrincipalIsMemberOf
> Select-AzureADGroupIdsUserIsMemberOf
936a1126,1156
> Set-AzureADApplication
> Set-AzureADApplicationLogo
> Set-AzureADApplicationProxyApplication
> Set-AzureADApplicationProxyApplicationConnectorGroup
> Set-AzureADApplicationProxyApplicationCustomDomainCertificate
> Set-AzureADApplicationProxyApplicationSingleSignOn
> Set-AzureADApplicationProxyConnector
> Set-AzureADApplicationProxyConnectorGroup
> Set-AzureADDevice
> Set-AzureADDomain
> Set-AzureADGroup
> Set-AzureADMSAdministrativeUnit
> Set-AzureADMSApplication
> Set-AzureADMSApplicationLogo
> Set-AzureADMSApplicationVerifiedPublisher
> Set-AzureADMSConditionalAccessPolicy
> Set-AzureADMSGroup
> Set-AzureADMSGroupLifecyclePolicy
> Set-AzureADMSIdentityProvider
> Set-AzureADMSNamedLocationPolicy
> Set-AzureADMSPermissionGrantConditionSet
> Set-AzureADMSPermissionGrantPolicy
> Set-AzureADServicePrincipal
> Set-AzureADTenantDetail
> Set-AzureADTrustedCertificateAuthority
> Set-AzureADUser
> Set-AzureADUserExtension
> Set-AzureADUserLicense
> Set-AzureADUserManager
> Set-AzureADUserPassword
> Set-AzureADUserThumbnailPhoto
1107,1108c1327,1328
< Start-AzureSiteRecoveryProtectionProfileAssocia...
< Start-AzureSiteRecoveryProtectionProfileDissoci...
---
> Start-AzureSiteRecoveryProtectionProfileAssociationJob
> Start-AzureSiteRecoveryProtectionProfileDissociationJob
1120c1340
< Start-AzureStorSimpleLegacyVolumeContainerMigra...
---
> Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan
1200a1421
> Update-AzureADSignedInUserPassword
$

  • 基本的には,AzureADという名前のコマンドレットが沢山入った.


Microsot 365(Office 365)に接続するためのMSOnline(Microsoft Online Services サインイン アシスタント)を導入する

  • PowerShellを利用してMicrosoft 365を利用するには.
  • PowerShell を使用して Microsoft 365 に接続する
    • https://docs.microsoft.com/ja-jp/microsoft-365/enterprise/connect-to-microsoft-365-powershell?view=o365-worldwide
      • Microsoft 365 および管理者のユーザー アカウント、グループ、ライセンスへの接続に使用可能な PowerShell モジュールには、次の 2 つのバージョンがあります。
        1. コマンドレット名に AzureAD が含まれる Graph 用 Azure Active Directory PowerShell
        2. コマンドレット名に Msol が含まれる Windows PowerShell 用 Microsoft Azure Active Directory モジュール
  • モジュールをインストール.


PS C:\WINDOWS\system32> Install-Module MSOnline🆑
PS C:\WINDOWS\system32> Get-Command -CommandType Cmdlet | Select-Object Name > 5.txt🆑
PS C:\WINDOWS\system32>

  • 何が増えたかdiffで確認.


$ diff 4.txt 5.txt🆑
56a57,61
> Add-MsolAdministrativeUnitMember
> Add-MsolForeignGroupToRole
> Add-MsolGroupMember
> Add-MsolRoleMember
> Add-MsolScopedRoleMember
83a89,90
> Confirm-MsolDomain
> Confirm-MsolEmailVerifiedDomain
85a93
> Connect-MsolService
93a102,104
> Convert-MsolDomainToFederated
> Convert-MsolDomainToStandard
> Convert-MsolFederatedUser
119a131
> Disable-MsolDevice
152a165
> Enable-MsolDevice
520a534,563
> Get-MsolAccountSku
> Get-MsolAdministrativeUnit
> Get-MsolAdministrativeUnitMember
> Get-MsolCompanyAllowedDataLocation
> Get-MsolCompanyInformation
> Get-MsolContact
> Get-MsolDevice
> Get-MsolDeviceRegistrationServicePolicy
> Get-MsolDirSyncConfiguration
> Get-MsolDirSyncFeatures
> Get-MsolDirSyncProvisioningError
> Get-MsolDomain
> Get-MsolDomainFederationSettings
> Get-MsolDomainVerificationDns
> Get-MsolFederationProperty
> Get-MsolGroup
> Get-MsolGroupMember
> Get-MsolHasObjectsWithDirSyncProvisioningErrors
> Get-MsolPartnerContract
> Get-MsolPartnerInformation
> Get-MsolPasswordPolicy
> Get-MsolRole
> Get-MsolRoleMember
> Get-MsolScopedRoleMember
> Get-MsolServicePrincipal
> Get-MsolServicePrincipalCredential
> Get-MsolSubscription
> Get-MsolUser
> Get-MsolUserByStrongAuthentication
> Get-MsolUserRole
800a844,853
> New-MsolAdministrativeUnit
> New-MsolDomain
> New-MsolFederatedDomain
> New-MsolGroup
> New-MsolLicenseOptions
> New-MsolServicePrincipal
> New-MsolServicePrincipalAddresses
> New-MsolServicePrincipalCredential
> New-MsolUser
> New-MsolWellKnownGroup
855a909,911
> Redo-MsolProvisionContact
> Redo-MsolProvisionGroup
> Redo-MsolProvisionUser
1029a1086,1100
> Remove-MsolAdministrativeUnit
> Remove-MsolAdministrativeUnitMember
> Remove-MsolApplicationPassword
> Remove-MsolContact
> Remove-MsolDevice
> Remove-MsolDomain
> Remove-MsolFederatedDomain
> Remove-MsolForeignGroupFromRole
> Remove-MsolGroup
> Remove-MsolGroupMember
> Remove-MsolRoleMember
> Remove-MsolScopedRoleMember
> Remove-MsolServicePrincipal
> Remove-MsolServicePrincipalCredential
> Remove-MsolUser
1066a1138
> Reset-MsolStrongAuthenticationMethodByUpn
1080a1153
> Restore-MsolUser
1270a1344,1365
> Set-MsolADFSContext
> Set-MsolAdministrativeUnit
> Set-MsolCompanyAllowedDataLocation
> Set-MsolCompanyContactInformation
> Set-MsolCompanyMultiNationalEnabled
> Set-MsolCompanySecurityComplianceContactInformation
> Set-MsolCompanySettings
> Set-MsolDeviceRegistrationServicePolicy
> Set-MsolDirSyncConfiguration
> Set-MsolDirSyncEnabled
> Set-MsolDirSyncFeature
> Set-MsolDomain
> Set-MsolDomainAuthentication
> Set-MsolDomainFederationSettings
> Set-MsolGroup
> Set-MsolPartnerInformation
> Set-MsolPasswordPolicy
> Set-MsolServicePrincipal
> Set-MsolUser
> Set-MsolUserLicense
> Set-MsolUserPassword
> Set-MsolUserPrincipalName
1432a1528
> Update-MsolFederatedDomain
$

  • Msolなんとかという名前.

PnP PowerShell

  • こんなツール.
    • PnP PowerShell
      • https://docs.microsoft.com/ja-jp/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps
        • PnP PowerShell は クロスプラットフォーム PowerShell モジュールで、Microsoft 365 環境、より具体的には SharePoint Online、Microsoft Teams、Microsoft Planner、および Microsoft Flow で動作する 500 以上のコマンドレットを提供しています。
      • となっているけれど,
        • ただし、SharePoint Online のみをサポートします。
      • となっている.
  • インストールコマンドを実行する.


PS C:\WINDOWS\system32> Install-Module SharePointPnPPowerShellOnline🆑
PS C:\WINDOWS\system32>

  • 差分を確認.


$ diff 5.txt 6.txt🆑
61a62,125
> Add-PnPAlert
> Add-PnPApp
> Add-PnPApplicationCustomizer
> Add-PnPClientSidePage
> Add-PnPClientSidePageSection
> Add-PnPClientSideText
> Add-PnPClientSideWebPart
> Add-PnPContentType
> Add-PnPContentTypeToDocumentSet
> Add-PnPContentTypeToList
> Add-PnPCustomAction
> Add-PnPDataRowsToProvisioningTemplate
> Add-PnPDocumentSet
> Add-PnPEventReceiver
> Add-PnPField
> Add-PnPFieldFromXml
> Add-PnPFieldToContentType
> Add-PnPFile
> Add-PnPFileToProvisioningTemplate
> Add-PnPFolder
> Add-PnPHtmlPublishingPageLayout
> Add-PnPHubSiteAssociation
> Add-PnPIndexedProperty
> Add-PnPJavaScriptBlock
> Add-PnPJavaScriptLink
> Add-PnPListFoldersToProvisioningTemplate
> Add-PnPListItem
> Add-PnPMasterPage
> Add-PnPMicrosoft365GroupMember
> Add-PnPMicrosoft365GroupOwner
> Add-PnPMicrosoft365GroupToSite
> Add-PnPNavigationNode
> Add-PnPOrgAssetsLibrary
> Add-PnPOrgNewsSite
> Add-PnPProvisioningTemplate
> Add-PnPPublishingImageRendition
> Add-PnPPublishingPage
> Add-PnPPublishingPageLayout
> Add-PnPRoleDefinition
> Add-PnPSiteClassification
> Add-PnPSiteCollectionAdmin
> Add-PnPSiteCollectionAppCatalog
> Add-PnPSiteDesign
> Add-PnPSiteDesignTask
> Add-PnPSiteScript
> Add-PnPStoredCredential
> Add-PnPTaxonomyField
> Add-PnPTeamsChannel
> Add-PnPTeamsTab
> Add-PnPTeamsTeam
> Add-PnPTeamsUser
> Add-PnPTenantCdnOrigin
> Add-PnPTenantSequence
> Add-PnPTenantSequenceSite
> Add-PnPTenantSequenceSubSite
> Add-PnPTenantTheme
> Add-PnPUserToGroup
> Add-PnPView
> Add-PnPWebhookSubscription
> Add-PnPWebPartToWebPartPage
> Add-PnPWebPartToWikiPage
> Add-PnPWikiPage
> Add-PnPWorkflowDefinition
> Add-PnPWorkflowSubscription
68a133,135
> Apply-PnPProvisioningTemplate
> Apply-PnPTenantTemplate
> Approve-PnPTenantServicePrincipalPermissionRequest
76a144,149
> Clear-PnPDefaultColumnValues
> Clear-PnPListItemAsRecord
> Clear-PnPMicrosoft365GroupOwner
> Clear-PnPRecycleBinItem
> Clear-PnPTenantAppCatalogUrl
> Clear-PnPTenantRecycleBinItem
93a167
> Connect-PnPOnline
105a180,181
> Convert-PnPFolderToProvisioningTemplate
> Convert-PnPProvisioningTemplate
109a186
> ConvertTo-PnPClientSidePage
115a193,194
> Copy-PnPFile
> Copy-PnPItemProxy
119a199
> Deny-PnPTenantServicePrincipalPermissionRequest
131a212,218
> Disable-PnPFeature
> Disable-PnPInPlaceRecordsManagementForSite
> Disable-PnPPowerShellTelemetry
> Disable-PnPResponsiveUI
> Disable-PnPSharingForNonOwnersOfSite
> Disable-PnPSiteClassification
> Disable-PnPTenantServicePrincipal
147a235
> Disconnect-PnPOnline
165a254,260
> Enable-PnPCommSite
> Enable-PnPFeature
> Enable-PnPInPlaceRecordsManagementForSite
> Enable-PnPPowerShellTelemetry
> Enable-PnPResponsiveUI
> Enable-PnPSiteClassification
> Enable-PnPTenantServicePrincipal
197a293,297
> Export-PnPClientSidePage
> Export-PnPClientSidePageMapping
> Export-PnPListToProvisioningTemplate
> Export-PnPTaxonomy
> Export-PnPTermGroupToXml
210a311
> Find-PnPFile
573a675,814
> Get-PnPAADUser
> Get-PnPAccessToken
> Get-PnPAlert
> Get-PnPApp
> Get-PnPAppAuthAccessToken
> Get-PnPAppInstance
> Get-PnPApplicationCustomizer
> Get-PnPAuditing
> Get-PnPAuthenticationRealm
> Get-PnPAvailableClientSideComponents
> Get-PnPAvailableLanguage
> Get-PnPAzureCertificate
> Get-PnPClientSideComponent
> Get-PnPClientSidePage
> Get-PnPConnection
> Get-PnPContentType
> Get-PnPContentTypePublishingHubUrl
> Get-PnPContext
> Get-PnPCustomAction
> Get-PnPDefaultColumnValues
> Get-PnPDeletedMicrosoft365Group
> Get-PnPDocumentSetTemplate
> Get-PnPEventReceiver
> Get-PnPException
> Get-PnPFeature
> Get-PnPField
> Get-PnPFile
> Get-PnPFileVersion
> Get-PnPFolder
> Get-PnPFolderItem
> Get-PnPFooter
> Get-PnPGraphAccessToken
> Get-PnPGraphSubscription
> Get-PnPGroup
> Get-PnPGroupMembers
> Get-PnPGroupPermissions
> Get-PnPHealthScore
> Get-PnPHideDefaultThemes
> Get-PnPHomePage
> Get-PnPHomeSite
> Get-PnPHubSite
> Get-PnPHubSiteChild
> Get-PnPIndexedPropertyKeys
> Get-PnPInPlaceRecordsManagement
> Get-PnPIsSiteAliasAvailable
> Get-PnPJavaScriptLink
> Get-PnPKnowledgeHubSite
> Get-PnPLabel
> Get-PnPList
> Get-PnPListInformationRightsManagement
> Get-PnPListItem
> Get-PnPListRecordDeclaration
> Get-PnPManagementApiAccessToken
> Get-PnPMasterPage
> Get-PnPMicrosoft365Group
> Get-PnPMicrosoft365GroupMembers
> Get-PnPMicrosoft365GroupOwners
> Get-PnPNavigationNode
> Get-PnPOffice365CurrentServiceStatus
> Get-PnPOffice365HistoricalServiceStatus
> Get-PnPOffice365ServiceMessage
> Get-PnPOffice365Services
> Get-PnPOfficeManagementApiAccessToken
> Get-PnPOrgAssetsLibrary
> Get-PnPOrgNewsSite
> Get-PnPPowerShellTelemetryEnabled
> Get-PnPProperty
> Get-PnPPropertyBag
> Get-PnPProvisioningTemplate
> Get-PnPPublishingImageRendition
> Get-PnPRecycleBinItem
> Get-PnPRequestAccessEmails
> Get-PnPRoleDefinition
> Get-PnPSearchConfiguration
> Get-PnPSearchCrawlLog
> Get-PnPSearchSettings
> Get-PnPSharingForNonOwnersOfSite
> Get-PnPSite
> Get-PnPSiteClassification
> Get-PnPSiteClosure
> Get-PnPSiteCollectionAdmin
> Get-PnPSiteCollectionTermStore
> Get-PnPSiteDesign
> Get-PnPSiteDesignRights
> Get-PnPSiteDesignRun
> Get-PnPSiteDesignRunStatus
> Get-PnPSiteDesignTask
> Get-PnPSitePolicy
> Get-PnPSiteScript
> Get-PnPSiteScriptFromList
> Get-PnPSiteScriptFromWeb
> Get-PnPSiteSearchQueryResults
> Get-PnPStorageEntity
> Get-PnPStoredCredential
> Get-PnPSubWebs
> Get-PnPTaxonomyItem
> Get-PnPTaxonomySession
> Get-PnPTeamsApp
> Get-PnPTeamsChannel
> Get-PnPTeamsChannelMessage
> Get-PnPTeamsTab
> Get-PnPTeamsTeam
> Get-PnPTeamsUser
> Get-PnPTenant
> Get-PnPTenantAppCatalogUrl
> Get-PnPTenantCdnEnabled
> Get-PnPTenantCdnOrigin
> Get-PnPTenantCdnPolicies
> Get-PnPTenantId
> Get-PnPTenantRecycleBinItem
> Get-PnPTenantSequence
> Get-PnPTenantSequenceSite
> Get-PnPTenantServicePrincipal
> Get-PnPTenantServicePrincipalPermissionGrants
> Get-PnPTenantServicePrincipalPermissionRequests
> Get-PnPTenantSite
> Get-PnPTenantSyncClientRestriction
> Get-PnPTenantTemplate
> Get-PnPTenantTheme
> Get-PnPTerm
> Get-PnPTermGroup
> Get-PnPTermSet
> Get-PnPTheme
> Get-PnPTimeZoneId
> Get-PnPUnifiedAuditLog
> Get-PnPUPABulkImportStatus
> Get-PnPUser
> Get-PnPUserOneDriveQuota
> Get-PnPUserProfileProperty
> Get-PnPView
> Get-PnPWeb
> Get-PnPWebhookSubscriptions
> Get-PnPWebPart
> Get-PnPWebPartProperty
> Get-PnPWebPartXml
> Get-PnPWebTemplates
> Get-PnPWikiPageContent
> Get-PnPWorkflowDefinition
> Get-PnPWorkflowInstance
> Get-PnPWorkflowSubscription
654a896,898
> Grant-PnPHubSiteRights
> Grant-PnPSiteDesignRights
> Grant-PnPTenantServicePrincipalPermission
670a915,918
> Import-PnPAppPackage
> Import-PnPTaxonomy
> Import-PnPTermGroupFromXml
> Import-PnPTermSet
675a924
> Initialize-PnPPowerShellAuthentication
678a928,929
> Install-PnPApp
> Install-PnPSolution
689a941,944
> Invoke-PnPQuery
> Invoke-PnPSiteDesign
> Invoke-PnPSPRestMethod
> Invoke-PnPWebAction
699a955,957
> Measure-PnPList
> Measure-PnPResponseTime
> Measure-PnPWeb
714a973,978
> Move-PnPClientSideComponent
> Move-PnPFile
> Move-PnPFolder
> Move-PnPItemProxy
> Move-PnPListItemToRecycleBin
> Move-PnPRecycleBinItem
858a1123,1148
> New-PnPAzureCertificate
> New-PnPExtensibilityHandlerObject
> New-PnPGraphSubscription
> New-PnPGroup
> New-PnPList
> New-PnPMicrosoft365Group
> New-PnPPersonalSite
> New-PnPProvisioningTemplate
> New-PnPProvisioningTemplateFromFolder
> New-PnPSite
> New-PnPTeamsApp
> New-PnPTeamsTeam
> New-PnPTenantSequence
> New-PnPTenantSequenceCommunicationSite
> New-PnPTenantSequenceTeamNoGroupSite
> New-PnPTenantSequenceTeamNoGroupSubSite
> New-PnPTenantSequenceTeamSite
> New-PnPTenantSite
> New-PnPTenantTemplate
> New-PnPTerm
> New-PnPTermGroup
> New-PnPTermLabel
> New-PnPTermSet
> New-PnPUPABulkImportJob
> New-PnPUser
> New-PnPWeb
903a1194
> Publish-PnPApp
905a1197,1198
> Read-PnPProvisioningTemplate
> Read-PnPTenantTemplate
917a1211,1213
> Register-PnPAppCatalogSite
> Register-PnPHubSite
> Register-PnPManagementShellAccess
1101a1398,1460
> Remove-PnPAlert
> Remove-PnPApp
> Remove-PnPApplicationCustomizer
> Remove-PnPClientSideComponent
> Remove-PnPClientSidePage
> Remove-PnPContentType
> Remove-PnPContentTypeFromDocumentSet
> Remove-PnPContentTypeFromList
> Remove-PnPCustomAction
> Remove-PnPDeletedMicrosoft365Group
> Remove-PnPEventReceiver
> Remove-PnPField
> Remove-PnPFieldFromContentType
> Remove-PnPFile
> Remove-PnPFileFromProvisioningTemplate
> Remove-PnPFileVersion
> Remove-PnPFolder
> Remove-PnPGraphSubscription
> Remove-PnPGroup
> Remove-PnPHomeSite
> Remove-PnPHubSiteAssociation
> Remove-PnPIndexedProperty
> Remove-PnPJavaScriptLink
> Remove-PnPKnowledgeHubSite
> Remove-PnPList
> Remove-PnPListItem
> Remove-PnPMicrosoft365Group
> Remove-PnPMicrosoft365GroupMember
> Remove-PnPMicrosoft365GroupOwner
> Remove-PnPNavigationNode
> Remove-PnPOrgAssetsLibrary
> Remove-PnPOrgNewsSite
> Remove-PnPPropertyBagValue
> Remove-PnPPublishingImageRendition
> Remove-PnPRoleDefinition
> Remove-PnPSearchConfiguration
> Remove-PnPSiteClassification
> Remove-PnPSiteCollectionAdmin
> Remove-PnPSiteCollectionAppCatalog
> Remove-PnPSiteDesign
> Remove-PnPSiteDesignTask
> Remove-PnPSiteScript
> Remove-PnPStorageEntity
> Remove-PnPStoredCredential
> Remove-PnPTaxonomyItem
> Remove-PnPTeamsApp
> Remove-PnPTeamsChannel
> Remove-PnPTeamsTab
> Remove-PnPTeamsTeam
> Remove-PnPTeamsUser
> Remove-PnPTenantCdnOrigin
> Remove-PnPTenantSite
> Remove-PnPTenantTheme
> Remove-PnPTermGroup
> Remove-PnPUser
> Remove-PnPUserFromGroup
> Remove-PnPView
> Remove-PnPWeb
> Remove-PnPWebhookSubscription
> Remove-PnPWebPart
> Remove-PnPWikiPage
> Remove-PnPWorkflowDefinition
> Remove-PnPWorkflowSubscription
1125a1485,1486
> Rename-PnPFile
> Rename-PnPFolder
1129a1491,1493
> Request-PnPAccessToken
> Request-PnPReIndexList
> Request-PnPReIndexWeb
1138a1503,1506
> Reset-PnPFileVersion
> Reset-PnPLabel
> Reset-PnPMicrosoft365GroupExpiration
> Reset-PnPUserOneDriveQuotaToDefault
1142a1511
> Resolve-PnPFolder
1153a1523,1526
> Restore-PnPDeletedMicrosoft365Group
> Restore-PnPFileVersion
> Restore-PnPRecycleBinItem
> Restore-PnPTenantRecycleBinItem
1159a1533
> Resume-PnPWorkflowInstance
1166a1541,1543
> Revoke-PnPHubSiteRights
> Revoke-PnPSiteDesignRights
> Revoke-PnPTenantServicePrincipalPermission
1172a1550,1552
> Save-PnPClientSidePageConversionLog
> Save-PnPProvisioningTemplate
> Save-PnPTenantTemplate
1186a1567
> Send-PnPMail
1368a1750,1824
> Set-PnPApplicationCustomizer
> Set-PnPAppSideLoading
> Set-PnPAuditing
> Set-PnPAvailablePageLayouts
> Set-PnPClientSidePage
> Set-PnPClientSideText
> Set-PnPClientSideWebPart
> Set-PnPContext
> Set-PnPDefaultColumnValues
> Set-PnPDefaultContentTypeToList
> Set-PnPDefaultPageLayout
> Set-PnPDocumentSetField
> Set-PnPField
> Set-PnPFileCheckedIn
> Set-PnPFileCheckedOut
> Set-PnPFolderPermission
> Set-PnPFooter
> Set-PnPGraphSubscription
> Set-PnPGroup
> Set-PnPGroupPermissions
> Set-PnPHideDefaultThemes
> Set-PnPHomePage
> Set-PnPHomeSite
> Set-PnPHubSite
> Set-PnPIndexedProperties
> Set-PnPInPlaceRecordsManagement
> Set-PnPKnowledgeHubSite
> Set-PnPLabel
> Set-PnPList
> Set-PnPListInformationRightsManagement
> Set-PnPListItem
> Set-PnPListItemAsRecord
> Set-PnPListItemPermission
> Set-PnPListPermission
> Set-PnPListRecordDeclaration
> Set-PnPMasterPage
> Set-PnPMicrosoft365Group
> Set-PnPMinimalDownloadStrategy
> Set-PnPPropertyBagValue
> Set-PnPProvisioningTemplateMetadata
> Set-PnPRequestAccessEmails
> Set-PnPSearchConfiguration
> Set-PnPSearchSettings
> Set-PnPSite
> Set-PnPSiteClosure
> Set-PnPSiteDesign
> Set-PnPSitePolicy
> Set-PnPSiteScript
> Set-PnPStorageEntity
> Set-PnPTaxonomyFieldValue
> Set-PnPTeamifyPromptHidden
> Set-PnPTeamsChannel
> Set-PnPTeamsTab
> Set-PnPTeamsTeam
> Set-PnPTeamsTeamArchivedState
> Set-PnPTeamsTeamPicture
> Set-PnPTenant
> Set-PnPTenantAppCatalogUrl
> Set-PnPTenantCdnEnabled
> Set-PnPTenantCdnPolicy
> Set-PnPTenantSite
> Set-PnPTenantSyncClientRestriction
> Set-PnPTermGroup
> Set-PnPTermSet
> Set-PnPTheme
> Set-PnPTraceLog
> Set-PnPUserOneDriveQuota
> Set-PnPUserProfileProperty
> Set-PnPView
> Set-PnPWeb
> Set-PnPWebhookSubscription
> Set-PnPWebPartProperty
> Set-PnPWebPermission
> Set-PnPWebTheme
> Set-PnPWikiPageContent
1445a1902
> Start-PnPWorkflowInstance
1469a1927
> Stop-PnPWorkflowInstance
1473a1932,1933
> Submit-PnPSearchQuery
> Submit-PnPTeamsChannelMessage
1481a1942
> Sync-PnPAppToTeams
1495a1957,1959
> Test-PnPListItemIsRecord
> Test-PnPOffice365GroupAliasIsUsed
> Test-PnPTenantTemplate
1504a1969,1971
> Uninstall-PnPApp
> Uninstall-PnPAppInstance
> Uninstall-PnPSolution
1508a1976
> Unpublish-PnPApp
1511a1980
> Unregister-PnPHubSite
1528a1998,2000
> Update-PnPApp
> Update-PnPSiteClassification
> Update-PnPTeamsApp
$

  • PnPという名前らしい.

SharePoint Online 管理シェル

  • こんなもの.
    • SharePoint Online 管理シェルを使用して作業を開始する
      • https://docs.microsoft.com/ja-jp/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps
      • PowerShell を使用して SharePoint Online を管理するには、SharePoint Online 管理シェルをインストールし、SharePoint Online に接続する必要があります。
  • インストールを実行.


PS C:\WINDOWS\system32> Install-Module Microsoft.Online.SharePoint.PowerShell🆑
PS C:\WINDOWS\system32> Get-Command -CommandType Cmdlet | Select-Object Name > 7.txt
PS C:\WINDOWS\system32>

  • 差分を確認.


$ diff 6.txt 7.txt🆑
127a128,143
> Add-SPOGeoAdministrator
> Add-SPOHubSiteAssociation
> Add-SPOHubToHubAssociation
> Add-SPOListDesign
> Add-SPOOrgAssetsLibrary
> Add-SPOSiteCollectionAppCatalog
> Add-SPOSiteDesign
> Add-SPOSiteDesignTask
> Add-SPOSiteScript
> Add-SPOSiteScriptPackage
> Add-SPOTenantCdnOrigin
> Add-SPOTenantIdentityMap
> Add-SPOTenantIdentityMappingGroup
> Add-SPOTenantIdentityMappingUser
> Add-SPOTheme
> Add-SPOUser
135a152,153
> Approve-SPOTenantServicePrincipalPermissionGrant
> Approve-SPOTenantServicePrincipalPermissionRequest
168a187
> Connect-SPOService
188a208,209
> ConvertTo-SPOMigrationEncryptedPackage
> ConvertTo-SPOMigrationTargetedPackage
199a221
> Deny-SPOTenantServicePrincipalPermissionRequest
223a246
> Disable-SPOTenantServicePrincipal
236a260
> Disconnect-SPOService
265a290,291
> Enable-SPOCommSite
> Enable-SPOTenantServicePrincipal
299a326,328
> Export-SPOQueryLogs
> Export-SPOUserInfo
> Export-SPOUserProfile
609a639
> Get-FileSensitivityLabelInfo
836a867,942
> Get-SPOAppErrors
> Get-SPOAppInfo
> Get-SPOBrowserIdleSignOut
> Get-SPOBuiltInDesignPackageVisibility
> Get-SPOCrossGeoMovedUsers
> Get-SPOCrossGeoMoveReport
> Get-SPOCrossGeoUsers
> Get-SPOCrossTenantGroupContentMoveState
> Get-SPOCrossTenantHostUrl
> Get-SPOCrossTenantRelationship
> Get-SPOCrossTenantRelationshipByPartner
> Get-SPOCrossTenantRelationshipByScenario
> Get-SPOCrossTenantSiteContentMoveState
> Get-SPOCrossTenantUserContentMoveState
> Get-SPODataEncryptionPolicy
> Get-SPODeletedSite
> Get-SPODisableSpacesActivation
> Get-SPOExternalUser
> Get-SPOGeoAdministrator
> Get-SPOGeoMoveCrossCompatibilityStatus
> Get-SPOGeoStorageQuota
> Get-SPOHideDefaultThemes
> Get-SPOHomeSite
> Get-SPOHubSite
> Get-SPOInformationBarriersPolicyComplianceReport
> Get-SPOIsCommSite
> Get-SPOKnowledgeHubSite
> Get-SPOListDesign
> Get-SPOMigrationJobProgress
> Get-SPOMigrationJobStatus
> Get-SPOMultiGeoCompanyAllowedDataLocation
> Get-SPOMultiGeoExperience
> Get-SPOOrgAssetsLibrary
> Get-SPOOrgNewsSite
> Get-SPOPortalLaunchWaves
> Get-SPOPublicCdnOrigins
> Get-SPOSite
> Get-SPOSiteCollectionAppCatalogs
> Get-SPOSiteContentMoveState
> Get-SPOSiteDataEncryptionPolicy
> Get-SPOSiteDesign
> Get-SPOSiteDesignRights
> Get-SPOSiteDesignRun
> Get-SPOSiteDesignRunStatus
> Get-SPOSiteDesignTask
> Get-SPOSiteGroup
> Get-SPOSiteRenameState
> Get-SPOSiteScript
> Get-SPOSiteScriptFromList
> Get-SPOSiteScriptFromWeb
> Get-SPOSiteUserInvitations
> Get-SPOStorageEntity
> Get-SPOStructuralNavigationCacheSiteState
> Get-SPOStructuralNavigationCacheWebState
> Get-SPOTemporarilyDisableAppBar
> Get-SPOTenant
> Get-SPOTenantCdnEnabled
> Get-SPOTenantCdnOrigins
> Get-SPOTenantCdnPolicies
> Get-SPOTenantContentTypeReplicationParameters
> Get-SPOTenantIdentityMappingGroup
> Get-SPOTenantIdentityMappingUser
> Get-SPOTenantLogEntry
> Get-SPOTenantLogLastAvailableTimeInUtc
> Get-SPOTenantRenameStatus
> Get-SPOTenantServicePrincipalPermissionGrants
> Get-SPOTenantServicePrincipalPermissionRequests
> Get-SPOTenantSyncClientRestriction
> Get-SPOTenantTaxonomyReplicationParameters
> Get-SPOTheme
> Get-SPOUnifiedGroup
> Get-SPOUnifiedGroupMoveState
> Get-SPOUser
> Get-SPOUserAndContentMoveState
> Get-SPOUserOneDriveLocation
> Get-SPOWebTemplate
898a1005,1006
> Grant-SPOHubSiteRights
> Grant-SPOSiteDesignRights
945a1054,1056
> Invoke-SPOMigrationEncryptUploadSubmit
> Invoke-SPOSiteDesign
> Invoke-SPOSiteSwap
1159a1271,1278
> New-SPOMigrationEncryptionParameters
> New-SPOMigrationPackage
> New-SPOPortalLaunchWaves
> New-SPOPublicCdnOrigin
> New-SPOSdnProvider
> New-SPOSite
> New-SPOSiteGroup
> New-SPOSiteSharingReportJob
1215a1335,1336
> Register-SPODataEncryptionPolicy
> Register-SPOHubSite
1465a1587,1621
> Remove-SPOCrossTenantRelationship
> Remove-SPODeletedSite
> Remove-SPOExternalUser
> Remove-SPOGeoAdministrator
> Remove-SPOHomeSite
> Remove-SPOHubSiteAssociation
> Remove-SPOHubToHubAssociation
> Remove-SPOInformationBarriersPolicyComplianceReport
> Remove-SPOKnowledgeHubSite
> Remove-SPOListDesign
> Remove-SPOMigrationJob
> Remove-SPOMultiGeoCompanyAllowedDataLocation
> Remove-SPOOrgAssetsLibrary
> Remove-SPOOrgNewsSite
> Remove-SPOPortalLaunchWaves
> Remove-SPOPublicCdnOrigin
> Remove-SPOSdnProvider
> Remove-SPOSite
> Remove-SPOSiteCollectionAppCatalog
> Remove-SPOSiteCollectionAppCatalogById
> Remove-SPOSiteDesign
> Remove-SPOSiteDesignTask
> Remove-SPOSiteGroup
> Remove-SPOSiteScript
> Remove-SPOSiteSharingReportJob
> Remove-SPOSiteUserInvitations
> Remove-SPOStorageEntity
> Remove-SPOTenantCdnOrigin
> Remove-SPOTenantIdentityMappingGroup
> Remove-SPOTenantIdentityMappingUser
> Remove-SPOTenantSyncClientRestriction
> Remove-SPOTheme
> Remove-SPOUser
> Remove-SPOUserInfo
> Remove-SPOUserProfile
1488a1645
> Repair-SPOSite
1493a1651,1652
> Request-SPOPersonalSite
> Request-SPOUpgradeEvaluationSite
1526a1686,1687
> Restore-SPODataEncryptionPolicy
> Restore-SPODeletedSite
1543a1705,1708
> Revoke-SPOHubSiteRights
> Revoke-SPOSiteDesignRights
> Revoke-SPOTenantServicePrincipalPermission
> Revoke-SPOUserSession
1835a2001,2034
> Set-SPOBrowserIdleSignOut
> Set-SPOBuiltInDesignPackageVisibility
> Set-SPOCrossTenantRelationship
> Set-SPODisableSpacesActivation
> Set-SPOGeoStorageQuota
> Set-SPOHideDefaultThemes
> Set-SPOHomeSite
> Set-SPOHubSite
> Set-SPOKnowledgeHubSite
> Set-SPOMigrationPackageAzureSource
> Set-SPOMultiGeoCompanyAllowedDataLocation
> Set-SPOMultiGeoExperience
> Set-SPOOrgAssetsLibrary
> Set-SPOOrgNewsSite
> Set-SPOPortalLaunchWaves
> Set-SPOSite
> Set-SPOSiteDesign
> Set-SPOSiteGroup
> Set-SPOSiteOffice365Group
> Set-SPOSiteScript
> Set-SPOSiteScriptPackage
> Set-SPOStorageEntity
> Set-SPOStructuralNavigationCacheSiteState
> Set-SPOStructuralNavigationCacheWebState
> Set-SPOTemporarilyDisableAppBar
> Set-SPOTenant
> Set-SPOTenantCdnEnabled
> Set-SPOTenantCdnPolicy
> Set-SPOTenantContentTypeReplicationParameters
> Set-SPOTenantSyncClientRestriction
> Set-SPOTenantTaxonomyReplicationParameters
> Set-SPOUnifiedGroup
> Set-SPOUser
> Set-SPOWebTheme
1905a2105,2113
> Start-SPOCrossTenantGroupContentMove
> Start-SPOCrossTenantSiteContentMove
> Start-SPOCrossTenantUserContentMove
> Start-SPOInformationBarriersPolicyComplianceReport
> Start-SPOSiteContentMove
> Start-SPOSiteRename
> Start-SPOTenantRename
> Start-SPOUnifiedGroupMove
> Start-SPOUserAndContentMove
1929a2138,2142
> Stop-SPOCrossTenantGroupContentMove
> Stop-SPOCrossTenantSiteContentMove
> Stop-SPOCrossTenantUserContentMove
> Stop-SPOSiteContentMove
> Stop-SPOUserAndContentMove
1933a2147
> Submit-SPOMigrationJob
1960a2175
> Test-SPOSite
1973a2189
> Unlock-SPOSensitivityLabelEncryptedFile
1982a2199
> Unregister-SPOHubSite
2000a2218
> Update-SPODataEncryptionPolicy
2002a2221
> Update-UserType
2003a2223
> Upgrade-SPOSite
2006a2227
> Verify-SPOCrossTenantRelationship
$

  • SPOらしい.

インストールされているパッケージの一覧

  • これまでにインストールしたPowerShellパッケージの一覧を表示.


PS C:\WINDOWS\system32> Get-Package🆑

Name                           Version          Source                           ProviderName
----                           -------          ------                           ------------
7-Zip 20.00 alpha (x64)        20.00 alpha                                       Programs
Android Studio                 3.6                                               Programs
GIMP 2.10.14                   2.10.14                                           Programs
Office 16 Click-to-Run Exte... 16.0.13801.20274                                  msi
Git version 2.30.1             2.30.1                                            Programs
Office 16 Click-to-Run Loca... 16.0.13801.20360                                  msi
Office 16 Click-to-Run Exte... 16.0.13801.20274                                  msi
Office 16 Click-to-Run Lice... 16.0.13801.20360                                  msi

〜略〜


Microsoft Visual C++ 2015-2... 14.25.28508.3                                     Programs
BTup Service                   2.0.1000.0                                        Programs
System Interface Manager       14.0.1000.100                                     Programs
画面分割ユーティリティ         1.2.1500.0                                        Programs
バッテリー残量表示補正ユー...  3.3.1100.0                                        Programs
Hotkey 設 定                    3.0.1300.0                                        Programs
Intel(R) Processor Graphics    20.19.15.4549                                     Programs
Realtek High Definition Aud... 6.0.1.7811                                        Programs
Azure                          5.3.1            https://www.powershellgallery... PowerShellGet🈁
AzureAD                        2.0.2.130        https://www.powershellgallery... PowerShellGet🈁
ExchangeOnlineManagement       2.0.4            https://www.powershellgallery... PowerShellGet🈁
Microsoft.Online.SharePoint... 16.0.21116.12000 https://www.powershellgallery... PowerShellGet🈁
MSOnline                       1.1.183.57       https://www.powershellgallery... PowerShellGet🈁
SharePointPnPPowerShellOnline  3.29.2101.0      https://www.powershellgallery... PowerShellGet🈁

PS C:\WINDOWS\system32>

  • 普通のEXEファイルもリストに出ている模様.

広告スペース
Google