I have a Sharepoint farm setup and I'm connecting to one of my application / search servers from a Windows 7 computer in a domain using remote PowerShell. There are powershell 2 on the client and application servers with the execution policy enabled, unlimited and allowed. In addition, I run cmdlets as a domain administrator account.
I can create a session on a remote server using the following cmdlets:
$Session = New-PSSession -ConfigurationName "Microsoft.PowerShell" -ConnectionUri "http://app01-spl1:5985/wsman/" -Authentication "Kerberos" Import-PSSession $Session -AllowClobber
However, when I import the session, I get the following entry:
Import-PSSession : Proxy creation has been skipped for '%' command, because PowerShell couldn't verify its name as safe. At line:1 char:17 + Import-PSSession <<<< $Session -AllowClobber + CategoryInfo : InvalidData: (:) [Import-PSSession], InvalidOperationException + FullyQualifiedErrorId : ErrorSkippedUnsafeCommandName,Microsoft.PowerShell.Commands.ImportPSSessionCommand Import-PSSession : Proxy creation has been skipped for '?' command, because PowerShell couldn't verify its name as safe. At line:1 char:17 + Import-PSSession <<<< $Session -AllowClobber + CategoryInfo : InvalidData: (:) [Import-PSSession], InvalidOperationException + FullyQualifiedErrorId : ErrorSkippedUnsafeCommandName,Microsoft.PowerShell.Commands.ImportPSSessionCommand Import-PSSession : Could not resolve remote alias 'ise'. At line:1 char:17 + Import-PSSession <<<< $Session -AllowClobber + CategoryInfo : OperationTimeout: (:) [Import-PSSession], ArgumentException + FullyQualifiedErrorId : ErrorCouldntResolveAlias,Microsoft.PowerShell.Commands.ImportPSSessionCommand
Can someone help solve this error?
Nicholas J. Markkula
source share