// NewSession creates a new CredSSP remote session to the specified host with username and password
NewSession creates a new CredSSP remote session to the specified host with username and password
// NewSession creates a new CredSSP remote session to the specified host with username and password
func (s service) NewSessionCredSSP(host, username, password string) (Session, error) {
	sess, err := s.shell.NewSession(host,
		powershell.WithUsernamePassword(username, password),
		powershell.WithAuthentication("CredSSP"),
	)
	return session{sess, s.shell, host}, err
}
func ( s service ) NewSessionCredSSP ( host , username , password string ) ( Session , error ) { sess , err := s . shell . NewSession ( host , powershell . WithUsernamePassword ( username , password ) , powershell . WithAuthentication ( " " ) , ) return session { sess , s . shell , host } , err }
NewSession creates a new CredSSP remote session to the specified host with username and password
NewSession creates a new CredSSP remote session to the specified host with username and password