Quantcast
Channel: Office 365 for small business administration - Recent Threads
Viewing all articles
Browse latest Browse all 2721

Re: Couple of questions

$
0
0

After Import-PSSession $Session, I have the following error:

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\kloooo\AppData\Local\Temp\tmp_0cf6218f-79d5-4f55-a808-bf6

aafddd7_m2fpq3.q1x\tmp_0cf6218f-79d5-4f55-a808-bf6aafdbd7_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>


Viewing all articles
Browse latest Browse all 2721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>