1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu System Administration Scripting Guide Script Repository ppt

470 259 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 470
Dung lượng 724,12 KB

Nội dung

[...]... Then WScript.Echo "The location has not been set for this computer." Err.Clear Else WScript.Echo "Location: " & strLocation End If strDescription = objComputer.Get("description") If Err.Number = E_ADS_PROPERTY_NOT_FOUND Then WScript.Echo "The description has not been set for this computer." Err.Clear Else WScript.Echo "Description: " & strDescription End If The System Administration Scripting Guide, ... objStartupCommand.AutomaticResetCapability Wscript.Echo "Boot State: " & objStartupCommand.BootupState Wscript.Echo "Startup Delay: " & objStartupCommand.SystemStartupDelay For i = 0 to Ubound(objStartupCommand.SystemStartupOptions) Wscript.Echo "Startup Options: " & _ objStartupCommand.SystemStartupOptions(i) Next Wscript.Echo "Startup Setting: " & _ objStartupCommand.SystemStartupSetting Next The System Administration Scripting Guide, ... "\root\cimv2") Set colOperatingSystems = objWMIService.ExecQuery _ ("Select * from Win32_OperatingSystem") For Each objOperatingSystem in colOperatingSystems Wscript.Echo objOperatingSystem.ServicePackMajorVersion _ & "." & objOperatingSystem.ServicePackMinorVersion Next The System Administration Scripting Guide, part of the Windows NET Server Resource Kit For more information, contact scripter@microsoft.com... objOption.SendAdminAlert Wscript.Echo "Write Debug Information: " & objOption.WriteDebugInfo Wscript.Echo "Write to System Log: " & objOption.WriteToSystemLog Next The System Administration Scripting Guide, part of the Windows NET Server Resource Kit For more information, contact scripter@microsoft.com Enumerate WMI Settings Description Returns a list of WMI settings as configured on a computer Script Code strComputer... "Computer: " & objQuickFix.CSName Wscript.Echo "Description: " & objQuickFix.Description Wscript.Echo "Hot Fix ID: " & objQuickFix.HotFixID Wscript.Echo "Installation Date: " & objQuickFix.InstallDate Wscript.Echo "Installed By: " & objQuickFix.InstalledBy Next The System Administration Scripting Guide, part of the Windows NET Server Resource Kit For more information, contact scripter@microsoft.com UNREGISTERED... objWPA.ActivationRequired Wscript.Echo "Description: " & objWPA.Description Wscript.Echo "Product ID: " & objWPA.ProductID Wscript.Echo "Remaining Evaluation Period: " & _ objWPA.RemainingEvaluationPeriod Wscript.Echo "Remaining Grace Period: " & objWPA.RemainingGracePeriod Wscript.Echo "Server Name: " & objWPA.ServerName Next The System Administration Scripting Guide, part of the Windows NET Server Resource... colfeatures Wscript.Echo "Accesses: " & objFeature.Accesses Wscript.Echo "Attributes: " & objFeature.Attributes Wscript.Echo "Caption: " & objFeature.Caption Wscript.Echo "Description: " & objFeature.Description Wscript.Echo "Identifying Number: " & objFeature.IdentifyingNumber Wscript.Echo "Install Date: " & objFeature.InstallDate Wscript.Echo "Install State: " & objFeature.InstallState Wscript.Echo... objFeature.InstallState Wscript.Echo "LastUse: " & objFeature.LastUse Wscript.Echo "Name: " & objFeature.Name Wscript.Echo "ProductName: " & objFeature.ProductName Wscript.Echo "Vendor: " & objFeature.Vendor Wscript.Echo "Version: " & objFeature.Version Next The System Administration Scripting Guide, part of the Windows NET Server Resource Kit For more information, contact scripter@microsoft.com UNREGISTERED VERSION OF... objStartupCommand.Location Wscript.Echo "Name: " & objStartupCommand.Name Wscript.Echo "SettingID: " & objStartupCommand.SettingID Wscript.Echo "User: " & objStartupCommand.User Next The System Administration Scripting Guide, part of the Windows NET Server Resource Kit For more information, contact scripter@microsoft.com UNREGISTERED VERSION OF CHM TO PDF CONVERTER By THETA-SOFTWARE Enumerate Computer Startup Options Description... NTDSDSA_OPT_IS_GC objDsRoot.SetInfo End If The System Administration Scripting Guide, part of the Windows NET Server Resource Kit For more information, contact scripter@microsoft.com Enumerate Computer Account Attributes Description Demonstration script that retrieves the location and description attributes for a computer account in Active Directory Script Code On Error Resume Next Const E_ADS_PROPERTY_NOT_FOUND

Ngày đăng: 19/01/2014, 11:20

TỪ KHÓA LIÊN QUAN