UJP - 技術情報1

Life is fun and easy!

不正IP報告数

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

PowerShell 7.1.3 on Mojave

PowerShell 7.1.3 on Mojave


更新履歴

  • 2021.04.20

はじめに

  • このドキュメントでは,PowerShell 7.1.3をmacOSにインストールして使えることを確認する.
  • 利用したのは,macOS Mojave.
  • DNSの接続先としては,以下を使っている模様.
    • powershellgallerytrafficmanager.trafficmanager.net
    • psg-prod-centralus.cloudapp.net
    • psg-prod-eastus.azureedge.net

パッケージを確認しインストールする

  • パッケージを探す確認する.


$ brew search powershell🆑
==> Casks
powershell🈁                                    homebrew/cask-versions/powershell-preview
$

  • パッケージの詳細を確認する.


$ brew info powershell🆑
powershell: 7.1.3
https://github.com/PowerShell/PowerShell
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/powershell.rb
==> Name
PowerShell
==> Description
Command-line shell and scripting language
==> Artifacts
powershell-7.1.3-osx-x64.pkg (Pkg)
==> Analytics
install: 7,320 (30 days), 23,581 (90 days), 84,041 (365 days)
$

  • 1ヶ月に7320回も入っている.なんと.
  • インストールする.


$ brew install powershell🆑
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 10 formulae.
==> Updated Casks
Updated 3 casks.

==> Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershe
==> Downloading from https://github-releases.githubusercontent.com/49609581/8aba0580-827a-
######################################################################## 100.0%
==> Installing Cask powershell
==> Running installer for powershell; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
Password:
installer: Package name is PowerShell - 7.1.3
installer: Installing at base path /
installer: The install was successful.
🍺  powershell was successfully installed!
$

  • githubからダウンロードされている.
  • インストールされたモジュールを確認.

$ which powershell🆑
$
$ which pwsh🆑
/usr/local/bin/pwsh
$
$ pwsh -v🆑
PowerShell 7.1.3
$
  • インストールが確認できた.

pwshを使う

  • 簡単なコマンドを実行する.


$ pwsh🆑
PowerShell 7.1.3
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS /Users/ujpadmin>

  • コマンド一覧を取得.


