Программа регистрации компьютеров с сети

Автор: Пользователь скрыл имя, 14 Октября 2011 в 01:34, курсовая работа

Описание работы

Построить систему для регистрации каждого компьютера в сети корпорации при каждом включении и запрашивать технические характеристики компьютера. Система должна иметь возможность регистрации нового компьютера и пользователя, авторизовать зарегистрированного пользователя и генерировать новый пароль для пользователя

Содержание

1. Введение . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2. Основная часть . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1. Регистрация компьютера в сети. . . . . . . . . .................... . . . . . . . . . . 5
2.1.1 Настройка сети……………………………………………….5
2.1.2 Уточнение полученных сетевых данных ………… ……….5
2.1.3 Обновление сетевых данных………………………………….5
2.1.4 Настройка маршрутизации………………………… ……….6
2.2. Язык программирования С# (C sharp). . . . . . . . . . . . . . . . . . . . . . . . 6
2.3. Базы данных Microsoft SQL Server .. . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.4. Аутентификация пользователя. . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.5. Сбор сведений о компьютерах в сети . . .. . . . . . . . . . . . . . . . . . . . . 9
2.6. Описание структуры и принципа работы системы . . . . . . . . . . . 10
2.6.1. Общие сведения . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.6.2. Процесс аутентификаций . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.6.3. Создания Базы данных MS SQL Server 2005 11
2.6.4. Cбор информации о состоянии компьютера 11
3. Заключение . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4. Список литературы.................................................................................. .........14
5. Приложение А . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ….. . . . 15

Работа содержит 1 файл

практика.doc

— 272.00 Кб (Скачать)
 

2) Lod.Designer.cs

 

namespace reg_comp_new

{

partial class Lod

{

/// <summary>

 /// Required designer variable.

/// </summary>

private System.ComponentModel.IContainer components = null;

/// <summary>

/// Clean up any resources being used.

/// </summary>

/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>

protected override void Dispose(bool disposing)

{

if (disposing && (components != null))

{

components.Dispose();

}

base.Dispose(disposing);

}

#region Windows Form Designer generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InitializeComponent()

{

this.components = new System.ComponentModel.Container();

System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Lod));

this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);

this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);

this.infoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();

this.accToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();

this.timer1 = new System.Windows.Forms.Timer(this.components);

this.pictureBox1 = new System.Windows.Forms.PictureBox();

this.contextMenuStrip1.SuspendLayout();

((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();

this.SuspendLayout();

//

// notifyIcon1

//

this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;

this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));

this.notifyIcon1.Text = "RegComp";

this.notifyIcon1.Visible = true;

this.notifyIcon1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseMove);

this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);

//

// contextMenuStrip1

//

this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {

this.infoToolStripMenuItem,

this.accToolStripMenuItem});

this.contextMenuStrip1.Name = "contextMenuStrip1";

this.contextMenuStrip1.Size = new System.Drawing.Size(137, 48);

this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);

//

// infoToolStripMenuItem

//

this.infoToolStripMenuItem.Name = "infoToolStripMenuItem";

this.infoToolStripMenuItem.Size = new System.Drawing.Size(136, 22);

this.infoToolStripMenuItem.Text = "О системе";

this.infoToolStripMenuItem.Click += new System.EventHandler(this.infoToolStripMenuItem_Click);

//

// accToolStripMenuItem

//

this.accToolStripMenuItem.Name = "accToolStripMenuItem";

this.accToolStripMenuItem.Size = new System.Drawing.Size(136, 22);

this.accToolStripMenuItem.Text = "Вход";

this.accToolStripMenuItem.Click += new System.EventHandler(this.accToolStripMenuItem_Click);

//

// timer1

//

this.timer1.Enabled = true;

this.timer1.Interval = 10;

this.timer1.Tick += new System.EventHandler(this.timer1_Tick);

//

// pictureBox1

//

this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;

this.pictureBox1.Image = global::reg_comp_new.Properties.Resources.img126;

this.pictureBox1.Location = new System.Drawing.Point(0, 0);

this.pictureBox1.Name = "pictureBox1";

this.pictureBox1.Size = new System.Drawing.Size(251, 185);

this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;

this.pictureBox1.TabIndex = 1;

this.pictureBox1.TabStop = false;

//

// Lod

//

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

this.ClientSize = new System.Drawing.Size(251, 185);

this.Controls.Add(this.pictureBox1);

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

this.Name = "Lod";

this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;

this.Text = "Lod";

this.contextMenuStrip1.ResumeLayout(false);

            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();

