This thread will house the scripts i (or anyone who contributes) create while playing with Bash on Windows.
First up, a simple mount command. I am still trying to get the stdout, but piping to files will suffice for now. I am running Win 10 Build 14342.rs1_release.160506-1708
**Do -- Until will be cleaned up (or completely scrapped) when i can find a reliable way to deal with output.
#include<array.au3>
#include <WinAPIFiles.au3>
_WinAPI_W
Dump Ntuser.pol to a readable text file on your desktop.
*Still needs cleaning but functional
#include<file.au3>
#include <WinAPIFiles.au3>
_WinAPI_Wow64EnableWow64FsRedirection(False)
$file = "/mnt/c/users/" & @UserName & "/ntuser.pol"
$outfile = "NTuserPol_Copy.txt"
$iPID = run("C:\Windows\System32\bash.exe | cat " & $file & " > /mnt/c/users/" & @UserName & "/desktop/" & $outfile , "" , @SW_HIDE