{"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

\u5909\u66f4\u70b9<\/strong><\/h2>\n\n\n\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
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\n

Microsoft Graph PowerShell SDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/strong><\/h2>\n\n\n\n

\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
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

\"Windows<\/figure>\n\n\n\n

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

\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

\n

> Install-Module Microsoft.Graph
\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

[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
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

# \u8a2d\u5b9a\u5024\u306e\u78ba\u8a8d
> 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\n

PowerShell \u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/strong><\/h2>\n\n\n\n

\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

\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

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force<\/p>\n<\/blockquote>\n\n\n\n

Microsoft 365 \u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u78ba\u8a8d\u3059\u308b<\/strong><\/h2>\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
\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

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
\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

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

\n

Get-MgSubscribedSku | ft SkuId, SkuPartNumber -Wrap<\/p>\n<\/blockquote>\n\n\n\n

\u3053\u306e\u3088\u3046\u306b SkuId \u3068 SkuPartNumber \u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

\"\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u305f\u30b3\u30fc\u30c9\"<\/figure>\n\n\n\n

\u30e6\u30fc\u30b6\u30fc\u306b\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u5272\u308a\u5f53\u3066\u308b\u969b\u306b\u306f SkuId \u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u30e1\u30e2\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u4e0a\u8a18\u306e\u4f8b\u3067\u3059\u3068 SubParNumber \u306b\u8868\u793a\u3055\u308c\u305f STANDARDWOFFPACK_STUDENT \u304c\u5150\u7ae5\u751f\u5f92\u7528\u306e Office 365 A1 \u30e9\u30a4\u30bb\u30f3\u30b9\u3001STANDARDWOFFPACK_FACULTY \u304c \u6559\u8077\u54e1\u7528\u306e Office 365 A1 \u30e9\u30a4\u30bb\u30f3\u30b9\u3001M365_EDU_GIGA_PROMO \u304c GIGA PROMO \u7528\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u767b\u9332<\/strong><\/h2>\n\n\n\n

\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u7528\u306e CSV \u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/strong><\/p>\n\n\n\n

\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u7528\u306e CSV \u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30f3\u30d7\u30eb\u30d5\u30a1\u30a4\u30eb<\/strong><\/a>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002
2 \u884c\u76ee\u4ee5\u964d\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u3059\u308b\u969b\u306b\u6700\u4f4e\u9650\u5fc5\u8981\u306a\u5c5e\u6027\u5024\u306f\u3001UserPrincipalName, DisplayName, Password \u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306b\u5272\u308a\u5f53\u3066\u308b\u30e9\u30a4\u30bb\u30f3\u30b9\u306f O \u5217\u304b\u3089 Q \u5217\u306b\u8a18\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u63d0\u793a\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u6700\u5927 3 \u7a2e\u985e\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u307e\u3067\u5272\u308a\u5f53\u3066\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\"\u30b3\u30fc\u30c9\u306e<\/figure>\n\n\n\n

\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u7528\u306e PowerShell \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210<\/strong><\/p>\n\n\n\n

\u4ee5\u4e0b\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u7528\u306e PowerShell \u3092\u793a\u3057\u307e\u3059\u3002\u30e1\u30e2\u5e33\u306a\u3069\u306b\u30b3\u30d4\u30fc\u3057\u3066\u3001addm365user.ps1 \u3068\u3044\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002
\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6709\u52b9\u671f\u9650\u3092\u7121\u671f\u9650\u306b\u3059\u308b (-PasswordPolicies “DisablePasswordExpiration,DisableStrongPassword”)\u3001\u521d\u56de\u30ed\u30b0\u30a4\u30f3\u6642\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4\u3092\u8981\u6c42\u3057\u306a\u3044 (“forceChangePasswordNextSignIn” = $false)\u3000\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\n

###############################################################################################################################
# Name
#     addm365user.ps1 – Microsoft 365 \u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8ffd\u52a0\u3059\u308b
# SYNOPSIS
#     addm365user [INPORT FILE]
# DESCRIPTION
#     Microsoft 365 \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u7528\u306e[INPORT FILE]\u3092\u8aad\u307f\u8fbc\u307f\u3001Microsoft 365 \u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u767b\u9332\u3001
#     \u30e9\u30a4\u30bb\u30f3\u30b9\u4ed8\u4e0e\u3092\u3057\u3001AddedNewUsers-YYYY_MM_DD-HH_MM.csv \u306b\u767b\u9332\u7d50\u679c\u3092\u51fa\u529b\u3057\u307e\u3059\u3002
#     \u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u5f31\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3082\u767b\u9332\u53ef\u80fd\u3067\u3001\u6709\u52b9\u671f\u9650\u3082\u306a\u3057\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u521d\u671f\u30b5\u30a4\u30f3\u6642\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u3082\u6c42\u3081\u3089\u308c\u307e\u305b\u3093\u3002
#     CSV\u306e\u66f8\u5f0f\u306f1\u884c\u76ee\u306b\u30bf\u30a4\u30c8\u30eb\u30012\u884c\u76ee\u4ee5\u964d\u306b\u767b\u9332\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002
#     1\u884c\u76ee: UserPrincipalName,Password,MailNickname,DisplayName,GivenName,SurName,JobTitle,EmployeeId,EmployeeType,Department,City,State,Country,StreetAddress,PostalCode,SkuId1,SkuId2,SkuId3
#     SkuId1\uff5e3 \u306b\u306f\u3001Get-MgSubscribedSku | ft SkuId, SkuPartNumber -Wrap\u3000\u3067\u53d6\u5f97\u3057\u305f SkuId \u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002###############################################################################################################################
Connect-MgGraph -Scopes “User.ReadWrite.All” > $null
Import-Module -Name Microsoft.Graph.Users

date
echo ”  Create new users”

$addedtime = Get-Date -format “yyyy_MM_dd-HH_mm”
$outputfilename = “AddedNewUsers-” + $addedtime + “.csv”

Import-Csv -Path $Args[0] -Encoding UTF8 | `
foreach {
   $UserPrincipalName =  $_.UserPrincipalName
   $DisplayName = $_.DisplayName
   $MailNickName = $UserPrincipalName.Split(“@”)[0]
   $SurName = $_.SurName
   $GivenName = $_.GivenName
   $JobTitle = $_.JobTitle ; if([string]::IsNullOrEmpty($JobTitle)){$JobTitle = ” “}
   $EmployeeId = $_.EmployeeId ; if([string]::IsNullOrEmpty($EmployeeId)){$EmployeeId = ” “}
   $EmployeeType = $_.EmployeeType ; if([string]::IsNullOrEmpty($EmployeeType)){$EmployeeType = ” “}
   $Department = $_.Department ;  if([string]::IsNullOrEmpty($Department)){$Department = ” “}
   $City = $_.City ; if([string]::IsNullOrEmpty($City)){$City = ” “}
   $State = $_.State ; if([string]::IsNullOrEmpty($State)){$State = ” “}
   $Country = $_.Country ; if([string]::IsNullOrEmpty($Country)){$Country = ” “}
   $PostalCode = $_.$PostalCode ; if([string]::IsNullOrEmpty($PostalCode)){$PostalCode = ” “}
   $StreetAddress = $_.$StreetAddress ; if([string]::IsNullOrEmpty($StreetAddress)){$StreetAddress = ” “}

If([string]::IsNullOrEmpty($GivenName) -or [string]::IsNullOrEmpty($SurName)) {
        New-MgUser -AccountEnabled -UserPrincipalName “$UserPrincipalName” -DisplayName “$DisplayName” -MailNickName “$MailNickname” -UsageLocation “JP” -JobTitle “$JobTitle” -EmployeeId “$EmployeeId” -EmployeeType “$EmployeeType” -Department  “$Department” -City “$City” -State “$State” -Country “$Country” -PostalCode “$PostalCode” -StreetAddress “$StreetAddress” -PasswordPolicies  “DisablePasswordExpiration,DisableStrongPassword” -PasswordProfile @{ “Password”=$_.Password ; “forceChangePasswordNextSignIn” = $false}
    }
    Else {
      New-MgUser -AccountEnabled -UserPrincipalName “$UserPrincipalName” -DisplayName “$DisplayName” -MailNickName “$MailNickname” -SurName “$SurName” -GivenName “$GivenName” -UsageLocation “JP” -JobTitle “$JobTitle” -EmployeeId “$EmployeeId” -EmployeeType “$EmployeeType” -Department  “$Department” -City “$City” -State “$State” -Country “$Country” -PostalCode “$PostalCode” -StreetAddress “$StreetAddress” -PasswordPolicies  “DisablePasswordExpiration,DisableStrongPassword” -PasswordProfile @{ “Password”=$_.Password ; “forceChangePasswordNextSignIn” = $false}
    }
} | Select-Object Id, UserPrincipalName, DisplayName, GivenName, Surname, JobTitle, EmployeeId, EmployeeType, Department, City, State, Country, StreetAddress, PostalCode | Export-Csv -Path $outputfilename -Encoding UTF8

date
echo ”  Licensing to users”
Import-Csv -Path $Args[0] -Encoding UTF8 | `
foreach {
   $SkuId1 = $_.SkuId1
   $License1 = New-Object -TypeName Microsoft.Graph.PowerShell.Models.MicrosoftGraphAssignedLicense -Property @{SkuId = $SkuId1}
   $SkuId2 = $_.SkuId2
   $License2 = New-Object -TypeName Microsoft.Graph.PowerShell.Models.MicrosoftGraphAssignedLicense -Property @{SkuId = $SkuId2}
   $SkuId3 = $_.SkuId3
   $License3 = New-Object -TypeName Microsoft.Graph.PowerShell.Models.MicrosoftGraphAssignedLicense -Property @{SkuId = $SkuId3}
    if([string]::IsNullOrEmpty($SkuId2)){
        $License1 = New-Object -TypeName Microsoft.Graph.PowerShell.Models.MicrosoftGraphAssignedLicense -Property @{SkuId = $SkuId1}
        Set-MgUserLicense -UserId $_.UserPrincipalName -AddLicenses @($License1) -RemoveLicenses @() > $null
        }
        elseif([string]::IsNullOrEmpty($SkuId3)){
            Set-MgUserLicense -UserId $_.UserPrincipalName -AddLicenses @($License1, $License2) -RemoveLicenses @() > $null
        }
        else {
            Set-MgUserLicense -UserId $_.UserPrincipalName -AddLicenses @($License1, $License2, $License3) -RemoveLicenses @() > $null
        }
}
Disconnect-MgGraph > $null
date
echo ”  Completed”<\/p>\n<\/blockquote>\n\n\n\n

\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u767b\u9332<\/strong><\/p>\n\n\n\n

addm365user.ps1 \u3092\u5b9f\u884c\u3057\u3066\u65b0\u898f\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u767b\u9332\u3057\u307e\u3059\u3002\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u300c\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u7528\u306e CSV \u30d5\u30a1\u30a4\u30eb\u300d\u3067\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n

\n

addm365user.ps1 <\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u540d><\/p>\n<\/blockquote>\n\n\n\n

addm365user.ps1 \u3092\u5b9f\u884c\u3057\u307e\u3059\u3068\u3001\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b AddedNewUsers-YYYY_MM_DD-HH_MM.csv \u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3001\u65b0\u3057\u304f\u767b\u9332\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

\u3059\u3067\u306b\u767b\u9332\u6e08\u307f\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u53d6\u5f97\u3059\u308b<\/strong><\/h2>\n\n\n\n

\u3059\u3067\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u30ea\u30b9\u30c8\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8 (getm365user.ps1) \u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002
\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b RegisteredUsers-YYYY_MM_DD-HH_MM.csv \u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3001\u3059\u3067\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

\n

###############################################################################################################################
# Name
#  get365user.ps1 – Microsoft 365 \u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u53d6\u5f97\u3059\u308b
# SYNOPSIS
#     getm3365user
# DESCRIPTION
#     Microsoft 365 \u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u53d6\u5f97\u3057\u3066\u3001RegisteredUsers_YYYY_MM_DD-HH_MM.csv \u306b\u51fa\u529b\u3057\u307e\u3059\u3002
###############################################################################################################################

Connect-MgGraph -Scopes “User.ReadWrite.All” > $null
Import-Module -Name Microsoft.Graph.Users

date
echo ”  Get All users”
$addedtime = Get-Date -format “yyyy_MM_dd-HH_mm”
$outputfilename = “RegisteredUsers-” + $addedtime + “.csv”

Get-MgUser -All | Select-Object Id, UserPrincipalName, DisplayName, GivenName, Surname, JobTitle, EmployeeId, EmployeeType, Department, City, State, Country, StreetAddress, PostalCode | Export-Csv -Path $outputfilename -Encoding UTF8
date
echo ”  Completed”<\/p>\n<\/blockquote>\n\n\n\n

\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b<\/strong><\/h2>\n\n\n\n

\u30e6\u30fc\u30b6\u30fc\u524a\u9664\u30ea\u30b9\u30c8\u306e\u4f5c\u6210<\/strong><\/p>\n\n\n\n

\u524a\u9664\u3057\u305f\u3044\u30e6\u30fc\u30b6\u30fc\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u30021 \u884c\u76ee\u306b UserPrincipalName \u3068\u5165\u529b\u3057\u30012 \u884c\u76ee\u4ee5\u964d\u306b\u524a\u9664\u3057\u305f\u3044 UserPrincipalName \u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\u30e6\u30fc\u30b6\u30fc\u306e\u30ea\u30b9\u30c8\"<\/figure>\n\n\n\n

\u30e6\u30fc\u30b6\u30fc\u524a\u9664\u7528\u306e PowerShell<\/strong><\/p>\n\n\n\n

\n

###############################################################################################################################
# Name
#  rmm365user.ps1 – Microsoft 365 \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u524a\u9664\u3059\u308b
# SYNOPSIS
#     rmm3365user [INPORT FILE]
# DESCRIPTION
#     [INPORT FILE] \u3092\u8aad\u307f\u8fbc\u307f\u3001Microsoft 365 \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u3002
#     \u524a\u9664\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u30b4\u30df\u7bb1\u306b\u5165\u308a\u300130\u65e5\u5f8c\u306b\u81ea\u52d5\u7684\u306b\u5b8c\u5168\u524a\u9664\u3055\u308c\u307e\u3059\u3002
#     30\u65e5\u4ee5\u5185\u306b\u30b4\u30df\u7bb1\u306b\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b\u5834\u5408\u306b\u306f\u3001rmm365deletedusers.ps1 \u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u307e\u3059\u3002
#     \u524a\u9664\u7528\u306e [INPORT FILE]\u3000\u306f\u3001
#     \u4e00\u884c\u76ee: UserPrincilaName 2\u884c\u76ee\u4ee5\u964d\u306b\u524a\u9664\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\uff08UserPrincipalName\uff09\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002
###############################################################################################################################

Connect-MgGraph -Scopes “User.ReadWrite.All”
Import-Module -Name Microsoft.Graph.Users

date
echo ”  Remove users”

Import-Csv -Path $Args[0] | foreach {Remove-MgUser -UserId $_.UserPrincipalName -PassThru}

Disconnect-MgGraph > $null

date
echo ”  Completed”<\/p>\n<\/blockquote>\n\n\n\n

\u30e6\u30fc\u30b6\u30fc\u306e\u524a\u9664<\/strong><\/p>\n\n\n\n

\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\n

rmm365user <\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u540d><\/p>\n<\/blockquote>\n\n\n\n

\u524a\u9664\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u306f\u30b4\u30df\u7bb1\u306b\u5165\u308a\u300130 \u65e5\u5f8c\u306b\u81ea\u52d5\u524a\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

\u30b4\u30df\u7bb1\u306b\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u5b8c\u5168\u524a\u9664\u3059\u308b<\/strong><\/h2>\n\n\n\n

\u30b4\u30df\u7bb1\u306b\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u524a\u9664\u30ea\u30b9\u30c8\u306e\u4f5c\u6210<\/strong><\/h2>\n\n\n\n

Microsoft 365 \u7ba1\u7406\u30bb\u30f3\u30bf\u30fc\u304b\u3089\u524a\u9664\u6e08\u307f\u306e\u30e6\u30fc\u30b6\u30fc\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u8aac\u660e\u56f3\"<\/figure>\n\n\n\n

\u51fa\u529b\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8Id\u300d\u2192\u300cObjectId\u300d\u306b\u66f8\u304d\u63db\u3048\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u30b4\u30df\u7bb1\u306e\u30e6\u30fc\u30b6\u30fc\u524a\u9664\u7528\u306e PowerShell<\/strong><\/h2>\n\n\n\n
\n

###############################################################################################################################
# Name
#  rmm365deleteduser.ps1 – Microsoft 365 \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u524a\u9664\u3059\u308b
# SYNOPSIS
#     rmm3365deleteduser [INPORT FILE]
# DESCRIPTION
#     [INPORT FILE] \u3092\u8aad\u307f\u8fbc\u307f\u3001\u30b4\u30df\u7bb1\u306b\u3044\u308bMicrosoft 365 \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u3001
#     \u4e00\u884c\u76ee: Id 2\u884c\u76ee\u4ee5\u964d\u306b\u524a\u9664\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u60c5\u5831(OObject Id\uff09\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002
###############################################################################################################################<\/p>\n\n\n\n

Connect-MgGraph -Scopes “User.ReadWrite.All” > $null
Import-Module -Name Microsoft.Graph.Users<\/p>\n\n\n\n

date
echo ”  Remove deleted users”<\/p>\n\n\n\n

Import-Csv -Path $Args[0] -Encoding UTF8 | foreach {Remove-MgDirectoryDeletedItem -DirectoryObjectId $_.Id}<\/p>\n\n\n\n

Disconnect-MgGraph > $null<\/p>\n\n\n\n

date
echo ”  Completed”<\/p>\n<\/blockquote>\n\n\n\n

<\/p>\n\n\n\n

\u30b4\u30df\u7bb1\u306b\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u524a\u9664<\/strong><\/h2>\n\n\n\n

\u30b4\u30df\u7bb1\u306b\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\n

rmm365deleteduser <\u5165\u529b\u30d5\u30a1\u30a4\u30eb><\/p>\n<\/blockquote>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

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<\/p>\n","protected":false},"author":732,"featured_media":36302,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_classifai_error":"","footnotes":""},"categories":[48],"post_tag":[],"content-type":[],"coauthors":[409],"class_list":["post-36238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-government"],"yoast_head":"\nGIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248 - \u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248 - \u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b\" \/>\n<meta property=\"og:description\" content=\"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\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/\" \/>\n<meta property=\"og:site_name\" content=\"\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-13T02:29:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-25T16:42:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4e2d\u7530 \u5bff\u7a42\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4e2d\u7530 \u5bff\u7a42\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/\"},\"author\":[{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/author\/%e4%b8%ad%e7%94%b0-%e5%af%bf%e7%a9%82\/\",\"@type\":\"Person\",\"@name\":\"\u4e2d\u7530 \u5bff\u7a42\"}],\"headline\":\"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248\",\"datePublished\":\"2023-03-13T02:29:49+00:00\",\"dateModified\":\"2023-07-25T16:42:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/\"},\"wordCount\":1146,\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg\",\"articleSection\":[\"\u653f\u5e9c\u30fb\u516c\u5171\u6a5f\u95a2\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/\",\"url\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/\",\"name\":\"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248 - \u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg\",\"datePublished\":\"2023-03-13T02:29:49+00:00\",\"dateModified\":\"2023-07-25T16:42:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#primaryimage\",\"url\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg\",\"contentUrl\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg\",\"width\":1200,\"height\":628,\"caption\":\"Header photo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#website\",\"url\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/\",\"name\":\"\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#organization\",\"name\":\"\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b\",\"url\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2019\/08\/Microsoft-Logo.png\",\"contentUrl\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2019\/08\/Microsoft-Logo.png\",\"width\":259,\"height\":194,\"caption\":\"\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248 - \u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/","og_locale":"en_US","og_type":"article","og_title":"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248 - \u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b","og_description":"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","og_url":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/","og_site_name":"\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b","article_published_time":"2023-03-13T02:29:49+00:00","article_modified_time":"2023-07-25T16:42:37+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg","type":"image\/jpeg"}],"author":"\u4e2d\u7530 \u5bff\u7a42","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u4e2d\u7530 \u5bff\u7a42","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#article","isPartOf":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/"},"author":[{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/author\/%e4%b8%ad%e7%94%b0-%e5%af%bf%e7%a9%82\/","@type":"Person","@name":"\u4e2d\u7530 \u5bff\u7a42"}],"headline":"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248","datePublished":"2023-03-13T02:29:49+00:00","dateModified":"2023-07-25T16:42:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/"},"wordCount":1146,"publisher":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#organization"},"image":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg","articleSection":["\u653f\u5e9c\u30fb\u516c\u5171\u6a5f\u95a2"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/","url":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/","name":"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248 - \u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b","isPartOf":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#primaryimage"},"image":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg","datePublished":"2023-03-13T02:29:49+00:00","dateModified":"2023-07-25T16:42:37+00:00","breadcrumb":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#primaryimage","url":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg","contentUrl":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2023\/03\/GIGAschool_guide_header-photo.jpg","width":1200,"height":628,"caption":"Header photo"},{"@type":"BreadcrumbList","@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/government\/2023\/03\/13\/giga-school-update\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/"},{"@type":"ListItem","position":2,"name":"GIGA \u30b9\u30af\u30fc\u30eb\u5e74\u5ea6\u66f4\u65b0 | Microsoft 365 (2023 \u5e74\u5ea6\u7248) \u7b2c 1 \u7248"}]},{"@type":"WebSite","@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#website","url":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/","name":"\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b","description":"","publisher":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#organization","name":"\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b","url":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2019\/08\/Microsoft-Logo.png","contentUrl":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-content\/uploads\/sites\/12\/2019\/08\/Microsoft-Logo.png","width":259,"height":194,"caption":"\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u696d\u754c\u5225\u306e\u8a18\u4e8b"},"image":{"@id":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/posts\/36238"}],"collection":[{"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/users\/732"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/comments?post=36238"}],"version-history":[{"count":0,"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/posts\/36238\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/media\/36302"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/media?parent=36238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/categories?post=36238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/post_tag?post=36238"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/content-type?post=36238"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.microsoft.com\/ja-jp\/industry\/blog\/wp-json\/wp\/v2\/coauthors?post=36238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}