#!/bin/bash 

# Required install smbclient
function Create_RPC_Service {
        user=$1
        pass_file=$2
        host=$3
        { out=$( (net rpc -I "$host" -U "$user%$(cat $pass_file)" service create "ColibriInstaller" "Colibri Installer service" "C:\ProgramData\colibri\Service_stub\ColibriInstaller.exe") 2>&1 1>&3-) ;} 3>&1
	rc=$?
        echo $out
        return $rc
}
