Ãëàâíàÿ    Ex Libris    Êíèãè    Æóðíàëû    Ñòàòüè    Ñåðèè    Êàòàëîã    Wanted    Çàãðóçêà    ÕóäËèò    Ñïðàâêà    Ïîèñê ïî èíäåêñàì    Ïîèñê    Ôîðóì   
blank
Àâòîðèçàöèÿ

       
blank
Ïîèñê ïî óêàçàòåëÿì

blank
blank
blank
Êðàñîòà
blank
Jones D. — VBScript, WMI, and ADSI Unleashed
Jones D. — VBScript, WMI, and ADSI Unleashed



Îáñóäèòå êíèãó íà íàó÷íîì ôîðóìå



Íàøëè îïå÷àòêó?
Âûäåëèòå åå ìûøêîé è íàæìèòå Ctrl+Enter


Íàçâàíèå: VBScript, WMI, and ADSI Unleashed

Àâòîð: Jones D.

Àííîòàöèÿ:

If you’re a Windows administrator, scripting expertise can liberate you from boring, repetitive work–so you can take on the sophisticated, high-value projects you really want. Top scripting guru Don Jones has written the definitive administrator’s guide to getting results with Microsoft’s key scripting technologies: VBScript, WMI, and ADSI.



Jones draws on his unsurpassed experience training Windows administrators in conferences, classes, and from his enormously popular site, ScriptingAnswers.com.



You’ll learn how to use VBScript, WMI, and ADSI to gain administrative control over nearly every aspect of every recent Windows server or client, including Windows Server 2003, Vista, XP, 2000, and NT. As you gain experience, Jones introduces more advanced techniques, ranging from modular scripting and script encryption to integrating VBScript with HTML code.



Jones concludes with a full section of ready-to-run, real-world examples–from logon/logoff scripts to automated domain and network administration, from querying WMI to creating Active Directory groups. Every script is explained line-by-line, with challenging techniques described in even greater detail.


ßçûê: en

Ðóáðèêà: Òåõíîëîãèÿ/

Ñòàòóñ ïðåäìåòíîãî óêàçàòåëÿ: Ãîòîâ óêàçàòåëü ñ íîìåðàìè ñòðàíèö

ed2k: ed2k stats

Ãîä èçäàíèÿ: 2007

Êîëè÷åñòâî ñòðàíèö: 505

Äîáàâëåíà â êàòàëîã: 30.12.2007

