Example #1
0
        public static void GetHostUser(string host)
        {
            var displayer = new DisplayNativeMethod();

            displayer.DisplayTitle($"User Enum on {host}");
            var Results = NativeMethod.GetNetWkstaUserEnum(host);

            displayer.DisplayNetWkstaUserEnum(Results);
        }
Example #2
0
        public static void GetHostGroupMember(string host, string group = "Administrators")
        {
            var displayer = new DisplayNativeMethod();

            displayer.DisplayTitle($"Local Group Members Enum on {host} for {group}");
            var Results = NativeMethod.GetNetLocalGroupGetMembers(host, group);

            displayer.DisplayNetLocalGroupGetMembers(Results);
        }
Example #3
0
        public static void GetHostSession(string host)
        {
            var displayer = new DisplayNativeMethod();

            displayer.DisplayTitle($"Session Enum on {host}");
            var Results = NativeMethod.GetNetSessionEnum(host);

            displayer.DisplayNetSession(Results);
        }