package platform import "golang.org/x/sys/windows" // IsElevated reports whether the process holds an elevated token. Under the // SYSTEM account (how RMM agents run scripts) this is true. func IsElevated() bool { tok := windows.GetCurrentProcessToken() return tok.IsElevated() } // ConsoleUser is meaningless on Windows. func ConsoleUser() string { return "" } // PrivilegeHint explains how to obtain the rights deployr needs. func PrivilegeHint() string { return "run deployr from an elevated (Administrator) shell, or as SYSTEM via your RMM" }