Hi, I need connect to window machine by powershell
There is custom command for connecting to windows which gives an error - The method or operation is not implemented
<CustomCommand Name="Connect-WindowsSession"> <![CDATA[ param( [parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [String]$Target_System, [parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [String]$Username, [parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [String]$Password ) $secPwd = ConvertTo-SecureString $Password -AsPlainText:$true -force $cred = New-Object System.Management.Automation.PsCredential -ArgumentList $Username,$secPwd #New-PSSession -Computername $Target_System -Credential $cred Enter-PSSession -ComputerName $Target_System -Credential $cred ]]> </CustomCommand>
I think this error related to cmdlet Enter-PSSession
Is any idea for this connection?