É possível sim ser admin, há esse gist de [Jeremy Black][1] Para ver o resultado do commando, adicione ```.CombinedOutput()``` ao final de ```exec.Command(args).CombineOutput()``` package main import ( "fmt" "os" "os/exec" "strings" "syscall" "time" "golang.org/x/sys/windows" ) func main() { if !amAdmin() { runMeElevated() } else { res, _ := exec.Command(`cmd`, `/c`, `CheckNetIsolation.exe`, `LoopbackExempt`, `-a`, `-n=....`).CombinedOutput() fmt.Println(string(res)) time.Sleep(5 * time.Second) } } func runMeElevated() { verb := "runas" exe, _ := os.Executable() cwd, _ := os.Getwd() args := strings.Join(os.Args[1:], " ") verbPtr, _ := syscall.UTF16PtrFromString(verb) exePtr, _ := syscall.UTF16PtrFromString(exe) cwdPtr, _ := syscall.UTF16PtrFromString(cwd) argPtr, _ := syscall.UTF16PtrFromString(args) var showCmd int32 = 1 //SW_NORMAL err := windows.ShellExecute(0, verbPtr, exePtr, argPtr, cwdPtr, showCmd) if err != nil { fmt.Println(err) } } func amAdmin() bool { _, err := os.Open("\\\\.\\PHYSICALDRIVE0") if err != nil { fmt.Println("admin no") return false } fmt.Println("admin yes") return true } Como você gostaria de um admin temporário, o ideal é criar outro executável: AppFolder --programa1.exe // normal sem privilégios --programa2.exe // solicitará privilégios Programa 1: func main() { local, _ := os.Getwd() call := fmt.Sprintf("%s/programa2.exe", local) exec.Command(`cmd`, `/c`, call) } Programa 2: func main() { if !amAdmin() { runMeElevated() } else { res, _ := exec.Command(`cmd`, `/c`, `CheckNetIsolation.exe`, `LoopbackExempt`, `-a`, `-n=....`).CombinedOutput() file, _ := os.OpenFile("result.txt", os.O_CREATE|os.O_WRONLY, 0644) file.Write(res) } } UPDATE: pra ficar livre de outros 'exes' observei que é possivel utilizando goroutine: var wg sync.WaitGroup func main() { wg.Add(1) go goroutineAdmin() wg.Wait() fmt.Println("Programa continua executando sem privilegios") //check amAdmin() } func goroutineAdmin() { if !amAdmin() { runMeElevated() wg.Done() } else { res, _ := exec.Command(`cmd`, `/c`, `CheckNetIsolation.exe`, `LoopbackExempt`, `-a`, `-n=....`).CombinedOutput() file, _ := os.OpenFile("result.txt", os.O_CREATE|os.O_WRONLY, 0644) file.Write(res) } } [1]: https://gist.github.com/jerblack/d0eb182cc5a1c1d92d92a4c4fcc416c6