Îïåðàöèè: Ïîëîæèòü íà ïîëêó | Ñêîïèðîâàòü ññûëêó äëÿ ôîðóìà | Ñêîïèðîâàòü ID
blank
Ïðåäìåòíûé óêàçàòåëü
.NET Framework      18
Abort button      107
abs( ) function      126
ACEs (access control entries), WMI (Windows Management Instrumentation)      300
Active Directory Services Interface (ADSI)      see “ADSI (Active Directory Services Interface)”
Active Server Pages (ASPs)      384 410
ActiveX Data Objects (ADO)      see “ADO (ActiveX Data Objects)”
ActiveX scripting languages      16—18
AD (Active Directory) scripts, logoff scripts      451—454
AD (Active Directory) scripts, logon scripts      440—446 453—454
AD (Active Directory) scripts, logon scripts, specific logon scripts      446—451
AD (Active Directory), attributes      260
AD (Active Directory), classes      260
AD (Active Directory), OUs (organizational units), creating      260—261
AD (Active Directory), OUs (organizational units), deleting      263—264
AD (Active Directory), OUs (organizational units), modifying      261—263
AD (Active Directory), OUs (organizational units), querying      263
AD (Active Directory), users and computers, targeting      477—479
AddPrinterConnection method (Network object)      177
Addresses, IP addresses, third octet      63
Addresses, local IP addresses, attaining      61—63
AddUsers.vbs listing (28.1)      456—463
AddUsersFromXLS.vbs listing (3.2)      49—50
AddUsersFromXLS.vbs listing (3.3)      50—53
AddWindowsPrinterConnection method (Network object)      177
ADLogon1.vbs listing (27.3)      446—448
ADLogon2.vbs listing (27.4)      448—451
Administrative scripts, domains      455 480
Administrative scripts, inactive users, finding      464—469
Administrative scripts, network administrative scripts      481 495
Administrative scripts, network administrative scripts, listing hot fixes      492—495
Administrative scripts, network administrative scripts, listing software      492—495
Administrative scripts, network administrative scripts, open file monitoring      486—488
Administrative scripts, network administrative scripts, remote computer shutdowns      481—483
Administrative scripts, network administrative scripts, remote MSI package uninstalls      489—492
Administrative scripts, network administrative scripts, remote share listings      484—486
Administrative scripts, system information, collecting      469—474
Administrative scripts, templates      474—479
Administrative scripts, user creation, automating      455—463
ADO (ActiveX Data Objects)      384 455
ADO (ActiveX Data Objects), Excel spreadsheets, queries      455—463
Adobe Dreamweaver      410
ADOs (ActiveX Data Objects)      422
ADSI (Active Directory Services Interface)      168 173 247 257 335 355 497 508
ADSI (Active Directory Services Interface), domains, manipulating      269
ADSI (Active Directory Services Interface), domains, OUs (organizational units)      260—264
ADSI (Active Directory Services Interface), domains, preloading      264—269
ADSI (Active Directory Services Interface), domains, querying      257—259
ADSI (Active Directory Services Interface), domains, reconfiguring      259
ADSI (Active Directory Services Interface), functions, writing      340—342
ADSI (Active Directory Services Interface), mass password changes, executing      503—505
ADSI (Active Directory Services Interface), object creation scripts, creating      500—502
ADSI (Active Directory Services Interface), object deletion scripts, creating      502—503
ADSI (Active Directory Services Interface), object query scripts, creating      502
ADSI (Active Directory Services Interface), objects      247—249
ADSI (Active Directory Services Interface), provider names      248
ADSI (Active Directory Services Interface), providers      254—255
ADSI (Active Directory Services Interface), providers, GC (Global Catalog)      254
ADSI (Active Directory Services Interface), providers, IIS      254
ADSI (Active Directory Services Interface), providers, LDAP      248—254
ADSI (Active Directory Services Interface), providers, NDS (NetWare Directory Services)      254
ADSI (Active Directory Services Interface), providers, NWCOMPAT      254
ADSI (Active Directory Services Interface), providers, OLE DB      254
ADSI (Active Directory Services Interface), providers, WinNT      248—252
ADSI (Active Directory Services Interface), queries, debugging      366—370
ADSI (Active Directory Services Interface), remote shares, listing      484—486
ADSI (Active Directory Services Interface), scripts, debugging      357—358
ADSI (Active Directory Services Interface), scripts, designing      335—340
ADSI (Active Directory Services Interface), scripts, testing      351—355
ADSI (Active Directory Services Interface), scripts, writing      343—350
ADSI (Active Directory Services Interface), subroutines, writing      340—342
ADSIDebug.vbs listing (21.2)      368—370
ADSystemInfo object      179—180
Advanced arithmetic, VBScript      118—121
Advanced VBScript for Windows Administrators      409 420
American National Standards Institute (ANSI)      299
AND Boolean operator      156
ANSI (American National Standards Institute)      299
antivirus software      406
AppActivate method (Shell object)      185
Applications, graphical applications      410
Applications, HTAs (HTML Applications)      409—410 420
Applications, HTAs (HTML Applications), building      410
Applications, HTAs (HTML Applications), event handlers      410 418—420
Applications, HTAs (HTML Applications), event-driven scripting      410
Applications, HTAs (HTML Applications), functional code      411—412
Applications, HTAs (HTML Applications), HTML code conversion      414—416
Applications, HTAs (HTML Applications), Mshta.exe      411
Applications, HTAs (HTML Applications), scheduled tasks      410
Applications, HTAs (HTML Applications), script code      416—418
Applications, HTAs (HTML Applications), security context      409
Applications, HTAs (HTML Applications), user interface design      412—413
Applications, HTAs (HTML Applications), writing      411—420
Argument method (Shortcut object)      187
Arithmetic, VBScript      116—118
Arithmetic, VBScript, advanced arithmetic      118—121
Arithmetic, VBScript, Boolean math      121—126
Arrays      145 152
arrays, creating      149—151
arrays, dynamic arrays      149
Arrays, manipulating      149—151
Arrays, multidimensional arrays      149
Arrays, numeric variables, array elements      151—152
Arrays, VBScript      149
Asc( ) function      118
ASPs (Active Server Pages)      384 410
Assigning data to variables      82—83
Associations, WMI (Windows Management Instrumentation)      319
Associations, WMI (Windows Management Instrumentation), instances      321—325
Associations, WQL (WMI Query Language)      317
ASSOCIATORS OF query, WMI instances, associating      321—325
Associators, WQL (WMI Query Language)      303
Atn( ) function      118
Attributes property (Folder objects)      200—202
Attributes property (FSO File object)      204
Attributes, AD (Active Directory)      260
Automating, tasks, domains      455 480
Automating, user creation, domains      455—456 459—463
AvailableSpace property (Drive object)      195
batch files      2 20
Best practices, MsgBox statement      106—107
Boolean math, VBScript      121—126
Boolean operators      156—157
Boolean operators, WQL (WMI Query Language)      301—302
Bugs, scripts      421—422 435
Bugs, scripts, logic errors, debugging      425—435
Bugs, scripts, prevention      31
Bugs, scripts, syntax errors, preventing      422—425
Building HTAs (HTML Applications)      410
BuildPath function, FSO (FileSystemObject)      209—210
built-in commands      75
built-in functions      42 (see also“Intrinsic functions”)
Built-in functions, custom functions, compared      88—92
Built-in subroutines      see “Statements”
Buttons, Abort      107
Buttons, dialog boxes, Cancel button      105
Buttons, Ignore      107
Buttons, message boxes      103
Buttons, Retry      107
bytes      145
Bytes, converting      152
Bytes, VBScript      152
Calculator, Scientific mode      124
Cancel button, dialog boxes      105
Candidate modules, identifying      223
CBool( ) function      126
CByte( ) function      152
CCur( ) function      126
CD-ROM drive type      196
CDbl( ) function      126
certificate rules      400
Characters, double quotation marks, strings      129—130
Characters, line continuation characters (_)      79 337
Characters, underscore (_) character      79 106
CheckFolder.vbs listing (12.3)      200—202
CheckGroupMembership.vbs listing (16.1)      276—277
Checking group membership      61
CheckRoutes.vbs listing (17.2)      297
Chr( ) function      130
CIM (Common Information Model), WMI (Windows Management Information)      284
CInt( ) function      126
Classes, AD (Active Directory)      260
Classes, finding, WMI (Windows Management Instrumentation)      293—294
Classes, WMI (Windows Management Instrumentation)      284—285 305
Classes, WMI (Windows Management Instrumentation), associations      319—325
Classes, WMI (Windows Management Instrumentation), interrelated classes      300 317—320
Classes, WMI (Windows Management Instrumentation), Win32_OperatingSystem class      336—337 349 482—483
Classes, WQL (WMI Query Language), interrelated classes      317
Classid parameter (WSCs)      383
CLng( ) function      126
Code wizards      32
Code, bugs      421—422 435
Code, bugs, logic errors      425—435
Code, bugs, syntax errors      422—425
Code, debug code, adding      236 239
Code, debugging, logic errors      425—435
Code, debugging, syntax errors      422—425
Code, error-handling code      70
Code, functional code, HTAs (HTML Applications)      411—412
Code, HTML code, converting for HTA (HTML Applications)      414—416
Code, inline code      45
Code, pseudocode      56
Code, reusable code      31
code, reusing      424—425
Code, script code, adding to HTA (HTML Applications)      416 418
Coercion, numeric data types      126—127
Collections, COM objects      96
CollectSysInfo.vbs listing (28.3)      469—474
COM (Component Object Model) objects      18 20 76 94—98 439
COM (Component Object Model) objects, collections      96
COM (Component Object Model) objects, methods      95—96
COM (Component Object Model) objects, properties      95
COM (Component Object Model) objects, sample object (Tree object)      97—98
COM (Component Object Model) objects, scripting with      98—99
Command-line input, message boxes, asking for      109—110
Command-line parameters as input      110—114
Command-line scripts      23—25
Command-line scripts, execution of      110
Command-line scripts, parameters, parsing      111—114
Command-line scripts, running      111
command-line utilities      110
Commands, built-in commands      75
Commands, DatePart      224
commands, format      223
Commands, Len      225
Commands, MapPrinter      67
commands, Net      60
Commands, NET TIME      445
Commands, Option Explicit      81
Commands, Right      224
Commands, Sleep      186
Commands, WScript.Echo      213—214
Comments      48—53
Common Information Model (CIM), WMI (Windows Management Instrumentation)      284
Comparison operators, WQL (WMI Query Language)      302—303
Complex information queries, testing      325—326
Complex information queries, writing      325
Complex information queries, writing, VBScript      326—333
Complex information, WMI (Windows Management Instrumentation)      300 317—319
Complex information, WQL (WMI Query Language)      317
Component Object Model (COM) objects      see “COM (Component Object Model) objects”
CompressAll.vbs listing (19.2)      330—333
Computer programming      75
ComputerName method (Network object)      178
Computers, minimum requirements      8
Concatenating, strings      135—139
Conditional errors      70
Conditional execution statements, If/Then      156—161 170—171
Conditional execution statements, Select/Case      161—162
Conditional executions, scripts      155—162
Conditional executions, scripts, If/Then conditional execution statement      156—161 170—171
Conditional executions, scripts, Select/Case conditional execution statement      161—162
Connections, remote computers, WMI (Windows Management Instrumentation)      287—289
Const statement      80
Constants      466
Constants, variables, compared      80
Constructs, If/Then      69
Constructs, Select/Case      48
Consumers, WMI (Windows Management Instrumention)      285—286
Control-of-flow statements      155
Converting, bytes      152
Converting, data types to numeric data      127
Converting, data types to strings      142—143
Converting, date and time data      147
Converting, HTML code, HTAs (HTML Applications)      414—416
Converting, numeric data types      126—127
Copy method (Folder objects)      198
Copy method (FSO File objects)      204
CopyFolder method (FSO)      197
Copying-and-pasting, script      373—377
Copying-and-pasting, script, WSCs (Windows Script Components)      378 382—384 387
COS( ) function      118
cosines      115
Create method      260—261
Create method (objDomain)      248
CreateFolder method (FSO)      197
CreateObject      247—248
CreateShortcut method (Shell object)      183
CreateTextFile method (Folder objects)      198 347
Critical icon      107
CScript.exe      23—25 114
CScript.exe executable, deleting      405—406
CScript.exe, command-line parameters      114
CSng( ) function      126
CStr( ) function      130
Currency number types      116
Custom functions, intrinsic functions, compared      48 88—92
Custom functions, main script      45—46
Custom statements      see “Subroutines”
Custom subroutines, creating      92—94
Custom subroutines, main script      45—46
Custom subroutines, statements, compared      48
Data coercion      83—85
Data types      82
Data types, assumptions      127
Data types, date and time      145—148
Data types, date and time, converting      147
Data types, numeric data types, converting      126—127
Data types, numeric data types, converting to      127
Data types, numeric data, converting to      127
Data types, strings, converting to      142—143
Database Browser      32
Date and time data type      145—148
Date and time data type, converting      147
Date( ) function      42 85 227
DateAdd( ) function      147—148 223
DateCreated property (FSO File object)      204
DateDiff( ) function      87 467
DateLastAccessed property (FSO File object)      204
DateLastModified property (FSO File object)      204
DatePart command      224
DatePart( ) function      118 146
Dates, future dates, working with      147—148
Dates, getting      146—147
Dates, past dates, working with      147—148
Dates, VBScript      145—148
Day( ) function      146
Debug code, adding      236 239
Debuggers      434—435
Debugging scripts, syntax errors      422—425
1 2 3 4 5 6 7
blank
Ðåêëàìà
blank
blank
HR
@Mail.ru
       © Ýëåêòðîííàÿ áèáëèîòåêà ïîïå÷èòåëüñêîãî ñîâåòà ìåõìàòà ÌÃÓ, 2004-2024
Ýëåêòðîííàÿ áèáëèîòåêà ìåõìàòà ÌÃÓ | Valid HTML 4.01! | Valid CSS! Î ïðîåêòå