Hi,
I'm try to import some cmdlet from o365 I get this error. Does anyone know why I get this. This happens some time.
[PS] Z:\>$global:LiveCred = Get-Credential
$global:Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection
Connect-MsolService -credential $LiveCred
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
WARNING: Your connection has been redirected to the following URI: "https://pod51014psh.outlook.com/powershell-liveid?PSVersion=3.0"
[PS] Z:\>Import-PSSession -Session $Session -Name New-MoveRequest, Get-MoveRequest, Set-MsolUserLicense -FormatTypeName * -AllowClobber
Import-Module : Could not find a part of the path 'C:\Users\user\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\exchange.domain.com\exchange.domain.com.format.ps1xml'.
At line:3 char:17
+ Import-Module -Name $name -Alias * -Function * -Prefix $prefix - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:String) [Import-Module], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand