set HUB_IP=%1

echo "Bootstrapping Windows agent to %HUB_IP%"

"C:\Program Files\Cfengine\bin\cf-agent" --bootstrap %HUB_IP%

echo "Running update policy"
"C:\Program Files\Cfengine\bin\cf-agent" --no-lock -f update.cf

echo "Running normal policy"
"C:\Program Files\Cfengine\bin\cf-agent" --no-lock

