#!/bin/sh

cd "${HOME}"
export MATRICULA="${USERNAME}"
export NOME="$(cmd.exe /c "wmic useraccount where name='%USERNAME%' get fullname" | tail -2 | head -1)"
curl -s http://oulu/acesso/ssh/conta-ssh.tgz | tar zxf -
ssh -o SendEnv=MATRICULA \
	-o SendEnv=NOME \
	conta@oulu && mstsc //v:oulu

