Permalink
Browse files

fix #7 - Do not check administrative access by locking for group name

  • Loading branch information...
1 parent 3284a72 commit 36f58fe841d93ad7acfea4522c5ef1f469589d76 @jfromaniello committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/winser
View
@@ -52,7 +52,7 @@ var appName = require(path.join(process.cwd(), "package.json")).name;
sequence
.then(function(next){
- exec("whoami /groups | findstr /b BUILTIN\\Administrators | findstr /c:\"Enabled group\"", function(err, r){
+ exec("whoami /groups | findstr /c:\"S-1-5-32-544\" | findstr /c:\"Enabled group\"", function(err, r){
if(r.length === 0){
log("You must run this tool as an administrator");
process.exit();

0 comments on commit 36f58fe

Please sign in to comment.