#!/bin/bash

function Test_RPC {
	user=$1
	pass_file=$2
	host=$3

    { out=$(net rpc service status winmgmt -I "$host" -U "$user%$(cat "$pass_file")" | grep winmgmt 2>&1 1>&3-) ;} 3>&1
    rc=$?
	echo "$out"
	return $rc
}
