{"id":36238,"date":"2023-03-13T11:29:49","date_gmt":"2023-03-13T02:29:49","guid":{"rendered":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/?p=36238"},"modified":"2023-07-26T01:42:37","modified_gmt":"2023-07-25T16:42:37","slug":"giga-school-update","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/","title":{"rendered":"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248"},"content":{"rendered":"\n
MS OnlineMS Online PowerShell \u306f 2023 \u5e74 3 \u6708 31 \u65e5\u306b MS Online PowerShell \u3092\u4f7f\u3063\u305f\u30e9\u30a4\u30bb\u30f3\u30b9\u5272\u308a\u5f53\u3066\u306e\u6a5f\u80fd\u306e\u63d0\u4f9b\u304c\u7d42\u4e86\u3057\u3001\u3055\u3089\u306b 2023 \u5e74 6 \u6708 30 \u65e5\u306b MS Online PowerShell \u304c\u5ec3\u6b62\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4eca\u5f8c PowerShell \u3092\u4f7f\u7528\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u884c\u3046\u5834\u5408\u306f Microsoft Graph PowerShell \u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306fMicrosoft Graph PowerShell \u3092\u4f7f\u7528\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u7ba1\u7406\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u307e\u305a\u306f\u3058\u3081\u306b Microsoft Graph PowerShell \u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3000Microsoft Graph PowerShell \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 PowerShell \u304c\u8d77\u52d5\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u3066 Microsoft Graph PowerShell SDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n > Install-Module Microsoft.Graph<\/p>\n<\/blockquote>\n\n\n\n \u521d\u671f\u8a2d\u5b9a\u3067\u3059\u3068 PSGallery \u304c\u4fe1\u983c\u3055\u308c\u3066\u3044\u306a\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u3057\u3066\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n > Install-Module Microsoft.Graph [Y] \u3092\u5165\u529b\u3059\u308c\u3070 Microsoft Graph PowerShell SDK \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u304c\u300cPSGallery \u306f\u3042\u308b\u7a0b\u5ea6\u4fe1\u983c\u3067\u304d\u308b\u3060\u308d\u3046\u300d\u3068\u5224\u65ad\u3057\u305f\u5834\u5408\u306b\u306f\u3053\u306e\u8b66\u544a\u3092\u8868\u793a\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 Set-PSRepository \u3092\u5229\u7528\u3057\u3066 PSGallery \u3092\u4fe1\u983c\u3067\u304d\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066 PSGallery \u306b\u3042\u308b\u69d8\u3005\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8b66\u544a\u7121\u3057\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 # \u8a2d\u5b9a\u5024\u306e\u78ba\u8a8d \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u7248 Windows \u306e PowerShell \u306f\u3001\u6a19\u6e96\u8a2d\u5b9a\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8 (\u62e1\u5f35\u5b50 .ps1 \u306e\u30d5\u30a1\u30a4\u30eb) \u306e\u5b9f\u884c\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30de\u30eb\u30a6\u30a7\u30a2\u306a\u3069\u306e\u5371\u967a\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e0d\u7528\u610f\u306a\u5b9f\u884c\u3092\u9632\u3050\u3068\u3044\u3046\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u914d\u616e\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002\u81ea\u5206\u3067\u4f5c\u6210\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u4e8b\u524d\u306b\u5b9f\u884c\u30dd\u30ea\u30b7\u30fc\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force<\/p>\n<\/blockquote>\n\n\n\n MS Online PowerShell \u3067\u306f\u3001Get-MsolAccountSku \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u30c6\u30ca\u30f3\u30c8\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002Microsoft Graph PoweShell \u3067\u306f Get-MgSubscribedSku \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3000SkuId\u3000\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 Connect-MgGraph -Scopes “Organization.Read.All”,”User.ReadWrite.All”<\/p>\n<\/blockquote>\n\n\n\n \u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001ID \u3068\u30d1\u30b9\u30ef\u30fc\u30c9 (\u591a\u69d8\u6027\u8a8d\u8a3c\u3092 ON \u306b\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u591a\u8981\u7d20\u8a8d\u8a3c) \u3092\u5165\u529b\u3057\u307e\u3059\u3002 Import-Module -Name Microsoft.Graph.Users<\/p>\n<\/blockquote>\n\n\n\n \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u304c\u5b8c\u4e86\u3057\u305f\u3089 Get-MgSubscribedSku \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3053\u306e\u30c6\u30ca\u30f3\u30c8\u3067\u5229\u7528\u3067\u304d\u308b\u30e9\u30a4\u30bb\u30f3\u30b9\u306e SkuId \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n Get-MgSubscribedSku | ft SkuId, SkuPartNumber -Wrap<\/p>\n<\/blockquote>\n\n\n\n
MS Online PowerShell \u304b\u3089 Microsoft Graph PowerShell \u3078\u306e\u79fb\u884c\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f\u3001\u300cAzure AD PowerShell \u304b\u3089 Microsoft Graph PowerShell \u3078\u306e\u79fb\u884c\u306b\u95a2\u3059\u308b FAQ\u300d<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\nMicrosoft Graph PowerShell SDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/strong><\/h2>\n\n\n\n
Microsoft Graph PowerShell \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u305f\u3081\u306b PowerShell \u3092\u7ba1\u7406\u8005\u3068\u3057\u3066\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<\/figure>\n\n\n\n
\n
\n
\u4fe1\u983c\u3055\u308c\u3066\u3044\u306a\u3044\u30ea\u30dd\u30b8\u30c8\u30ea
\u4fe1\u983c\u3055\u308c\u3066\u3044\u306a\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4fe1\u983c\u3059\u308b\u5834\u5408\u306f\u3001Set-PSRepository \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306e InstallationPolicy\u306e\u5024\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002’https:\/\/www.powershellgallery.com\/api\/v2\/’ \u304b\u3089\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u304b?
[Y] \u306f\u3044(Y) [A] \u3059\u3079\u3066\u7d9a\u884c(A) [N] \u3044\u3044\u3048(N) [L] \u3059\u3079\u3066\u7121\u8996(L) [S] \u4e2d\u65ad(S) [?] \u30d8\u30eb\u30d7 (\u65e2\u5b9a\u5024\u306f “N”):<\/p>\n<\/blockquote>\n\n\n\n
PSGallery \u306e\u4fe1\u983c\u3059\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\u306b\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n\n
> Get-PSRepository
Name InstallationPolicy SourceLocation
—- —————— ————–
PSGallery Untrusted https:\/\/www.powershellgallery.com\/api\/v2\/
# PSGallery \u3092\u4fe1\u983c\u3067\u304d\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5909\u66f4
> Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
# \u8a2d\u5b9a\u5024\u306e\u78ba\u8a8d
> Get-PSRepository
Name InstallationPolicy SourceLocation
— —————— ————–
PSGallery Trusted https:\/\/www.powershellgallery.com\/api\/v2\/<\/p>\n<\/blockquote>\n\n\n\nPowerShell \u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/strong><\/h2>\n\n\n\n
\u5b9f\u884c\u30dd\u30ea\u30b7\u30fc\u306f\u3001Set-ExecutionPolicy \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8 (\u307e\u305f\u306f PowerShell \u30b3\u30de\u30f3\u30c9\u306e -ExecutionPolicy \u30d1\u30e9\u30e1\u30fc\u30bf) \u3092\u7528\u3044\u3066\u5909\u66f4\u3057\u307e\u3059\u3002\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u4ee5\u4e0b\u306e PowerShell \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n\n
Microsoft 365 \u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u78ba\u8a8d\u3059\u308b<\/strong><\/h2>\n\n\n\n
\u307e\u305a\u306f\u3058\u3081\u306b Get-MgSubscribedSku \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u4f7f\u3063\u3066 Microsoft 365 \u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n\n
\u30b5\u30a4\u30f3\u30a4\u30f3\u304c\u3067\u304d\u305f\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c9\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n\n
\n