#!/bin/bash 

# Required install smbclient
function Manage_RPC_Service {
        user=$1
        pass_file=$2
        host=$3
	action=$4
        { out=$( (net rpc -I "$host" -U "$user%$(cat $pass_file)" service "$action" "ColibriInstaller") 2>&1 1>&3-) ;} 3>&1
	rc=$?
        echo $out
        return $rc
}
