The book you need to succeed! Vbscript, jscript



Yüklə 12,95 Mb.
Pdf görüntüsü
səhifə7/91
tarix07.11.2018
ölçüsü12,95 Mb.
#78682
1   2   3   4   5   6   7   8   9   10   ...   91

xviii
 
 Contents
Managing Network Printers .............................................................................................206
Setting a default printer ..........................................................................................206
Adding printer connections ....................................................................................206
Removing printer connections ................................................................................208
Summary ..........................................................................................................................209
Confi guring Menus, Shortcuts, and Startup Applications
Chapter 11: 
 . . . . . 211
Working with Menus, Desktops, and Startup Applications .............................................. 212
Creating Shortcuts and Menu Options ............................................................................. 213
Obtaining a target folder for the shortcut ................................................................ 213
Obtaining a shortcut object .................................................................................... 214
Setting properties for link shortcuts ....................................................................... 216
Setting shortcut arguments ........................................................................... 216
Setting shortcut hotkeys ................................................................................ 217
Setting icon locations .................................................................................... 218
Setting working directories ........................................................................... 219
Setting properties for URL shortcuts .......................................................................220
Managing Shortcuts and Menus .......................................................................................220
Creating menus.......................................................................................................220
Accessing and listing menu options ........................................................................221
Updating current shortcuts and menu options ....................................................... 224
Deleting shortcuts and menu options .....................................................................225
Deleting menus .......................................................................................................226
Adding and Removing Startup Applications ..................................................................... 227
Adding startup options ........................................................................................... 227
Removing startup options ....................................................................................... 227
Moving startup options ..........................................................................................228
Summary ..........................................................................................................................229
Working with the Windows Registry and Event Logs
Chapter 12: 
 . . . . . . . . 231
Working with the Windows Registry ............................................................................... 231
Understanding the registry structure ......................................................................232
Reading registry keys and values ............................................................................233
Writing registry keys and values ............................................................................234
Creating new keys ..................................................................................................235
Deleting registry keys and values............................................................................236
Reconfi guring network services through the registry .............................................236
Managing WINS through Windows scripts ..................................................237
Managing DHCP through Windows scripts ..................................................239
Using Event Logs .............................................................................................................. 242
Viewing event logs .................................................................................................. 242
Understanding event entries ................................................................................... 243
Archiving event logs ...............................................................................................244
Writing to Event Logs ....................................................................................................... 245
Event logging basics ............................................................................................... 245
Working with the LogEvent method .......................................................................246
86804ftoc.indd   xviii
86804ftoc.indd   xviii
1/22/09   11:53:41 AM
1/22/09   11:53:41 AM


xix
 
Contents  
Reading Event Logs .......................................................................................................... 248
Introducing Dumpel ............................................................................................... 248
Using Dumpel .........................................................................................................249
Working with Dumpel in scripts ............................................................................ 251
Generating Event Log Reports ..........................................................................................253
Step 1: Creating the logs .........................................................................................253
Step 2: Formatting the logs for viewing .................................................................. 255
Summary .......................................................................................................................... 261
Part III: Network and Directory Service Scripting
Scheduling One-time and Recurring Tasks
Chapter 13: 
 . . . . . . . . . . . . . . . . 265
Scheduling Local and Remote Jobs ...................................................................................265
Scheduling basics ...................................................................................................265
Synchronizing the system time ...............................................................................267
Scheduling utilities .................................................................................................269
Using the Graphical Task Scheduler .................................................................................269
Running the wizard ................................................................................................269
Viewing wizard tasks .............................................................................................. 273
Changing task properties ........................................................................................ 274
Scheduling Jobs with AT .................................................................................................. 275
Using the AT Scheduler .......................................................................................... 275
Viewing scheduled AT jobs ..................................................................................... 276
Deleting scheduled AT jobs .................................................................................... 277
Scheduling with Scripts.................................................................................................... 278
Using AT in a script ................................................................................................ 278
Automated job creation ...........................................................................................280
Deleting jobs using scripts ......................................................................................282
Creating a scheduling manager script .....................................................................283
Summary ..........................................................................................................................287
Managing Computer and User Scripts
Chapter 14: 
 . . . . . . . . . . . . . . . . . . . . 289
Why Use Computer and User Scripts? ..............................................................................289
Introducing Group Policies ...............................................................................................290
How are policies used?............................................................................................290
When are policies applied? .....................................................................................292
How are local group policies managed? ..................................................................292
How are global group policies managed? ................................................................294
Using the policy consoles .......................................................................................295
Working with Computer and User Scripts .......................................................................296
Managing startup and shutdown scripts .................................................................296
Managing logon and logoff scripts ..........................................................................298
Alternatives to group policy ....................................................................................299
Summary ..........................................................................................................................300
86804ftoc.indd   xix
86804ftoc.indd   xix
1/22/09   11:53:41 AM
1/22/09   11:53:41 AM


Yüklə 12,95 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   10   ...   91




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə