Red errors after "Import-PSSession $Session".
I'm just wondering why in the heck this is so messed up? Why on earth does Microsoft create something like this for a simple alias? WHY???
At any rate, I'll throw a couple of names to "support" and see if they will create the names for me. I've already spent well over an hour on this issue today and an hour yesterday. Two hours of my time gone down the drain.
If support can't/won't do it, I'll stick with google.
PS C:\Windows\system32> $LiveCred = Get-Credential
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Ex
change -ConnectionUri ps.outlook.com/powershell -Credential $LiveCred -
Authentication Basic -AllowRedirection
WARNING: Your connection has been redirected to the following URI:
"pod51009psh.outlook.com/PowerShell-LiveID"
WARNING: Your connection has been redirected to the following URI:
"bl2prd0411psh.outlook.com/PowerShell-LiveID"
PS C:\Windows\system32> Import-PSSession $Session
Import-Module : There were errors in loading the format data file:
Microsoft.PowerShell, , C:\Users\Mathews\AppData\Local\Temp\tmp_0cf6218f-79d5-4
f55-a808-bf6aafddebd7_m2fudpq3.q1x\tmp_0cf6218f-79d5-4f55-a808-bf6aafddebd7_m2f
udpq3.q1x.format.ps1xml : File skipped because of the following validation exce
ption: File C:\Users\oooooo\AppData\Local\Temp\tmp_0cf6218f-79d5-4f55-a808-bf6
aafddebd7_m2fudpq3.q1x\tmp_0cf6218f-79d5-4f55-a808-bf6aafddebd7_m2fudpq3.q1x.fo
rmat.ps1xml cannot be loaded because the execution of scripts is disabled on th
is system. Please see "get-help about_signing" for more details..
At line:3 char:30
+ Import-Module <<<< -Name $name -Alias * -Function * -Prefix
$prefix -DisableNameChecking:$disableNameChecking -PassThru -ArgumentList @($se
ssion)
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeEx
ception
+ FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Com
mands.ImportModuleCommand
PS C:\Windows\system32>