// EnableCredSSP for the remote server in the session
EnableCredSSP for the remote server in the session
// EnableCredSSP for the remote server in the session
func (s session) EnableCredSSP() error {
	if _, err := s.session.Execute("Enable-WSManCredSSP -Role 'Server' -Force"); err != nil {
		return fmt.Errorf("Failed to enable CredSSP in session: %v", err)
	}
	if _, err := s.shell.Execute(fmt.Sprintf("Enable-WSManCredSSP -Role 'Client' -DelegateComputer '%s' -Force", s.hostname)); err != nil {
		return fmt.Errorf("Failed to delegate remote-pc to host: %v", err)
	}
	return nil
}
func ( s session ) EnableCredSSP ( ) error { if _ , err := s . session . Execute ( " " ) ; err != nil { return fmt . Errorf ( " " , err ) } if _ , err := s . shell . Execute ( fmt . Sprintf ( " " , s . hostname ) ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
EnableCredSSP for the remote server in the session
EnableCredSSP for the remote server in the session
// Enable CredSSP for double-hops in session // Delegate the new host for CredSSP