Àâòîðèçàöèÿ
Ïîèñê ïî óêàçàòåëÿì
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.
ßçûê:
Ðóáðèêà: Òåõíîëîãèÿ /
Ñòàòóñ ïðåäìåòíîãî óêàçàòåëÿ: Ãîòîâ óêàçàòåëü ñ íîìåðàìè ñòðàíèö
ed2k: ed2k stats
Ãîä èçäàíèÿ: 2007
Êîëè÷åñòâî ñòðàíèö: 505
Äîáàâëåíà â êàòàëîã: 30.12.2007
Îïåðàöèè: Ïîëîæèòü íà ïîëêó |
Ñêîïèðîâàòü ññûëêó äëÿ ôîðóìà | Ñêîïèðîâàòü ID
Ïðåäìåòíûé óêàçàòåëü
Parameters, MapNetworkDrive method 175
ParentFolder property (FSO File object) 204
Parsing parameters, command-line scripts 111—114
Password parameter (MapNetworkDrive method) 175
passwords, creating 117—121
Passwords, domains, changing 259
Passwords, mass password changes, ADSI 503—505
Passwords, scripts, placing in 176
Past dates, working with 147—148
Path property (Drive object) 195
Path property (FSO File object) 204
path rules 401
Paths, LDAP 252
PCs (personal computers), minimum requirements 8
PFE (Programmer’s File Editor) 37
PFE (Programmer’s File Editor), scripting with 26—27
Ping command-line utility 110
Policies, software restriction policies 400—401
Policies, WSH trust policy, implementing 406
Popup method (Shell object) 187
PreLoad.vbs listing (15.1) 264—269
PreloadDomain2.vbs listing (16.2) 278—280
Preloading domains 264—269 277—281
Preserve keyword 150
PrimalScript 29—31
PrimalScript Wizard, WQL queries, writing 308 310—312
PrimalScript, Live Syntax Checking 422
PrimalScript, Snippets 377
PrimalScript, syntax errors, preventing 422—423
PrimalScript, TLB Browser 189
PrimalScript, WMI Wizard 336—337 340
Printers, mapping 61
Procedural programs 410
Progid parameter (WSCs) 383
programming books 76
Programming languages, strongly typed languages 82
Programming languages, weakly typed languages 82
Programming, computer programming 75
Programming, typographical elements 8—9
Programs, event-driven programs 410
Programs, procedural programs 410
Properties, COM objects 95
Properties, Drive object (FSO) 195—196
Properties, FSO (FileSystemObject), File objects 204—206
Properties, FSO (FileSystemObject), objects 202—203
Properties, WQL (WMI Query Language) 300—301
Provider names, ADSI 248
Providers, ADSI 254—255
Providers, ADSI, GC (Global Catalog) provider 254
Providers, ADSI, IIS provider 254
Providers, ADSI, LDAP provider 248 252—254
Providers, ADSI, NWCOMPAT provider 254
Providers, ADSI, OLE DB provider 254
Providers, ADSI, WinNT provider 248—252
Providers, LDAP provider 271
Providers, LDAP provider, ADSI, connections 248
Providers, LDAP provider, domain attributes 258
Providers, LDAP provider, domains, querying 257—259
Providers, LDAP provider, group creation 273
Providers, LDAP provider, group membership, checking 275—277
Providers, LDAP provider, user creation 273
Providers, LDAP provider, user settings, changing 274—275
Providers, NDS (NetWare Directory Services) provider 254
Providers, WinNT provider, ADSI connections 248—252
Providers, WinNT provider, domains, reconfiguring 259
Providers, WinNT provider, group creation 272
Providers, WinNT provider, LDAP 252—254
Providers, WinNT provider, open file monitoring 486—488
Providers, WinNT provider, user creation 272
Providers, WMI (Windows Management Instrumentation) 285—286
Pseudocode 56
Put method 263
Put method (objDomain) 248
Put method, user settings, changing 274—275
PutEx method 275
PwdHistoryLength domain attribute (LDAP provider) 258
Queries, ADSI queries, debugging 366—370
Queries, Excel spreadsheets, ADO (Active Directory Objects) 455—463
Queries, testing, WMI (Windows Management Instrumentation) 294—295
Queries, WMI queries, debugging 358—370
Queries, WMI queries, testing 325—326
Queries, WMI queries, writing 325—333
Queries, WQL (WMI Query Language) 299—301
Queries, WQL (WMI Query Language), associations 317
Queries, WQL (WMI Query Language), associators 303
Queries, WQL (WMI Query Language), Boolean operators 301—302
Queries, WQL (WMI Query Language), comparison operators 302—303
Queries, WQL (WMI Query Language), complex information 317
Queries, WQL (WMI Query Language), determining 304—305
Queries, WQL (WMI Query Language), keywords 303
Queries, WQL (WMI Query Language), properties 300—301
Queries, WQL (WMI Query Language), references 303
Queries, WQL (WMI Query Language), results 312—314
Queries, WQL (WMI Query Language), testing 306—308
Queries, WQL (WMI Query Language), writing 308—315
Queries, WQL queries, ASSOCIATORS OF query 321—325
Queries, WQL queries, REFERENCES OF query 323—325
Queries, WQL queries, WMI (Windows Management Insturmentation) 289—290
Queries, writing, WMI (Windows Management Instrumentation) 294—295
Queries, “impersonate” directive 315
Query scripts, WMI (Windows Management Instrumentation), creating 497—499
Querying, domains 257—259
Querying, OUs (organizational units) 263
Querying, user information, Get method 273—274
question mark icon 106
RAM Disk drive type 196
Randomize function 119
RealTimePublishers.com 2
ReDim statement 149
REFERENCES OF query, WMI instances, associating 323—325
References, WQL (WMI Query Language) 303
RegDelete method (Shell object) 184—185
RegRead method (Shell object) 184
RegWrite method (Shell object) 184
Remotable parameter (WSCs) 383
Remote computers, connecting to, WMI (Windows Management Instrumentation) 287—289
Remote computers, shutting down, WMI (Windows Management Instrumentation) 481 483
Remote MSI packages, uninstalling, WMI (Windows Management Instrumentation) 489—492
Remote name parameter (MapNetworkDrive method) 175
Remote shares, listing, ADSI 484—486
Removable drive type 196
RemoveNetworkDrive method (Network object) 176
RemovePrinterConnection method (Network object) 178
Renaming WScript.exe 406
replace( ) function 131
Requirements, computers 8
ResetPW.vbs listing (23.1) 391—393
Results, script testing, analyzing 236
Retrieve IP Address.vbs listing (4.4) 62
Retry button 107
Return values, MsgBox statement 104
reusable code 31
reusing code 424—425
Right command 224
Right( ) function 131 134
Rnd( ) function 119
RootFiles listing (5.5) 98—99
RootFolder property (Drive object) 195
Round( ) function 509
Routines, subroutines, encapsulation 373
Routines, subroutines, event handlers 410
Routines, subroutines, writing 223—227 340—342
RTrim( ) function 131
Rules, software 400
Run method (Shell object) 180
Running, command-line scripts 111
Running, encoded script 393
Running, first script 35
Running, scripts, WSH (Windows Script Host) 21—23
Running, signed scripts 404—405
Safe scripting, implementing 405—406
SAM (Security Accounts Manager) 247 271
SampleHTA.hta listing (25.1) 419—420
SAPIEN Primal Script, syntax errors, preventing 422—423
SAPIEN Primal Script, TLB Browser 189
ScanLog.vbs listing (12.6) 211—214
ScanLog2.vbs listing (12.7) 215—218
Scheduled tasks, HTAs (HTML Applications) 410
Scientific mode, Calculator 124
Scipts, query scripts, WMI (Windows Management Instrumentation) 497—499
Scipts, update scripts, WMI (Windows Management Instrumentation) 499—500
Scr files, WScript.exe associations, removing 405
Script editors, Notepad 26
Script editors, PFE (Programmer’s File Editor) 26—27
Script editors, VBScript editors 27—28
Script editors, VBScript IDEs 29—33
Script editors, What-You-See-Is-What-You-Get editors 410
Script Encoder 389
Script Encoder, encoded script, detriments 394
Script Encoder, encoded script, running 393
Script Encoder, encoded script, writing 390—393
Script Encoder, installing 390
Script extensions, Windows XP 399
Script hosts 14—16
Script libraries, creating 72
Script Package dialog box 395
Script packagers 394—397
script tags 392
Script, complex WMI queries, writing 325—333
Script, encoded script 389—390
Script, encoded script, detriments 394
Script, encoded script, running 393
Script, encoded script, writing 390—393
Script, encoding 397
Script, encrypted code 390
Script, script packaging 394—397
Script-based viruses 399
scripting 13—14
Scripting languages, ActiveX 16—18
Scripting, candidate modules, identifying 223
Scripting, dangers of 399—400
Scripting, errors, planning for 70—72
Scripting, event-driven scripting, HTAs (HTML Applications) 410
Scripting, FormatLogFileName function, writing 223—227
Scripting, functions, writing 223—227
Scripting, interpretation 17
Scripting, main script, writing 228—234
Scripting, Notepad 25—26
Scripting, PFE (Programmer’s File Editor) 26—27
Scripting, safe scripting, implementing 405—406
Scripting, security 405—406
Scripting, security issues 18—19
Scripting, strings, double quotation marks 129—130
Scripting, subroutines, writing 223—227
Scripting, typographical elements 8—9
Scripting, VBScript Editors 27—28
Scripting, VBScript IDEs 29—33
Scripting, Windows administrators 13
Scripting, with objects 98—99
ScriptingAnswers.com 2 420
ScriptingOutpost.com 377
ScriptingTraining.com 2
Scriptomatic tool 340
Scriptomatic tool (WMI) 292—293
Scriptomatic, WQL queries, writing 308—312
Scripts 2
Scripts, administrative scripts 455 480
Scripts, administrative scripts, inactive user discovery 464—469
Scripts, administrative scripts, system information collection 469—474
Scripts, administrative scripts, templates 474—479
Scripts, administrative scripts, user creation automation 455—463
Scripts, ADSI mass password changes, performing 503—505
Scripts, ADSI object creation scripts, creating 500—502
Scripts, ADSI object deletion scripts, creating 502—503
Scripts, ADSI object query scripts, creating 502
Scripts, bugs 421—422 435
Scripts, bugs, logic errors 425—435
Scripts, bugs, syntax errors 422—425
Scripts, checking 14
Scripts, command-line scripts 23—25
Scripts, command-line scripts, execution of 110
Scripts, command-line scripts, parsing parameters 111—114
Scripts, command-line scripts, running 111
scripts, comments 48—53
Scripts, completing 241
scripts, debugging 357—358
Scripts, debugging, logic errors 425—435
Scripts, debugging, syntax errors 422—425
Scripts, decision making in 48
Scripts, deployment 17
Scripts, designing 55 219—220 335—340
Scripts, designing, fact gathering 220—221
Scripts, designing, module creation 63—69
Scripts, designing, script outlines 222
Scripts, designing, task definitions 221—222
Scripts, designing, task lists 56—58
Scripts, designing, tool selection 58—63
Scripts, digitally signing 402—405
scripts, documentation 48—53
Scripts, errors, identifying 231—233
Scripts, executions 155 167—170
Scripts, executions, conditional executions 155—162
Scripts, executions, loops 162—167
Scripts, first script, debugging 35—36
Scripts, first script, running 35
Scripts, first script, writing 33—35
Scripts, functions 39—43
Scripts, HTAs (HTML Applications), adding 416—418
Scripts, HTAs (HTML Applications), writing 411—420
Scripts, logoff scripts 439
Scripts, logoff scripts, AD scripts 451—454
Scripts, logon scripts 439
Scripts, logon scripts, AD scripts 440—454
Scripts, logon scripts, NT scripts 440—454
Scripts, main script 44—45
Scripts, main script, custom functions and subroutines 45—46
Scripts, main script, intrinsic functions 47—48
Scripts, main script, statements 47—48
Scripts, main script, writing 343—350
Scripts, modifying 240—241
Scripts, modualrizing 63—69
Scripts, modularization 373—377 388
Scripts, modularization, detriments 377
Scripts, modularization, reason for 377
Scripts, modularization, WSCs (Windows Script Components) 378—384 387
Scripts, native scripts 17
Scripts, network administrative scripts 481 495
Scripts, network administrative scripts, listing hot fixes 492—495
Scripts, network administrative scripts, listing software 492—495
Scripts, network administrative scripts, open file monitoring 486—488
Scripts, network administrative scripts, remote computer shutdowns 481—483
Scripts, network administrative scripts, remote MSI package uninstalls 489—492
Scripts, network administrative scripts, remote share listings 484—486
Scripts, passwords, placing in 176
Scripts, polishing 243
Scripts, pseudocode 56
Scripts, reusing 424—425
Scripts, running, WSH (Windows Script Host) 21—23
Scripts, scipt-based viruses 399
Scripts, script hosts 14—16
Scripts, service accounts, updating 505—508
scripts, ShutDown scripts 451
Scripts, signed scripts 402—405
Scripts, signed scripts, running only 404—405
Scripts, statements 44
Scripts, subroutines 39 43—44
scripts, testing 234—236 239—241—243 351—352 355
Scripts, text-based scripts 17
Scripts, VBScript, typical scripts 39 42
Scripts, Windows 9x scripts, execution 440
Ðåêëàìà