https://o365reports.com/2019/11/01/install-all-office-365-powershell-modules/
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\WINDOWS\system32> cd\ PS C:\> cd .\Utils\ PS C:\Utils> .\ConnectO365Services.ps1
.\ConnectO365Services.ps1 : File C:\Utils\ConnectO365Services.ps1 cannot be loaded. The file
C:\Utils\ConnectO365Services.ps1 is not digitally signed. You cannot run this script on the current system. For more
information about running scripts and setting execution policy, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\ConnectO365Services.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Utils> notepad .\ConnectO365Services.ps1
PS C:\Utils> Install-Module ExchangeOnlineManagement
PS C:\Utils> Install-Module Name AzureAD
Install-Module : A positional parameter cannot be found that accepts argument 'AzureAD'.
At line:1 char:1 + Install-Module Name AzureAD + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Install-Module], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Install-Module
PS C:\Utils> Install-Module Name AzureAD Install-Module : A positional parameter cannot be found that accepts argument 'AzureAD'. At line:1 char:1 + Install-Module Name AzureAD + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Install-Module], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Install-Module PS C:\Utils> Install-Module -Name MSOnline WARNING: Version '1.0' of module 'MSOnline' is already installed at 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\MSOnline'. To install version '1.1.183.66', run Install-Module and
add the -Force parameter, this command will install version '1.1.183.66' side-by-side with version '1.0'.
PS C:\Utils> Install-Module -Name MSOnline -force
PackageManagement\Install-Package : The following commands are already available on this system:'Add-MsolAdministrative
UnitMember,Add-MsolForeignGroupToRole,Add-MsolGroupMember,Add-MsolRoleMember,Add-MsolScopedRoleMember,Confirm-MsolDomai
n,Confirm-MsolEmailVerifiedDomain,Connect-MsolService,Convert-MsolFederatedUser,Get-MsolAccountSku,Get-MsolAdministrati
veUnit,Get-MsolAdministrativeUnitMember,Get-MsolCompanyInformation,Get-MsolContact,Get-MsolDirSyncConfiguration,Get-Mso
lDirSyncProvisioningError,Get-MsolDomain,Get-MsolDomainFederationSettings,Get-MsolDomainVerificationDns,Get-MsolGroup,G
et-MsolGroupMember,Get-MsolPartnerContract,Get-MsolPartnerInformation,Get-MsolPasswordPolicy,Get-MsolRole,Get-MsolRoleM
ember,Get-MsolScopedRoleMember,Get-MsolServicePrincipal,Get-MsolServicePrincipalCredential,Get-MsolSubscription,Get-Mso
lUser,Get-MsolUserByStrongAuthentication,Get-MsolUserRole,New-MsolAdministrativeUnit,New-MsolDomain,New-MsolGroup,New-M
solLicenseOptions,New-MsolServicePrincipal,New-MsolServicePrincipalAddresses,New-MsolServicePrincipalCredential,New-Mso
lUser,New-MsolWellKnownGroup,Redo-MsolProvisionContact,Redo-MsolProvisionGroup,Redo-MsolProvisionUser,Remove-MsolAdmini
strativeUnit,Remove-MsolAdministrativeUnitMember,Remove-MsolApplicationPassword,Remove-MsolContact,Remove-MsolDomain,Re move-MsolForeignGroupFromRole,Remove-MsolGroup,Remove-MsolGroupMember,Remove-MsolRoleMember,Remove-MsolScopedRoleMember ,Remove-MsolServicePrincipal,Remove-MsolServicePrincipalCredential,Remove-MsolUser,Reset-MsolStrongAuthenticationMethod ByUpn,Restore-MsolUser,Set-MsolAdministrativeUnit,Set-MsolCompanyContactInformation,Set-MsolCompanySecurityComplianceCo ntactInformation,Set-MsolCompanySettings,Set-MsolDirSyncConfiguration,Set-MsolDirSyncEnabled,Set-MsolDomain,Set-MsolDom ainAuthentication,Set-MsolDomainFederationSettings,Set-MsolGroup,Set-MsolPartnerInformation,Set-MsolPasswordPolicy,Set-
MsolServicePrincipal,Set-MsolUser,Set-MsolUserLicense,Set-MsolUserPassword,Set-MsolUserPrincipalName'. This module
'MSOnline' may override the existing commands. If you still want to install this module 'MSOnline', use -AllowClobber
parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
Exception
+ FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.Pack
ageManagement.Cmdlets.InstallPackage
PS C:\Utils> Install-Module -Name AzureAD
PS C:\Utils> Install-Module -Name Microsoft.Online.SharePoint.Powershell
WARNING: Version '16.0.6112.0' of module 'Microsoft.Online.SharePoint.PowerShell' is already installed at 'C:\Program
Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell'. To install version
'16.0.21811.12000', run Install-Module and add the -Force parameter, this command will install version
'16.0.21811.12000' side-by-side with version '16.0.6112.0'.
PS C:\Utils> Install-Module -Name Microsoft.Online.SharePoint.Powershell -force
PS C:\Utils> Install-Module -Name SharePointPnPPowerShellOnline
PS C:\Utils> Install-Module -Name ExangeOnlineManagement
PackageManagement\Install-Package : No match was found for the specified search criteria and module name
'ExangeOnlineManagement'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
ception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS C:\Utils> Install-Module -Name ExchangeOnlineManagement
PS C:\Utils> Install-Module -Name Microsoft.Teams
PackageManagement\Install-Package : No match was found for the specified search criteria and module name
'Microsoft.Teams'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
ception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS C:\Utils> Install-Module -Name MicrosoftTeams
PS C:\Utils>
No comments:
Post a Comment