On the Windows pc
on an elivated command prompt run:reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\system" /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
on the Raspberry Pi
sudo apt-get updatesudo apt-get install git dh-autoreconf autoconf libc6 samba-dev libtalloc-dev libtevent-dev gcc-mingw-w64
git clone git://git.code.sf.net/p/winexe/winexe-waf winexe-winexe-waf
cd ./winexe-winexe-waf/source
sudo ./waf configure
sudo ./waf
sudo mkdir /usr/winexe
sudo cp * /usr/winexe/
sudo /usr/winexe/winexe -U USERNAME%PASSWORD --runas=USERNAME%PASSWORD //IP 'ipconfig'
If succsessfull this will return the ip settings on your windows pc.
NB! add %% after each line if you make a handsoff script.