this.ResumeLayout(false);

}

#endregion

private System.Windows.Forms.NotifyIcon notifyIcon1;

private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;

private System.Windows.Forms.ToolStripMenuItem infoToolStripMenuItem;

private System.Windows.Forms.ToolStripMenuItem accToolStripMenuItem;

private System.Windows.Forms.Timer timer1;

private System.Windows.Forms.PictureBox pictureBox1;

}

 

3) logins.Designer.cs

 

namespace reg_comp_new

{

partial class logins

{

/// <summary>

/// Required designer variable.

/// </summary>

private System.ComponentModel.IContainer components = null;

/// <summary>

/// Clean up any resources being used.

/// </summary>

/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>

protected override void Dispose(bool disposing)

{

if (disposing && (components != null))

{

components.Dispose();

}

base.Dispose(disposing);

}

#region Windows Form Designer generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InitializeComponent()

{

            this.groupBox1 = new System.Windows.Forms.GroupBox();

            this.label2 = new System.Windows.Forms.Label();

            this.textBox2 = new System.Windows.Forms.TextBox();

            this.label1 = new System.Windows.Forms.Label();

            this.textBox1 = new System.Windows.Forms.TextBox();

            this.button1 = new System.Windows.Forms.Button();

            this.button2 = new System.Windows.Forms.Button();

            this.groupBox1.SuspendLayout();

            this.SuspendLayout();

            //

            // groupBox1

            //

            this.groupBox1.Controls.Add(this.label2);

            this.groupBox1.Controls.Add(this.textBox2);

            this.groupBox1.Controls.Add(this.label1);

            this.groupBox1.Controls.Add(this.textBox1);

            this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));

            this.groupBox1.Location = new System.Drawing.Point(12, 12);

            this.groupBox1.Name = "groupBox1";

            this.groupBox1.Size = new System.Drawing.Size(227, 125);

            this.groupBox1.TabIndex = 0;

            this.groupBox1.TabStop = false;

            this.groupBox1.Text = "Авторизация";

            //

            // label2

            //

            this.label2.AutoSize = true;

            this.label2.Location = new System.Drawing.Point(6, 68);

            this.label2.Name = "label2";

            this.label2.Size = new System.Drawing.Size(51, 13);

            this.label2.TabIndex = 3;

            this.label2.Text = "Пароль";

            //

            // textBox2

            //

            this.textBox2.Location = new System.Drawing.Point(6, 84);

            this.textBox2.Name = "textBox2";

            this.textBox2.PasswordChar = '#';

            this.textBox2.Size = new System.Drawing.Size(215, 20);

            this.textBox2.TabIndex = 2;

            this.textBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox2_KeyPress);

            //

            // label1

            //

            this.label1.AutoSize = true;

            this.label1.Location = new System.Drawing.Point(3, 25);

            this.label1.Name = "label1";

            this.label1.Size = new System.Drawing.Size(43, 13);

            this.label1.TabIndex = 1;

            this.label1.Text = "Логин";

            //

            // textBox1

            //

            this.textBox1.Location = new System.Drawing.Point(6, 41);

            this.textBox1.Name = "textBox1";

            this.textBox1.Size = new System.Drawing.Size(215, 20);

            this.textBox1.TabIndex = 0;

            this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);

            //

            // button1

            //

            this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));

            this.button1.Location = new System.Drawing.Point(163, 144);

            this.button1.Name = "button1";

            this.button1.Size = new System.Drawing.Size(75, 33);

            this.button1.TabIndex = 1;

            this.button1.Text = "Отмена";

            this.button1.UseVisualStyleBackColor = true;

            this.button1.Click += new System.EventHandler(this.button1_Click);

            //

            // button2

            //

            this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));

            this.button2.Location = new System.Drawing.Point(82, 143);

            this.button2.Name = "button2";

            this.button2.Size = new System.Drawing.Size(75, 34);

            this.button2.TabIndex = 2;

            this.button2.Text = "ОК";

            this.button2.UseVisualStyleBackColor = true;

            this.button2.Click += new System.EventHandler(this.button2_Click);

            //

            // logins

            //

            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

            this.ClientSize = new System.Drawing.Size(246, 189);

            this.Controls.Add(this.button2);

            this.Controls.Add(this.button1);

            this.Controls.Add(this.groupBox1);

            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;

            this.MaximizeBox = false;

            this.MinimizeBox = false;

            this.Name = "logins";

            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;

            this.Text = "Вход";

Информация о работе Программа регистрации компьютеров с сети