Get-MsolUser: 'Get-MsolUser' terimi tanınmıyor
Office 365 kullanıcılarını PowerShell ile yönetmeye çalışıyorsunuz ve şu hatayı alıyorsunuz:
Get-MsolUser : The term 'Get-MsolUser' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ Get-MsolUser
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-MsolUser:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionBu hata, PowerShell için MSOnline Modülünün yüklenmemesinden kaynaklanmaktadır ve bu nedenle “Get-MsolUser” komutunun tanınmamasından kaynaklanmaktadır.
(PowerShell 3,0 ve sonraki sürümler gerekli modülü otomatik olarak yükleyecektir, bu nedenle sorun muhtemelen MSOnline modülünün sisteminizde eksik olmasıdır.)
Bu sorunu çözmek için aşağıdaki komutu çalıştırarak MSOnline modülünü yükleyin:
Install-Module MSOnline
(Yönetici olarak çalıştırdığınızdan emin olun; PowerShell modülü yükleme sırası ve gelişmiş sorun giderme hakkında daha fazla bilgiyi burada bulabilirsiniz)
Bu komutu çalıştırdıktan sonra aşağıdaki mesajı alabilirsiniz:
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): YModülün indirilip kurulması için Y yazın ve enter tuşuna basın.
Daha sonra kiracınıza bağlanıp Azure AD kullanıcı hesaplarınızı yönetmeye başlayabilirsiniz:
PS C:\> Connect-MsolService
PS C:\> Get-MsolUser -UserPrincipalName hans.c.orsted@azure.skrubbeltrang.com
UserPrincipalName DisplayName isLicensed
----------------- ----------- ----------
hans.c.orsted@azure.skrubbeltrang.com Hans Christian Ørsted TrueOffice 365 Kullanıcılarını ve Lisanslarını PowerShell Olmadan Yönetin
Office 365 kullanıcılarınızı, lisanslarınızı ve posta kutularınızı yönetmenin daha hızlı ve verimli bir yolunu arıyorsanız Easy365Manager'a göz atmalısınız.
Easy365Manager ile Office 365 kullanıcılarını ve posta kutularını doğrudan Active Directory Kullanıcıları ve Bilgisayarları yönetim konsolunda yönetebilirsiniz.
Easy365Manager, AD Kullanıcıları ve Bilgisayarları'ndaki kullanıcı ve grup özelliklerini genişleten bir ek bileşendir.
Burada görüldüğü gibi Easy365Manager ile, tanıdık Active Directory yönetici aracını kullanarak AD kullanıcılarınızın Office 365 lisanslarını yapılandırmak için doğrudan ve kolay erişime sahip olursunuz:
Easy365Manager'daki özelliklerin tam listesi için buna bir göz atın.
Tamamen işlevsel 30 günlük deneme sürümünü buradan indirebilirsiniz.
MSOnline Modülü PowerShell Komutları
MSOnline PowerShell modülünde hangi komutların bulunduğunu bilmek istiyorsanız aşağıdaki komutu kullanın.
PS C:\> (Get-Module -Name MSOnline).ExportedCommands | ft key
Key
---
Add-MsolAdministrativeUnitMember
Add-MsolForeignGroupToRole
Add-MsolGroupMember
Add-MsolRoleMember
Add-MsolScopedRoleMember
Confirm-MsolDomain
Confirm-MsolEmailVerifiedDomain
Connect-MsolService
Convert-MsolDomainToFederated
Convert-MsolDomainToStandard
Convert-MsolFederatedUser
Disable-MsolDevice
Enable-MsolDevice
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
New-MsolAdministrativeUnit
New-MsolDomain
New-MsolFederatedDomain
New-MsolGroup
New-MsolLicenseOptions
New-MsolServicePrincipal
New-MsolServicePrincipalAddresses
New-MsolServicePrincipalCredential
New-MsolUser
New-MsolWellKnownGroup
Redo-MsolProvisionContact
Redo-MsolProvisionGroup
Redo-MsolProvisionUser
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
Reset-MsolStrongAuthenticationMethodByUpn
Restore-MsolUser
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
Update-MsolFederatedDomain