PS /Users/ujpadmin> Get-Command🆑

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        cd..
Function        cd\
Function        Clear-Host
Function        Compress-Archive                                   1.2.5      Microsoft.…
Function        Configuration                                      2.0.5      PSDesiredS…
Function        Expand-Archive                                     1.2.5      Microsoft.…
Function        Find-Command                                       2.2.5      PowerShell…
Function        Find-DSCResource                                   2.2.5      PowerShell…
Function        Find-Module                                        2.2.5      PowerShell…
Function        Find-RoleCapability                                2.2.5      PowerShell…
Function        Find-Script                                        2.2.5      PowerShell…
Function        Get-CredsFromCredentialProvider                    2.2.5      PowerShell…
Function        Get-DscResource                                    2.0.5      PSDesiredS…
Function        Get-InstalledModule                                2.2.5      PowerShell…
Function        Get-InstalledScript                                2.2.5      PowerShell…
Function        Get-PSRepository                                   2.2.5      PowerShell…
Function        help
Function        Install-Module                                     2.2.5      PowerShell…
Function        Install-Script                                     2.2.5      PowerShell…
Function        Invoke-DscResource                                 2.0.5      PSDesiredS…
Function        New-DscChecksum                                    2.0.5      PSDesiredS…
Function        New-ScriptFileInfo                                 2.2.5      PowerShell…
Function        oss
Function        Pause
Function        prompt
Function        PSConsoleHostReadLine                              2.1.0      PSReadLine
Function        Publish-Module                                     2.2.5      PowerShell…
Function        Publish-Script                                     2.2.5      PowerShell…
Function        Register-PSRepository                              2.2.5      PowerShell…
Function        Save-Module                                        2.2.5      PowerShell…
Function        Save-Script                                        2.2.5      PowerShell…
Function        Set-PSRepository                                   2.2.5      PowerShell…
Function        TabExpansion2
Function        Test-ScriptFileInfo                                2.2.5      PowerShell…
Function        Uninstall-Module                                   2.2.5      PowerShell…
Function        Uninstall-Script                                   2.2.5      PowerShell…
Function        Unregister-PSRepository                            2.2.5      PowerShell…
Function        Update-Module                                      2.2.5      PowerShell…
Function        Update-ModuleManifest                              2.2.5      PowerShell…
Function        Update-Script                                      2.2.5      PowerShell…
Function        Update-ScriptFileInfo                              2.2.5      PowerShell…
Cmdlet          Add-Content                                        7.0.0.0    Microsoft.…
Cmdlet          Add-History                                        7.1.3.0    Microsoft.…
Cmdlet          Add-Member                                         7.0.0.0    Microsoft.…
Cmdlet          Add-Type                                           7.0.0.0    Microsoft.…
Cmdlet          Clear-Content                                      7.0.0.0    Microsoft.…
Cmdlet          Clear-History                                      7.1.3.0    Microsoft.…
Cmdlet          Clear-Item                                         7.0.0.0    Microsoft.…
Cmdlet          Clear-ItemProperty                                 7.0.0.0    Microsoft.…
Cmdlet          Clear-Variable                                     7.0.0.0    Microsoft.…
Cmdlet          Compare-Object                                     7.0.0.0    Microsoft.…
Cmdlet          Convert-Path                                       7.0.0.0    Microsoft.…
Cmdlet          ConvertFrom-Csv                                    7.0.0.0    Microsoft.…
Cmdlet          ConvertFrom-Json                                   7.0.0.0    Microsoft.…
Cmdlet          ConvertFrom-Markdown                               7.0.0.0    Microsoft.…
Cmdlet          ConvertFrom-SecureString                           7.0.0.0    Microsoft.…
Cmdlet          ConvertFrom-StringData                             7.0.0.0    Microsoft.…
Cmdlet          ConvertTo-Csv                                      7.0.0.0    Microsoft.…
Cmdlet          ConvertTo-Html                                     7.0.0.0    Microsoft.…
Cmdlet          ConvertTo-Json                                     7.0.0.0    Microsoft.…
Cmdlet          ConvertTo-SecureString                             7.0.0.0    Microsoft.…
Cmdlet          ConvertTo-Xml                                      7.0.0.0    Microsoft.…
Cmdlet          Copy-Item                                          7.0.0.0    Microsoft.…
Cmdlet          Copy-ItemProperty                                  7.0.0.0    Microsoft.…
Cmdlet          Debug-Job                                          7.1.3.0    Microsoft.…
Cmdlet          Debug-Process                                      7.0.0.0    Microsoft.…
Cmdlet          Debug-Runspace                                     7.0.0.0    Microsoft.…
Cmdlet          Disable-ExperimentalFeature                        7.1.3.0    Microsoft.…
Cmdlet          Disable-PSBreakpoint                               7.0.0.0    Microsoft.…
Cmdlet          Disable-RunspaceDebug                              7.0.0.0    Microsoft.…
Cmdlet          Enable-ExperimentalFeature                         7.1.3.0    Microsoft.…
Cmdlet          Enable-PSBreakpoint                                7.0.0.0    Microsoft.…
Cmdlet          Enable-RunspaceDebug                               7.0.0.0    Microsoft.…
Cmdlet          Enter-PSHostProcess                                7.1.3.0    Microsoft.…
Cmdlet          Enter-PSSession                                    7.1.3.0    Microsoft.…
Cmdlet          Exit-PSHostProcess                                 7.1.3.0    Microsoft.…
Cmdlet          Exit-PSSession                                     7.1.3.0    Microsoft.…
Cmdlet          Export-Alias                                       7.0.0.0    Microsoft.…
Cmdlet          Export-Clixml                                      7.0.0.0    Microsoft.…
Cmdlet          Export-Csv                                         7.0.0.0    Microsoft.…
Cmdlet          Export-FormatData                                  7.0.0.0    Microsoft.…
Cmdlet          Export-ModuleMember                                7.1.3.0    Microsoft.…
Cmdlet          Export-PSSession                                   7.0.0.0    Microsoft.…
Cmdlet          Find-Package                                       1.4.7      PackageMan…
Cmdlet          Find-PackageProvider                               1.4.7      PackageMan…
Cmdlet          ForEach-Object                                     7.1.3.0    Microsoft.…
Cmdlet          Format-Custom                                      7.0.0.0    Microsoft.…
Cmdlet          Format-Hex                                         7.0.0.0    Microsoft.…
Cmdlet          Format-List                                        7.0.0.0    Microsoft.…
Cmdlet          Format-Table                                       7.0.0.0    Microsoft.…
Cmdlet          Format-Wide                                        7.0.0.0    Microsoft.…
Cmdlet          Get-Alias                                          7.0.0.0    Microsoft.…
Cmdlet          Get-ChildItem                                      7.0.0.0    Microsoft.…
Cmdlet          Get-Clipboard                                      7.0.0.0    Microsoft.…
Cmdlet          Get-CmsMessage                                     7.0.0.0    Microsoft.…
Cmdlet          Get-Command                                        7.1.3.0    Microsoft.…
Cmdlet          Get-Content                                        7.0.0.0    Microsoft.…
Cmdlet          Get-Credential                                     7.0.0.0    Microsoft.…
Cmdlet          Get-Culture                                        7.0.0.0    Microsoft.…
Cmdlet          Get-Date                                           7.0.0.0    Microsoft.…
Cmdlet          Get-Error                                          7.0.0.0    Microsoft.…
Cmdlet          Get-Event                                          7.0.0.0    Microsoft.…
Cmdlet          Get-EventSubscriber                                7.0.0.0    Microsoft.…
Cmdlet          Get-ExecutionPolicy                                7.0.0.0    Microsoft.…
Cmdlet          Get-ExperimentalFeature                            7.1.3.0    Microsoft.…
Cmdlet          Get-FileHash                                       7.0.0.0    Microsoft.…
Cmdlet          Get-FormatData                                     7.0.0.0    Microsoft.…
Cmdlet          Get-Help                                           7.1.3.0    Microsoft.…
Cmdlet          Get-History                                        7.1.3.0    Microsoft.…
Cmdlet          Get-Host                                           7.0.0.0    Microsoft.…
Cmdlet          Get-Item                                           7.0.0.0    Microsoft.…
Cmdlet          Get-ItemProperty                                   7.0.0.0    Microsoft.…
Cmdlet          Get-ItemPropertyValue                              7.0.0.0    Microsoft.…
Cmdlet          Get-Job                                            7.1.3.0    Microsoft.…
Cmdlet          Get-Location                                       7.0.0.0    Microsoft.…
Cmdlet          Get-MarkdownOption                                 7.0.0.0    Microsoft.…
Cmdlet          Get-Member                                         7.0.0.0    Microsoft.…
Cmdlet          Get-Module                                         7.1.3.0    Microsoft.…
Cmdlet          Get-Package                                        1.4.7      PackageMan…
Cmdlet          Get-PackageProvider                                1.4.7      PackageMan…
Cmdlet          Get-PackageSource                                  1.4.7      PackageMan…
Cmdlet          Get-PfxCertificate                                 7.0.0.0    Microsoft.…
Cmdlet          Get-Process                                        7.0.0.0    Microsoft.…
Cmdlet          Get-PSBreakpoint                                   7.0.0.0    Microsoft.…
Cmdlet          Get-PSCallStack                                    7.0.0.0    Microsoft.…
Cmdlet          Get-PSDrive                                        7.0.0.0    Microsoft.…
Cmdlet          Get-PSHostProcessInfo                              7.1.3.0    Microsoft.…
Cmdlet          Get-PSProvider                                     7.0.0.0    Microsoft.…
Cmdlet          Get-PSReadLineKeyHandler                           2.1.0      PSReadLine
Cmdlet          Get-PSReadLineOption                               2.1.0      PSReadLine
Cmdlet          Get-PSSession                                      7.1.3.0    Microsoft.…
Cmdlet          Get-Random                                         7.0.0.0    Microsoft.…
Cmdlet          Get-Runspace                                       7.0.0.0    Microsoft.…
Cmdlet          Get-RunspaceDebug                                  7.0.0.0    Microsoft.…
Cmdlet          Get-TimeZone                                       7.0.0.0    Microsoft.…
Cmdlet          Get-TraceSource                                    7.0.0.0    Microsoft.…
Cmdlet          Get-TypeData                                       7.0.0.0    Microsoft.…
Cmdlet          Get-UICulture                                      7.0.0.0    Microsoft.…
Cmdlet          Get-Unique                                         7.0.0.0    Microsoft.…
Cmdlet          Get-Uptime                                         7.0.0.0    Microsoft.…
Cmdlet          Get-Variable                                       7.0.0.0    Microsoft.…
Cmdlet          Get-Verb                                           7.0.0.0    Microsoft.…
Cmdlet          Group-Object                                       7.0.0.0    Microsoft.…
Cmdlet          Import-Alias                                       7.0.0.0    Microsoft.…
Cmdlet          Import-Clixml                                      7.0.0.0    Microsoft.…
Cmdlet          Import-Csv                                         7.0.0.0    Microsoft.…
Cmdlet          Import-LocalizedData                               7.0.0.0    Microsoft.…
Cmdlet          Import-Module                                      7.1.3.0    Microsoft.…
Cmdlet          Import-PackageProvider                             1.4.7      PackageMan…
Cmdlet          Import-PowerShellDataFile                          7.0.0.0    Microsoft.…
Cmdlet          Import-PSSession                                   7.0.0.0    Microsoft.…
Cmdlet          Install-Package                                    1.4.7      PackageMan…
Cmdlet          Install-PackageProvider                            1.4.7      PackageMan…
Cmdlet          Invoke-Command                                     7.1.3.0    Microsoft.…
Cmdlet          Invoke-Expression                                  7.0.0.0    Microsoft.…
Cmdlet          Invoke-History                                     7.1.3.0    Microsoft.…
Cmdlet          Invoke-Item                                        7.0.0.0    Microsoft.…
Cmdlet          Invoke-RestMethod                                  7.0.0.0    Microsoft.…
Cmdlet          Invoke-WebRequest                                  7.0.0.0    Microsoft.…
Cmdlet          Join-Path                                          7.0.0.0    Microsoft.…
Cmdlet          Join-String                                        7.0.0.0    Microsoft.…
Cmdlet          Measure-Command                                    7.0.0.0    Microsoft.…
Cmdlet          Measure-Object                                     7.0.0.0    Microsoft.…
Cmdlet          Move-Item                                          7.0.0.0    Microsoft.…
Cmdlet          Move-ItemProperty                                  7.0.0.0    Microsoft.…
Cmdlet          New-Alias                                          7.0.0.0    Microsoft.…
Cmdlet          New-Event                                          7.0.0.0    Microsoft.…
Cmdlet          New-Guid                                           7.0.0.0    Microsoft.…
Cmdlet          New-Item                                           7.0.0.0    Microsoft.…
Cmdlet          New-ItemProperty                                   7.0.0.0    Microsoft.…
Cmdlet          New-Module                                         7.1.3.0    Microsoft.…
Cmdlet          New-ModuleManifest                                 7.1.3.0    Microsoft.…
Cmdlet          New-Object                                         7.0.0.0    Microsoft.…
Cmdlet          New-PSDrive                                        7.0.0.0    Microsoft.…
Cmdlet          New-PSRoleCapabilityFile                           7.1.3.0    Microsoft.…
Cmdlet          New-PSSession                                      7.1.3.0    Microsoft.…
Cmdlet          New-PSSessionOption                                7.1.3.0    Microsoft.…
Cmdlet          New-PSTransportOption                              7.1.3.0    Microsoft.…
Cmdlet          New-TemporaryFile                                  7.0.0.0    Microsoft.…
Cmdlet          New-TimeSpan                                       7.0.0.0    Microsoft.…
Cmdlet          New-Variable                                       7.0.0.0    Microsoft.…
Cmdlet          Out-Default                                        7.1.3.0    Microsoft.…
Cmdlet          Out-File                                           7.0.0.0    Microsoft.…
Cmdlet          Out-Host                                           7.1.3.0    Microsoft.…
Cmdlet          Out-Null                                           7.1.3.0    Microsoft.…
Cmdlet          Out-String                                         7.0.0.0    Microsoft.…
Cmdlet          Pop-Location                                       7.0.0.0    Microsoft.…
Cmdlet          Protect-CmsMessage                                 7.0.0.0    Microsoft.…
Cmdlet          Push-Location                                      7.0.0.0    Microsoft.…
Cmdlet          Read-Host                                          7.0.0.0    Microsoft.…
Cmdlet          Receive-Job                                        7.1.3.0    Microsoft.…
Cmdlet          Register-ArgumentCompleter                         7.1.3.0    Microsoft.…
Cmdlet          Register-EngineEvent                               7.0.0.0    Microsoft.…
Cmdlet          Register-ObjectEvent                               7.0.0.0    Microsoft.…
Cmdlet          Register-PackageSource                             1.4.7      PackageMan…
Cmdlet          Remove-Alias                                       7.0.0.0    Microsoft.…
Cmdlet          Remove-Event                                       7.0.0.0    Microsoft.…
Cmdlet          Remove-Item                                        7.0.0.0    Microsoft.…
Cmdlet          Remove-ItemProperty                                7.0.0.0    Microsoft.…
Cmdlet          Remove-Job                                         7.1.3.0    Microsoft.…
Cmdlet          Remove-Module                                      7.1.3.0    Microsoft.…
Cmdlet          Remove-PSBreakpoint                                7.0.0.0    Microsoft.…
Cmdlet          Remove-PSDrive                                     7.0.0.0    Microsoft.…
Cmdlet          Remove-PSReadLineKeyHandler                        2.1.0      PSReadLine
Cmdlet          Remove-PSSession                                   7.1.3.0    Microsoft.…
Cmdlet          Remove-TypeData                                    7.0.0.0    Microsoft.…
Cmdlet          Remove-Variable                                    7.0.0.0    Microsoft.…
Cmdlet          Rename-Item                                        7.0.0.0    Microsoft.…
Cmdlet          Rename-ItemProperty                                7.0.0.0    Microsoft.…
Cmdlet          Resolve-Path                                       7.0.0.0    Microsoft.…
Cmdlet          Restart-Computer                                   7.0.0.0    Microsoft.…
Cmdlet          Save-Help                                          7.1.3.0    Microsoft.…
Cmdlet          Save-Package                                       1.4.7      PackageMan…
Cmdlet          Select-Object                                      7.0.0.0    Microsoft.…
Cmdlet          Select-String                                      7.0.0.0    Microsoft.…
Cmdlet          Select-Xml                                         7.0.0.0    Microsoft.…
Cmdlet          Send-MailMessage                                   7.0.0.0    Microsoft.…
Cmdlet          Set-Alias                                          7.0.0.0    Microsoft.…
Cmdlet          Set-Clipboard                                      7.0.0.0    Microsoft.…
Cmdlet          Set-Content                                        7.0.0.0    Microsoft.…
Cmdlet          Set-Date                                           7.0.0.0    Microsoft.…
Cmdlet          Set-ExecutionPolicy                                7.0.0.0    Microsoft.…
Cmdlet          Set-Item                                           7.0.0.0    Microsoft.…
Cmdlet          Set-ItemProperty                                   7.0.0.0    Microsoft.…
Cmdlet          Set-Location                                       7.0.0.0    Microsoft.…
Cmdlet          Set-MarkdownOption                                 7.0.0.0    Microsoft.…
Cmdlet          Set-PackageSource                                  1.4.7      PackageMan…
Cmdlet          Set-PSBreakpoint                                   7.0.0.0    Microsoft.…
Cmdlet          Set-PSDebug                                        7.1.3.0    Microsoft.…
Cmdlet          Set-PSReadLineKeyHandler                           2.1.0      PSReadLine
Cmdlet          Set-PSReadLineOption                               2.1.0      PSReadLine
Cmdlet          Set-StrictMode                                     7.1.3.0    Microsoft.…
Cmdlet          Set-TraceSource                                    7.0.0.0    Microsoft.…
Cmdlet          Set-Variable                                       7.0.0.0    Microsoft.…
Cmdlet          Show-Markdown                                      7.0.0.0    Microsoft.…
Cmdlet          Sort-Object                                        7.0.0.0    Microsoft.…
Cmdlet          Split-Path                                         7.0.0.0    Microsoft.…
Cmdlet          Start-Job                                          7.1.3.0    Microsoft.…
Cmdlet          Start-Process                                      7.0.0.0    Microsoft.…
Cmdlet          Start-Sleep                                        7.0.0.0    Microsoft.…
Cmdlet          Start-ThreadJob                                    2.0.3      ThreadJob
Cmdlet          Start-Transcript                                   7.0.0.0    Microsoft.…
Cmdlet          Stop-Computer                                      7.0.0.0    Microsoft.…
Cmdlet          Stop-Job                                           7.1.3.0    Microsoft.…
Cmdlet          Stop-Process                                       7.0.0.0    Microsoft.…
Cmdlet          Stop-Transcript                                    7.0.0.0    Microsoft.…
Cmdlet          Tee-Object                                         7.0.0.0    Microsoft.…
Cmdlet          Test-Connection                                    7.0.0.0    Microsoft.…
Cmdlet          Test-Json                                          7.0.0.0    Microsoft.…
Cmdlet          Test-ModuleManifest                                7.1.3.0    Microsoft.…
Cmdlet          Test-Path                                          7.0.0.0    Microsoft.…
Cmdlet          Trace-Command                                      7.0.0.0    Microsoft.…
Cmdlet          Unblock-File                                       7.0.0.0    Microsoft.…
Cmdlet          Uninstall-Package                                  1.4.7      PackageMan…
Cmdlet          Unprotect-CmsMessage                               7.0.0.0    Microsoft.…
Cmdlet          Unregister-Event                                   7.0.0.0    Microsoft.…
Cmdlet          Unregister-PackageSource                           1.4.7      PackageMan…
Cmdlet          Update-FormatData                                  7.0.0.0    Microsoft.…
Cmdlet          Update-Help                                        7.1.3.0    Microsoft.…
Cmdlet          Update-List                                        7.0.0.0    Microsoft.…
Cmdlet          Update-TypeData                                    7.0.0.0    Microsoft.…
Cmdlet          Wait-Debugger                                      7.0.0.0    Microsoft.…
Cmdlet          Wait-Event                                         7.0.0.0    Microsoft.…
Cmdlet          Wait-Job                                           7.1.3.0    Microsoft.…
Cmdlet          Wait-Process                                       7.0.0.0    Microsoft.…
Cmdlet          Where-Object                                       7.1.3.0    Microsoft.…
Cmdlet          Write-Debug                                        7.0.0.0    Microsoft.…
Cmdlet          Write-Error                                        7.0.0.0    Microsoft.…
Cmdlet          Write-Host                                         7.0.0.0    Microsoft.…
Cmdlet          Write-Information                                  7.0.0.0    Microsoft.…
Cmdlet          Write-Output                                       7.0.0.0    Microsoft.…
Cmdlet          Write-Progress                                     7.0.0.0    Microsoft.…
Cmdlet          Write-Verbose                                      7.0.0.0    Microsoft.…
Cmdlet          Write-Warning                                      7.0.0.0    Microsoft.…

