إعـــــــلان

تقليص
لا يوجد إعلان حتى الآن.

How to Script:windows 2003 servers

تقليص
X
 
  • تصفية - فلترة
  • الوقت
  • عرض
إلغاء تحديد الكل
مشاركات جديدة

  • How to Script:windows 2003 servers


    الموضوع خاص بالأخوة والأخوات
    Network engineers
    مهندسي النتوورك - الشبكات
    سنقدم به طريقة إستخدام ال script
    لتخفيف أعباء صيانة السيرفرات ;
    سواء كنت مهندس نتوورك في شركة اتصالات ، جامعة ، مدرسة او طالب تحت التدريب ..
    نتمنى فائدة الجميع .

    بإمكانك الحصول ع نسخة
    VBScript Editor
    احد البرامج
    OnScript
    تريال
    ::: من هنا :::
    لكنه ليس ضروري لمتابعة موضوعنا .
    مثال
    Map Network Drive Logon Scripts
    كود:
     
    [SIZE=1]' MapNetworkDrive.vbs[/SIZE]
    [SIZE=1]' VBScript to map a network drive to a UNC Path.[/SIZE]
    [SIZE=1]----------------------------------------------------------------- [/SIZE]
    [SIZE=1]Option Explicit[/SIZE]
    [SIZE=1]Dim objNetwork [/SIZE]
    [SIZE=1]Dim strDriveLetter, strRemotePath[/SIZE]
    [SIZE=1]strDriveLetter = "J:" [/SIZE]
    [SIZE=1]strRemotePath = "\\dana\home" [/SIZE]
     
    [SIZE=1]' Purpose of script to create a network object. (objNetwork)[/SIZE]
    [SIZE=1]' Then to apply the MapNetworkDrive method. Result J: drive[/SIZE]
    [SIZE=1]Set objNetwork = CreateObject("WScript.Network") [/SIZE]
     
    [SIZE=1]objNetwork.MapNetworkDrive strDriveLetter, strRemotePath [/SIZE]
    [SIZE=1]WScript.Quit[/SIZE]
     
    [SIZE=1]' End of Example VBScript.[/SIZE]

    Note 1: At the top of the script is a heading section. The idea of the header is to explain what this VBScript will achieve
    Note 2: Option Explicit is a VBScript command which forces you to declare variables
    Note 3: See how this script declares the variables strDriveLetter and strRemotePath, then reuses them later in the script
    Note 4: Once we declare strDriveLetter, then we can assign it a value, in this case J
يعمل...
X