Some of the commands fail in command prompt with STATUS_ACCESS_VIOLATION error. for eg. sc failure "ServiceName" reset= 0 actions= restart/0 But when SET aaa="asasa" is executed ...