PS /Users/ujpadmin>

  • Windows版と同等程度入っている模様.

パッケージプロバイダの表示

  • 現時点でのプロバイダ.


PS /Users/ujpadmin> Find-PackageProvider🆑

Name                           Version          Source           Summary
----                           -------          ------           -------
PowerShellGet                  2.2.5            PSGallery        PowerShell module with …
ChocolateyGet                  3.1.1            PSGallery        Package Management (One…
ContainerImage                 0.6.4.0          PSGallery        This is a PackageManage…
NanoServerPackage              1.0.1.0          PSGallery        A PackageManagement pro…
Chocolatier                    1.2.0            PSGallery        Package Management (One…
WinGet                         0.0.1            PSGallery        Package Management (One…

PS /Users/ujpadmin>

  • まずは,PSGalleryを信頼する.


PS /Users/ujpadmin> Set-PSRepository -Name PSGallery -InstallationPolicy Trusted🆑
PS /Users/ujpadmin>

  •  Nugetをインストール


PS /Users/ujpadmin> (Get-PackageProvider -Name Nuget).ProviderPath🆑
/usr/local/microsoft/powershell/7/Modules/PackageManagement/coreclr/netstandard2.0/Microsoft.PackageManagement.NuGetProvider.dll
PS /Users/ujpadmin>

powershellgallerytrafficmanager.trafficmanager.net
psg-prod-centralus.cloudapp.net
psg-prod-eastus.azureedge.net

  • AzureやAD関連パッケージをインストールする.
PS /Users/ujpadmin> Install-Module Azure🆑
PS /Users/ujpadmin> Install-Module AzureAD🆑
PS /Users/ujpadmin> Install-Module MSOnline🆑
PS /Users/ujpadmin> Install-Module SharePointPnPPowerShellOnline🆑
PS /Users/ujpadmin> Install-Module Microsoft.Online.SharePoint.PowerShell🆑
PS /Users/ujpadmin> Install-Module -Name ExchangeOnlineManagement🆑
PS /Users/ujpadmin>

  • パッケージ一覧を取得.


PS /Users/ujpadmin> Get-Package 🆑

Name                           Version          Source                           Provider
                                                                                  Name
----                           -------          ------                           --------
MSOnline                       1.1.183.57       https://www.powershellgallery.c… PowerSh…
Azure                          5.3.1            https://www.powershellgallery.c… PowerSh…
AzureAD                        2.0.2.130        https://www.powershellgallery.c… PowerSh…
ExchangeOnlineManagement       2.0.4            https://www.powershellgallery.c… PowerSh…
SharePointPnPPowerShellOnline  3.29.2101.0      https://www.powershellgallery.c… PowerSh…
Microsoft.Online.SharePoint.P… 16.0.21116.12000 https://www.powershellgallery.c… PowerSh…

PS /Users/ujpadmin>

  • インストールできている模様.(動作するかどうかは・・・)

広告スペース
Google