COMMAND-LINE AND AUTOMATION TOOLS
|
|
|
- Luke Stafford
- 10 years ago
- Views:
Transcription
1 29 COMMAND-LINE AND AUTOMATION TOOLS Command-Line Tools Despite the ease of use of the Windows graphical user interface, the command-line interface remains a useful way to perform many maintenance, configuration, and diagnostic tasks. Many of the most important diagnostic tools such as ping, tracert, and nslookup are available only from the command line, unless you purchase third-party graphical add-ons to perform these functions. And although the term batch file might bring back uncomfortable memories of the old MS-DOS days, batch files and program tip scripts are still powerful tools In this book, I only have room to that provide a useful way to show you how to set up and configure the command-line environment. encapsulate common management functions. Together, command-line utilities, batch files, examples, and many helpful tips on For much more detail, tutorials, and scripts based on Windows using command-line tools, check out Script Host provide a complete Brian s book Windows 7 and Vista set of building blocks from Guide to Scripting, Automation, and which you can build high-level Command Line Tools, published by Que. utilities for repetitive or complex tasks.
2 PART VI 822 Command-Line and Automation Tools The Windows 7 Command Prompt Environment To open a Command Prompt window in which you can type commands and review output, as shown in Figure 29.1, click Start, All Programs, Accessories, Command Prompt. Alternately, click Start and type cmd in the Search box. Then, when cmd.exe has been located, press Enter. Figure 29.1 The Command Prompt window is the gateway to a world of powerful Windows management tools. The main difference between a standard Windows application and a command-line program which in Windows is technically called a console program is that it doesn t use a graphical display or pull-down menus. Instead, you type commands into the Command Prompt window to tell Windows to do something, and the programs type information back to you. Each command line starts with the name of the program that you want to run, followed by additional information called arguments. Arguments tell the program what specifically you want to do. When you type a command line, Windows searches a list of folders called the search path for a file whose name starts with the program name you typed and whose name ends with any of several extensions such as.exe,.bat, and.vbs. The most common program extensions are listed in Table Windows examines the file to see what type of program it is, and then runs it. It s then the program s job to interpret any arguments you typed after the program name. tip If you plan on using the Command Prompt window regularly, pin it to the taskbar for quick access. Rightclick the Command Prompt window icon in the taskbar and select Pin This Program to Taskbar. tip You can also open a Command Prompt window from Windows Explorer. Hold the Shift key down, right-click a folder name, and select Open Command Window Here. The window will open with the selected folder as the default folder.
3 Table 29.1 Extension.bat,.cmd.com.exe.js.msc.vbs Typical Executable Program Extensions The Windows 7 Command Prompt Environment Program Type Batch file Archaic MS-DOS program Windows GUI program, console program, or MS-DOS program (Windows determines which by examining the contents of the file) Script file written in the JavaScript language Microsoft Management Console snap-in Script file written in the VBScript language 823 CHAPTER 29 The search path is defined by a list of folder names in the PATH environment variable, and the complete list of extensions that Windows looks for is defined in the PATHEXT environment variable. The default search path includes the following folders: C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0 This means that any program file, batch file, or script stored in any of these folders can be run simply by typing its name. You can start both Windows programs and command-line programs in this way. For example, you just have to type notepad to start the Notepad accessory. If you create your own batch files, scripts, or programs, it s a good idea to create a separate folder to store them in, and to put that folder in the search path. I ll show you how to do so later in this chapter, under Setting the PATH Environment Variable. Running Commands with Elevated Privileges Some command-line programs require elevated privileges (via User Account Control) to do their job correctly. To run a command-line program with elevated privileges, you must run it from a Command Prompt window that is itself elevated. To open an elevated Command Prompt window, click Start, All Programs, Accessories. Then right-click Command Prompt and select Run As Administrator. Or, if you have the Command Prompt icon pinned to your taskbar, there are two quick ways to open an elevated prompt: Right-click the icon, right-click the Command Prompt label in the Jump List pop-up, and then select Run As Administrator. Hold down the Shift+Ctrl keys and click the icon. caution Be very careful when using an elevated Command Prompt window. Any commands you start from within this window will run with elevated privileges from the get-go, and you will receive no further UAC prompts when you start them. This includes Windows GUI programs for example, if you type the command optionalfeatures, you will get the Turn Windows Features On or Off dialog box, and you will not have to confirm anything before it starts. To be safe, do not use an elevated Command Prompt window for generalpurpose work. Use it only to accomplish a specific task that requires elevated privileges; then close it.
4 PART VI 824 Command-Line and Automation Tools If you want, you can set a Command Prompt shortcut or pinned taskbar icon so that it is elevated by default. Right-click the icon and select Properties. On the Shortcut tab, click the Advanced button, and check Run As Administrator. Be sure to rename the shortcut so that it s clear that it opens an elevated prompt. Learning About Command-Line Programs How do you know what programs are available and how to use them? For that, you have to turn to documentation about the command-line environment. For some reason, Microsoft no longer provides this in the Help and Support system, but you can search online, and some programs can be told to display their own usage information. To show you what s available, we have posted a list of all the programs included with Windows 7 at And you might want to check out Brian s book Windows 7 and Vista Guide to Scripting, Automation, and Command Line Tools. For a general online listing, perform this Google search, and then locate the A Z listing for Windows Server 2008 or Windows Server Most of the programs listed there are available on Windows 7. site:microsoft.com command line a-z windows server To get additional information on a command that interests you, try the following sources, in the order listed. I ll use the rasdial command in the examples that follow, but you can use the same technique with any command that interests you. A majority of command-line commands will print help information if you add /? to the command line. For example, to get information for the rasdial command, type rasdial /?. If the command prints so much text that it scrolls out of view, use one of the following techniques to read it all: Use the Command Prompt window s scrollbars to back up. Press F3 to recall the command line, add more to the end of the line, and press Enter. This will pipe the help listing through the more command, which displays it one screenful at a time. Press Enter after reading each screen. Type the command help rasdial. If too much text prints, use the techniques just listed to manage the overflow. Open Internet Explorer and type rasdial in the Search window. You might also try the Google search site:microsoft.com rasdial. Not every one of those information sources will work for every command, but at least one should lead you to an explanation of what the command does and what its command-line options are, and provide some examples of its use. The command-line options for Windows 7, Vista, XP, and Server 2003 and Server 2008 are pretty much the same, so if you can t find any Windows 7 specific information, documentation for the other versions should be okay to use.
5 Setting Environment Variables Cutting and Pasting in the Command Prompt Window 825 Although you will usually use output redirection to store the output from command-line programs in files, you can also use cut and paste to move text into or out of a Command Prompt window. CHAPTER 29 To paste text into the window at the cursor location, click the window s System Menu (the upperleft corner) and select Edit, Paste. It s easier to do this without the mouse: just press Alt+Spacebar and type E P. To copy text from the window to the Clipboard, click the window s System Menu and select Edit, Mark. Alternatively, type Alt+Spacebar E M. Use the mouse to highlight a rectangular area of the screen, and then press Enter. This copies the text to the Clipboard. By default, the mouse does not select text until you use the Mark sequence. This makes it easier to use MS-DOS programs that are mouse-aware. If you seldom use the mouse with MS-DOS applications, click the System Menu (or press Alt+Spacebar), select Defaults, and check Quick Edit. When Quick Edit is enabled, you can use the mouse to mark text for copying to the Clipboard without having to type Alt+Spacebar E M first. Setting Environment Variables Using environment variables is one of the ways that Windows communicates information such as the location of system files and folders as set up on your particular computer to programs. Environment variables indicate where temporary files are stored, what folders contain Windows program files, and other settings that affect program operation and system performance. In addition, they can be used in batch files to temporarily hold information about the job at hand. In Windows 7, the initial environment variables that are defined when every Command Prompt window is first opened are set up using the GUI shown in Figure Figure 29.2 Examining the environment variables for the current user (top) and for all users of the system (bottom). The per-user list adds to or overrides the systemwide list.
6 PART VI 826 Command-Line and Automation Tools Notice that this dialog box has two sections, System Variables and User Variables. The lower, System Variables section defines the environment variables set up for every user account. The upper, User Variables section defines additional default environment variables just for the current user account. These add to or override the variables set up in the systemwide list. To open this dialog box, if you are a computer administrator user, use either of these two methods: If you have a Command Prompt window open, type the command start sysdm.cpl and press Enter. You might need to confirm a UAC prompt. Then, select the Advanced tab, and click the Environment Variables button. Alternatively, click Start, right-click Computer, and select Properties. Select Advanced System Settings. You might need to confirm a UAC prompt. Then, click the Environment Variables button. You can now edit both the upper User Variables (personal settings) and lower System Variables (systemwide settings) lists. If you are not a computer administrator user, it s a bit trickier. Use either of these two procedures: To edit the systemwide settings, you can use either of the preceding methods, but you ll have to supply an administrator password. Don t change the upper (personal) part of the dialog box you will be changing settings for the wrong account. To edit your own personal environment variable list, you must use the following method: Click Start, Control Panel, User Accounts and Family Safety, User Accounts. In the task list at the left side, click Change My Environment Variables. You will be able to edit only the upper (personal) environment variable list. After you have the dialog box open, you can create new variables, delete variables, or highlight and edit existing variables using the corresponding buttons. If you need to alter a variable, you must understand what happens if there s a conflict between environment variables defined in both the System Variables and User Variables lists. As a rule, Windows examines several locations for definitions, and the last definition seen wins. Windows sets variables from the following sources, in this order: 1. The systemwide variable list. 2. The personal variable list. (At this step, the PATH variable is treated specially. See the next section for details.) 3. Set commands in autoexec.nt. (This applies only for MS-DOS or Windows 3.x applications. See The MS-DOS Environment later in the chapter for more information.) 4. Subsequent definitions issued by set commands typed in a Command Prompt window or encountered in a batch file. These changes apply only to that particular window and will disappear when the window is closed.
7 Setting the PATH Environment Variable Setting Environment Variables 827 If you write batch files or scripts, it s useful to put them into one folder, and to add this folder name to the PATH variable, so that you can run your batch files and scripts simply by typing their names. CHAPTER 29 Because mis-editing the PATH variable can prevent Windows from finding applications it needs to run, Windows gives the personal PATH definition special treatment: For the PATH variable, the User Variables definition is added to the end of (appended to) the System Variables definition. For all other environment variables, a User Variables definition overrides a System Variables definition. In other words, you can enter your own personal folder(s) into the User Variables definition of PATH without worrying about copying or messing up the system definitions. To create a folder for your own scripts and batch files, use one of these two procedures: If you want to use the scripts and batch files only for your own use, create a folder, and put the full path to the folder into your personal PATH variable. For example, create a folder named c:\scripts. Then, add a PATH variable to the upper part of the Environment Variables dialog box (refer to Figure 29.2) with the value c:\scripts. If you need to add more than one folder to your personal PATH, put a semicolon (;) between each folder name. If you want to create scripts and batch files that can be used by anyone who uses your computer, create a folder and be sure that its permissions are set so that all users can read it. For example, create a folder named c:\scripts. Right-click the folder, select Properties, and select the Security tab. If Users does not appear under Group or User Names, click Edit, then Add, and add Users to the list. Be sure that the Read & Execute permission setting is checked. To learn more about editing file and folder permissions, see NTFS File Permissions, p Then, carefully edit the PATH variable in the lower part of the Environment Variables dialog box (shown in Figure 29.2). Add a semicolon (;) to the end of the existing text, and then add the folder name c:\scripts. Your folder now will be part of the PATH when you open a new Command Prompt window.
8 PART VI 828 Command-Line and Automation Tools The MS-DOS Environment If you still use MS-DOS programs, you ll be glad to know that the 32-bit versions of Windows 7 still support MS-DOS programs. Windows 7 and all other versions of Windows based on Windows NT run MS-DOS applications inside a program called ntvdm, which stands for Windows NT Virtual DOS Machine. Ntvdm is also used by the Windows 3.x support environment. It simulates the environment that DOS programs expect and makes them work correctly under Windows. Ntvdm runs automatically when you attempt to start an MS- DOS or 16-bit Windows program. You don t have to take any special steps to activate it, but you can tune it in several ways by doing the following: Configure user variables in the Environment Variables dialog box, as discussed in the section Setting Environment Variables earlier in the chapter. Make selections from the DOS window s control menu. Make settings in the Properties dialog box for a shortcut to the DOS application. Set up custom autoexec.nt and config.nt configuration files so that you can address special memory, driver, or environment variable requirements a DOS program might have. Enter environment-altering commands at the command prompt. I discuss these settings in the next several sections. For more information about virtual PCs, see Taking the Virtual Machine Approach, p. 72. For more information about The Virtual XP system, see Appendix A, Using Virtualization on Windows 7. note The MS-DOS and 16-bit Windows subsystems are not provided with the 64-bit versions of Windows. If you use a 64-bit version of Windows 7 and still need to run MS-DOS or Windows 3.1 applications, you can download and install the free Microsoft Virtual PC program from microsoft.com, or use VMWare from With either of these programs, you can set up a virtual computer, install a copy of MS-DOS, Windows 3.1, or any subsequent version of Windows, and run your older applications inside the simulated environment. Be sure to install Virtual PC s Guest Extensions inside the hosted operating system these provide important enhancements. For example, they allow you to cut and paste between programs running inside and outside the virtual computer. This isn t quite as effortless as the built-in support provided by 32-bit versions of Windows, but it works very well. If you have Windows 7 Professional, Ultimate, or Enterprise edition, you might also be able to use MS-DOS applications installed in the Virtual XP system, which is a free download you can get from Microsoft.
9 The MS-DOS Environment 829 CHAPTER 29 MS-DOS App Says Too Many Files Open If you run an MS-DOS application and it gives an error message saying there are too many files open, you must modify config.nt (or create a custom config file). You should change the line that reads, for example, files = 40 to a larger number; for example, files = 100. See Customizing Autoexec.nt and Config.nt, later in this chapter, for instructions on modifying config.nt. MS-DOS Application Displays Strange Characters If your older MS-DOS application displays lots of strange characters on the screen, especially the combination [, your program expected the support of a display driver called ansi.sys. You need to add the following line to your config.nt file, using the instructions under Customizing Autoexec.nt and Config.nt later in the chapter: device=ansi.sys Editing Advanced Settings for a DOS Application If you re experiencing difficulties while running a specific DOS program, you can fine-tune the VDM environment for the particular application, allowing it to run more smoothly, or in some cases simply allowing it to run at all. DOS property settings can affect many aspects of an application s operation, such as (but not limited to) the following: The drive and folder (directory) selected as the default when an application starts Full-screen or windowed operation upon launch Conventional memory usage Expanded or extended memory usage The application s multitasking priority level The application s shortcut keys Foreground and background processing To edit these properties for a DOS program, do the following: 1. Find the program file or a shortcut to it. 2. Right-click and choose Properties. note If the program is stored on an NTFSformatted partition, the standard Security tab will also be listed in the Properties dialog box.
10 PART VI 830 Command-Line and Automation Tools Poke through each tab, and use the? (question mark) button for help on the settings. Educational and game programs will most often require you to adjust the Memory and Compatibility settings. Customizing autoexec.nt and config.nt You can choose to further configure the MS-DOS and Windows 3.x environment by modifying Windows 7 s equivalent of the old CONFIG.SYS and AUTOEXEC.BAT files. These files are called config.nt and autoexec.nt and are used to configure each DOS VDM when it starts up. Just remember: The files CONFIG.SYS and AUTOEXEC.BAT in your hard drive s root folder are completely ignored by Windows 7. If they re there at all, it s only to fool really old applications that won t run unless they see that these files exist. tip The Screen tab s Usage options determine whether the application initially comes up windowed or full screen. You still can toggle between views by pressing Alt+Enter. Of course, in full-screen display, the mouse is surrendered to the application. When you use a mouse with a windowed application, the mouse works within the window on its menus, and with Windows when you move the mouse back to the Windows desktop. No DOS-based mouse driver is needed. Mouse support is provided automatically. The files config.nt and autoexec.nt in \windows\system32 are used, but only when Windows needs to start up an MS-DOS or Windows 3.x application. Any change to these files will take effect the next time you start the application you don t need to restart Windows. The standard settings in config.nt as set up when Windows is installed are shown in the following listing. The REM comments have been removed for brevity. (If you upgraded your computer from an earlier version of Windows, your config.nt file might be different because the installer might have retained some of your previous operating system s settings.) dos=high, umb device=%systemroot%\system32\himem.sys files=40 You can edit the config.nt and autoexec.nt files with a simple text editor such as Notepad. They re protected files, however, so you must run an elevated version of Notepad, using this procedure: 1. Click Start, All Programs, Accessories. 2. Right-click Notepad and select Run As Administrator. 3. Confirm the UAC prompt, or enter an Administrator password as requested. (Alternately, you can just type notepad in an elevated Command Prompt window). tip On my computers, I always change the files setting to files=100 and add the line device=%systemroot%\ system32\ansi.sys. For more information about ansi.sys, see the next section. 4. Click File, Open, and browse to \windows\system32. Select autoexec.nt or config.nt as desired.
11 The MS-DOS Environment Most of the settings used in MS-DOS 6 still work in config.nt, with some changes as noted in Table CHAPTER 29 Table 29.2 Enhanced Settings for config.nt Command Description device= Installs loadable device drivers. Drivers that attempt to address hardware directly likely won t work; however, you can load display drivers such as ANSI.SYS and memory managers such as EMM.SYS and HIMEM.SYS. dosonly Allows only DOS programs to be loaded from a COMMAND.COM prompt. Windows and UNIX programs won t run. echoconfig Tells the VDM to print CONFIG and AUTOEXEC commands as they are executed from the files. files= Sets the maximum number of open files. I recommend setting this to 100. ntcmdprompt Replaces the COMMAND.COM interpreter with the 32-bit Windows command interpreter, cmd.exe. After you load a TSR or when you shell out of an application to DOS, you will get cmd.exe instead, from which you have the added benefits of the full 32-bit interpreter. If you want, you can create customized copies of config.nt and/or autoexec.nt and use them just with specific DOS programs. To do this: 1. Use an elevated copy of Notepad to create the new setting file(s) with different names. For example, you might save a modified config.nt as config_wordperfect.nt. 2. Locate the MS-DOS program s.exe or.com file icon in Windows Explorer. 3. Right-click the icon and select Properties. Select the Program tab, and click the Advanced button. Enter the path to your customized config file. tip Editing these files properly is no piece of cake. I suggest you have at hand a good DOS reference, such as Que s Special Edition Using DOS 6.22, Third Edition. It s out of print, but you can get a used copy at among other places. Issues with DOSKEY and ANSI.SYS Two of the most common enhancements used on MS-DOS computers were DOSKEY and ANSI.SYS. DOSKEY provided enhanced command-line editing: for example, the use of the up and down arrow keys to recall previous commands. ANSI.SYS gave DOS applications a way to easily control the position and color of text output onto the screen. ANSI.SYS can be made available for MS-DOS programs simply by adding the line device=ansi.sys to config.nt (or an alternate config file). Unfortunately, no ANSI cursor support is provided for 32-bit Windows character mode (console) applications. note If you make changes to autoexec.nt or config.nt after having run an MS-DOS program from a Command Prompt window, you must close the Command Prompt window and open a new one for the MS-DOS subsystem to reload and take on the new configuration.
12 PART VI 832 Command-Line and Automation Tools Conversely, DOSKEY which has been enhanced significantly from the old DOS days functions only in the 32-bit Windows console environment, and even if you attempt to load it in autoexec.nt, it does not function within the MS-DOS COMMAND.COM shell. Batch Files Although Windows Script Host is the most powerful tool for creating your own helpful programs, it s also useful to know how to use the batch file language. Batch files let you take advantage of the hundreds of command-line programs supplied with Windows. A batch file, at the simplest level, is just a list of command prompt commands that have been typed into a file whose extension is.bat or.cmd. When you enter the name of a batch file at the command prompt, Windows looks for a file with this name in the current directory and in the folders of the PATH environment variable. Windows treats each line in the batch file as a command, and runs them one after the other as if you d typed the commands by hand. At this simplest level, then, a batch file can be a big help if you find yourself typing the same commands over and over. Beyond this, there are several commands that you can use to write rudimentary programs within a batch file, so that it can take different actions depending on what you type on the command line, or depending on the results of the commands it executes. These programming commands have been greatly improved since the MS-DOS days, so writing useful batch files on Windows 7 is much easier than writing them was in the old days. In particular, the IF and FOR statements have been greatly extended. You can prompt the user for input. It s possible to manipulate strings and filenames and perform arithmetic calculations. You can create subroutines within a single batch file. And there s more. Unfortunately, I don t have room to provide coverage of batch file programming in this book, but I do in Windows 7 and Vista Guide to Scripting, Automation, and Command Line Tools, published by Que. And some Microsoft documentation is available online. After reading this chapter, go to and search for these phrases: Command Shell Overview Environment Variables Using Batch Parameters Using Batch Files Using Command Redirection Operators Cmd Command-Line Reference Then, open a Command Prompt window and type the commands help cmd help set help for help if and so on.
13 Batch File Tips Batch Files 833 Table 29.3 lists several short batch files that I put on every computer that I use. These short command scripts let me edit files, change the path, view a folder with Explorer, and so on, simply by typing a couple of letters followed by a folder or filename. They don t involve fancy programming, but they save me a significant tip amount of time when I m working with the Command Prompt To learn how to get the most from window. the batch files and the command If you create a c:\scripts folder and add it to the PATH, as I line, get Brian s book Windows 7 and discussed earlier under Setting the PATH Environment Vista Guide to Scripting, Automation, and Command Line Tools. Variable, you might want to create these same batch files in that folder for your own use. CHAPTER 29 Table 29.3 Useful Tiny Batch Files Filename Contents and Purpose off for %%p in (%path%) do if /%%p/ == /%1/ exit /b set path= %1 ;%path% Adds the named folder to the PATH if it is not already listed. (This lasts only as long as the Command Prompt window is open.) Example: ap c:\test Logs off Windows. Example: bye /%1/ == // (explorer /e,.) else explorer /e,%1 Opens Windows Explorer in Folder mode to view the named directory, or the current directory if no path is entered on the command line. Example: e d: /d %userprofile% Changes the current directory to your user profile (home) directory. Example: h notepad %1 Edits the named file with Notepad. Example: n test.bat /d c:\scripts Makes c:\scripts the current directory, when you want to add or edit batch files and scripts. Example: s
14 PART VI 834 Command-Line and Automation Tools Windows Script Host In the last decade or so, Microsoft has worked diligently to provide ways for programmers to gain access to the internal functions of commercial applications such as Word and Excel and of Windows itself. The approach is based on a technology called the Component Object Model, or COM, which lets a properly designed program share its data and functional capabilities with other programs any other programs, written in any other programming language. If you ve ever written macros for Word or Excel, you ve worked with scripting and COM. One product of these efforts is Windows Script Host, or WSH, which provides a fast and easy way to write your own management and utility programs. Scripts have an advantage over batch files in that they can perform complex calculations and can manipulate text information in powerful ways because you write them in a full-featured programming language. Scripts can massage, digest, and manipulate text files and data, view and change Windows settings, and take advantage of Windows services through COM objects provided as a standard part of Windows. In addition, if you have COM-enabled applications such as WordPerfect, Microsoft Word, or Excel installed, scripts can even enlist these applications to present information in tidy, formatted documents and charts. Windows comes with support for two different scripting languages: VBScript Nearly identical to the Visual Basic for Applications (VBA) macro language used in Word and Excel. JScript Microsoft s version of the JavaScript language, which is widely used to make web pages interactive. (JavaScript, by the way, is not the same thing as Java. Java is another programming language altogether.) In addition, you can download and install scripting support for other languages. If you have a UNIX or Linux background, for example, you might want to use the Perl, Python, or TCL scripting languages. You can get free WSH-compatible versions of these languages at If you are already versed in one of the scripting languages I ve mentioned, by all means, use it. If you don t already know a scripting language, VBScript is probably the best one to start with because you can also use it to write macros for Microsoft s desktop applications. I ll use VBScript in the examples in this section. Creating Scripts Just like batch files, scripts are stored as plain text files, which you can edit with Notepad or any other text file editor. To create a script file, choose a descriptive name, something like WorkSummaryReport perhaps, and add the extension that corresponds to the language you ll be using. A script written in the VBScript language must have its filename end with.vbs. As an example, I ll write a script that I ll call hello.vbs. If you want to try it yourself, the steps are 1. Open a Command Prompt window by clicking Start, All Programs, Accessories, Command Prompt.
15 Windows Script Host The Command Prompt window opens on the default directory \users\your_user_name. If you want to create the script in another folder, you will need to type in a cd command to change directories. (As I suggested earlier in this chapter, you might want to put your scripts into folder C:\scripts, and add that folder to the PATH.) But for the purposes of this example, we ll skip that and use the default directory. CHAPTER Type the command notepad hello.vbs. When Notepad asks whether you want to create a new file, click Yes. 4. Type in the text wscript.echo Hello, this message comes from a script 5. Save the script by selecting File, Save. You can leave the Notepad window open, or close it with File, Exit. 6. Bring the Command Prompt window to the foreground. 7. Type hello and press Enter. If everything works, you see the dialog box shown in Figure Click OK to close the dialog box. Figure 29.3 The sample script displays a simple text message. WSH can display its results in a window, as you just saw, or it can display results in the console window, as do most command-line programs. As you saw in the previous sample, the default is to display information in a window because the default interpreter for scripts is wscript. It s usually best to change the default so that the default mode is the text-based console output method. To do this, type this command: cscript //H:cscript //nologo //s
16 PART VI 836 Command-Line and Automation Tools (Notice that the slashes are doubled-up in this command.) Now, type the command hello again. This time the script s output should display within the Command Prompt window. Some Sample Scripts I don t have room here to give you even an introductory course in VBScript programming. As I mentioned, that s a topic that can fill an entire book. What I can do is give you some examples of how WSH can be used to perform useful tasks and to manage Windows. Disk and Network Management WSH comes with tools to examine and modify drives, folders, and files. Here is an example of a VBScript script that performs a reasonably useful task: set fso = CreateObject( Scripting.FileSystemObject ) set drivelist = fso.drives for each drv in drivelist if drv.isready then wscript.echo Drive, drv.driveletter, has, drv.freespace, bytes free end if next It displays the amount of free space on each of your computer s drives. Type this script into a file named freespace.vbs in your batch file directory, and then type the command-line command freespace. On my computer this prints the following: Drive C: has bytes free Drive D: has bytes free Drive F: has bytes free Drive H: has bytes free WSH can also work with networking features. The following VBScript script displays your computer s current network drive mappings: set wshnetwork = CreateObject( WScript.Network ) create the helper object set maps = wshnetwork.enumnetworkdrives collection describes mapped drives for i = 0 to maps.length-2 step 2 step through collection by twos wscript.echo Drive, maps.item(i), is mapped to, maps.item(i+1) next Windows Management Instrumentation Windows Management Instrumentation (WMI) is a system service that provides access to virtually every aspect of a Windows computer system, from the hardware components up to the highestlevel system services. For some components, WMI provides information only. Other components can be changed, and thus, as its name implies, WMI can be used to manage the system. You can use
17 Windows PowerShell 837 WMI to start and stop system services, monitor and stop applications, create drive mappings, share folders, and, with the appropriate updated WMI drivers installed, even manage system services such as Internet Information Services, Microsoft Exchange, and the Domain Name Service on Windows Server. CHAPTER 29 The following script lists the status of each system service installed on your computer. This script file can be named showservices.vbs. (The underscore at the end of some of the lines are part of the script.) set services = GetObject winmgmts:{impersonationlevel=impersonate, &_ authenticationlevel=pkt}! &_ /root/cimv2:win32_service ) get services WMI info for each svc in services.instances_ display information for each service wscript.echo svc.name, State:, svc.state, Startup:, svc.startmode next On my computer, the first few lines of output from this script look like this: AeLookupSvc State: Stopped Startup: Manual ALG State: Stopped Startup: Manual AppIDSvc State: Stopped Startup: Manual Appinfo State: Running Startup: Manual AppMgmt State: Stopped Startup: Manual Remember, too, that as command-line programs, you can redirect the output of these scripts into a file. The command showservices >listing.txt puts the service list into file listing.txt, just as if showservices was a native Windows executable program. Windows PowerShell Microsoft has developed a new command-line environment called Windows PowerShell (WPS), which is installed as a standard accessory starting with Windows 7. WPS in many ways looks and acts like the familiar Command Prompt window, but it s actually a very strange animal, and it gives you access to some very powerful programming tools. I don t have room in this book to teach you much about it, but I will describe how it differs from batch file and scripts, and I ll point you to resources that will help you learn more. I used the word strange. Can a computer program be strange? Definitely! For one thing, most Windows PowerShell commands (which are properly called cmdlets) generate streams of objects, not text. Objects are computer representations of real-world things. They have properties that describe attributes of the things they represent, and methods that let you manipulate the things. For example, an object that represents a specific file on your hard disk might have properties like Name, Size, and LastWriteTime, and methods like Delete, Edit, and Open. Windows PowerShell works with objects in a new, unusual, and ultimately very powerful way.
18 PART VI 838 Command-Line and Automation Tools Now, if you type dir in a regular Command Prompt window, the command shell interprets dir and generates a bunch of text listing the current folder s files by name. The dir command is programmed very specifically to print information about files in text form. That s all it can do. In WPS, you can type dir and this will also print out a list of filenames, but something completely different is happening behind the scenes. In WPS, dir is a shortcut for the Get-Childitem cmdlet, which in its simplest use generates a stream of File objects; each object represents one of the files in a folder, and each object has properties and methods (for example, name and size). When an object (of any sort) lands in the WPS prompt window, WPS prints out a line of text listing the object s most important properties. For a File object, this includes the file s name, size, and the date it was created. So, when you type dir, WPS produces a stream of File objects and they end up as a nice, tabular listing of files. The end result is the same as in the old Command Prompt environment, but it s happening in a general, more abstract way. The cmdlet doesn t know about or care about text or formatting: it simply spits out a bunch of File objects. And the WPS window will turn any list of objects into a nice tabular listing. Files, user accounts, hard drives, Windows services; whatever object a cmdlet throws into the WPS window turns into a nice text listing. In addition, WPS includes a full-scale object-oriented programming language and has access to Microsoft s.net programming platform, which means WPS scripts can perform complex computations and communicate with other computers and networked ( cloud ) services. WPS even lets you do complex things with objects without programming. You can use the familiar pipe symbol to direct streams of objects from one cmdlet to another, and this lets you do very complex, specific things with tools that are separately very simple and general-purpose in nature. For example, the following command will delete all files in the current folder that are more than 6 months old: dir where-object {$_.LastWriteTime -lt (get-date).addmonths(-6)} remove-item It looks complex at first, but it s not so bad. This command line strings three separate cmdlets together: dir Spits out a list of all the File objects in the current directory. Here, they don t land in the WPS command window, so they don t make a text listing. Instead, the pipe ( ) symbol instructs WPS to pass the objects to the next command. where-object Passes just some of the objects through, based on the filtering condition inside the curly brackets. In this example, it passes through only those files that have not been changed for more than six months (that is, whose LastWriteTime value is less than the date/time six months back). So, objects representing just the old files are piped to the next command. remove-item Deletes the hard disk files corresponding to each of the file objects it receives. caution Don t just open a WPS window and type this command to see whether it works! You ll most likely delete a bunch of important files from your Windows profile folder. If you want to see whether it works, type just the first two parts of the command: dir where-object {$_.Last- WriteTime -lt (get-date). addmonths(-6)} This will print out a list of the selected files but will not delete them.
19 Task Scheduler 839 As I said earlier, you re not limited just to using commands that you type into the WPS window. WPS has a full-scale programming language with variables, loops, subroutines, user-defined objects, and so on. You can use these at the command prompt or in script files. You also can create shortcuts (called aliases) for commonly used commands and scripts to make typing easier, and a bunch of aliases are predefined for you. CHAPTER 29 For more information about WPS, check out Brian s book Windows 7 and Vista Guide to Scripting, Automation, and Command Line Tools or Windows PowerShell 2.0 Unleashed. Task Scheduler Windows Task Scheduler lets you specify programs to be run automatically at specified dates and times and on certain events like system startup, users logging on, or even the occurrence of any event that can be logged in the Event Viewer. By itself, the Task Schedule service does not significantly affect system performance, although the tasks it runs can. However, you can instruct it not to start specified tasks when the system is busy. You might want to do this, for example, if a particular task generates a lot of disk activity. What kinds of tasks would you run with Task Scheduler? As I mentioned, the tasks need to run without user interaction. So, they are typically maintenance tasks such as defragmenting the hard disk, cleaning out temporary files, and so on. Windows uses Task Scheduler for this very purpose, and you ll notice that there are several pre-installed scheduled tasks set up when Windows is installed to do this very sort of thing. Task Scheduler can also watch for the occurrence of any event that can be recorded in the Event Log. Task Scheduler is especially useful with batch files and scripts, because these scheduled programs can usually be designed to run without any user interaction. It s truly the ultimate automation tool because you don t even have to be there when it s working! There are two types of tasks you can create in Task Scheduler: Basic tasks Designed to be run using the current user s account, and support a single triggering event or time. Tasks Can be run using any specified user account, and can be configured to run whether the user is logged in or not. Tasks can also be run in Windows XP or Windows note When Task Scheduler runs a task as a different user than the one currently logged on, the logged-on user cannot see or interact with the program. Be sure that scheduled tasks can operate without user input and exit cleanly when they ve done their work. And keep in mind that once an application or service is running, even if it was launched through a scheduled task, it will affect system performance just as if you started it manually. note Obviously, the computer has to be alive to run a task, so if you expect to do a disk cleanup at 4:00 a.m., be sure to leave the computer on. If a scheduled task is missed because the computer was turned off, Windows will perform the task the next time the computer is started, but the task will now be running while you re using the computer, which is probably what you were trying to avoid by having it run at night.
20 PART VI 840 Command-Line and Automation Tools Server 2003 compatibility mode, and can be configured to run with higher than normal priority if necessary. To create a Basic task in Task Scheduler, follow these steps: 1. Open Task Scheduler as discussed earlier in this section. Task Scheduler displays in the top center pane a summary list of tasks that started and/or completed during the last 24 hours, and displays a list of active tasks below that. (Here, active means defined and enabled to run at the specified time or event. It doesn t necessarily mean actively running right now. ) 2. The Add Actions pane is located on the right side. Click Create Basic Task. The Create Basic Task Wizard opens. 3. Enter the name of the task and a description. Enter whatever you want, to remind you of what the tasks does. Click Next to continue. 4. On the Task Trigger screen, select when to run the task. You can choose daily, weekly, monthly, or one time; when the computer starts, when you log on, or when a specific event is logged. You can use the When a Specific Event Is Logged option to trigger the task when a specific Event Log entry is recorded. For example, you could use this to perform some sort of notification if a disk error event occurs. You ll need to enter the event s numeric ID number. 5. Click Next. tip To find an event s ID number, find an occurrence of the event in the Windows Event Log. 6. Specify applicable time options, such as time of day, as required. Click Next. 7. Select what you want the task to do (open a program, send an , or display a message). Click Next to continue. 8. If you selected Start a Program, use Browse to locate the program, batch file, or script. (For Windows applications, browse in the \Windows or \Windows\system32 folders. For third-party applications, search in the subfolders of the \Program Files folder. For scripts you ve written yourself, browse to the folder in which you ve stored the script or batch file.) Then provide any necessary command-line switches or settings, and if you want to specify a default drive and folder for the program, enter the path to the desired folder. If you selected Send an , enter the information for sender, receiver, SMTP server, message, and so forth. If you selected Display a Message, enter the message title and message text. Then, click Next. 9. Review the task on the Summary screen (see Figure 29.4). If you want to set advanced options such as idle time, what to do if the computer is running on batteries, and what to do after the task completes, check Open Advanced Properties for This Task When I Click Finish. Click Finish to complete the task.
21 Task Scheduler 841 CHAPTER 29 Figure 29.4 Completing the configuration of a basic task. For more advanced scheduling, use the Create Task selection. The Create Task interface uses a multi-tabbed interface instead of a wizard. The General tab includes security options, while the Triggers tab permits you to specify multiple triggers for a task (the task will be performed whenever any of the triggers occurs). The Actions tab supports multiple actions in a task, the Conditions tab includes options to configure idle time, power, and network connection requirements, and the Settings tab supports conditions for running and stopping a task. Use Create Task, rather than Create Basic Task, when you need these additional settings in your task.
13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES
LESSON 13 Managing Devices OBJECTIVES After completing this lesson, you will be able to: 1. Open System Properties. 2. Use Device Manager. 3. Understand hardware profiles. 4. Set performance options. Estimated
Introduction to MS WINDOWS XP
Introduction to MS WINDOWS XP Mouse Desktop Windows Applications File handling Introduction to MS Windows XP 2 Table of Contents What is Windows XP?... 3 Windows within Windows... 3 The Desktop... 3 The
Hosting Users Guide 2011
Hosting Users Guide 2011 eofficemgr technology support for small business Celebrating a decade of providing innovative cloud computing services to small business. Table of Contents Overview... 3 Configure
DiskPulse DISK CHANGE MONITOR
DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com [email protected] 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product
Visual Studio.NET Database Projects
Visual Studio.NET Database Projects CHAPTER 8 IN THIS CHAPTER Creating a Database Project 294 Database References 296 Scripts 297 Queries 312 293 294 Visual Studio.NET Database Projects The database project
Server & Workstation Installation of Client Profiles for Windows
C ase Manag e m e n t by C l i e n t P rofiles Server & Workstation Installation of Client Profiles for Windows T E C H N O L O G Y F O R T H E B U S I N E S S O F L A W General Notes to Prepare for Installing
Windows PowerShell Essentials
Windows PowerShell Essentials Windows PowerShell Essentials Edition 1.0. This ebook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited. All rights
Finding and Opening Documents
In this chapter Learn how to get around in the Open File dialog box. See how to navigate through drives and folders and display the files in other folders. Learn how to search for a file when you can t
Personal Call Manager User Guide. BCM Business Communications Manager
Personal Call Manager User Guide BCM Business Communications Manager Document Status: Standard Document Version: 04.01 Document Number: NN40010-104 Date: August 2008 Copyright Nortel Networks 2005 2008
PuTTY/Cygwin Tutorial. By Ben Meister Written for CS 23, Winter 2007
PuTTY/Cygwin Tutorial By Ben Meister Written for CS 23, Winter 2007 This tutorial will show you how to set up and use PuTTY to connect to CS Department computers using SSH, and how to install and use the
Microsoft" Windows8 Home Server
Paul MeFedries Microsoft" Windows8 Home Server I UNLEASHED Second Edition 800 East 96th Street, Indianapolis, Indiana 46240 USA Table of Contents Introduction 1 Part I Unleashing Windows Home Server Configuration
Creating, Running, and Scheduling Scripts
T H R E E Creating, Running, and Scheduling Scripts 3 When learning any new development technology, some of the most important questions are the basic "how to" nuts and bolts questions. How do I create
Introduction to Operating Systems
Introduction to Operating Systems It is important that you familiarize yourself with Windows and Linux in preparation for this course. The exercises in this book assume a basic knowledge of both of these
Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials
Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials With Windows Server 2012 R2 Essentials in your business, it is important to centrally manage your workstations to ensure
While You Were Sleeping - Scheduling SAS Jobs to Run Automatically Faron Kincheloe, Baylor University, Waco, TX
CC04 While You Were Sleeping - Scheduling SAS Jobs to Run Automatically Faron Kincheloe, Baylor University, Waco, TX ABSTRACT If you are tired of running the same jobs over and over again, this paper is
WS_FTP Professional 12
WS_FTP Professional 12 Tools Guide Contents CHAPTER 1 Introduction Ways to Automate Regular File Transfers...5 Check Transfer Status and Logs...6 Building a List of Files for Transfer...6 Transfer Files
Hypercosm. Studio. www.hypercosm.com
Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks
Paul McFedries. Home Server 2011 LEASHE. Third Edition. 800 East 96th Street, Indianapolis, Indiana 46240 USA
Paul McFedries Microsoft Windows9 Home Server 2011 LEASHE Third Edition 800 East 96th Street, Indianapolis, Indiana 46240 USA Table of Contents Introduction 1 Part I Unleashing Windows Home Server Configuration
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...
Understanding Native Applications, Tools, Mobility, and Remote Management and Assistance
Lesson 3 Understanding Native Applications, Tools, Mobility, and Remote Management and Assistance Learning Objectives Students will learn to: Use Windows Internet Explorer 9 Operate System Configurations
FrontDesk Installation And Configuration
Chapter 2 FrontDesk Installation And Configuration FrontDesk v4.1.25 FrontDesk Software Install Online Software Activation Installing State Related Databases Setting up a Workstation Internet Transfer
A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 2 Introducing Operating Systems
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 2 Introducing Operating Systems Objectives Learn about the various operating systems and the differences between them Learn about the components
XF Extracellular Flux Analyzer. Installation and Troubleshooting Guide
Installation and Troubleshooting Guide February 24, 2014 2 TABLE OF CONTENTS XF Client System and File Requirements 4 Frequently Asked Questions. 4 Installation.. 5 Installing XF Software.. 5 Resolving
Raptor K30 Gaming Software
Raptor K30 Gaming Software User Guide Revision 1.0 Copyright 2013, Corsair Components, Inc. All Rights Reserved. Corsair, the Sails logo, and Vengeance are registered trademarks of Corsair in the United
Simple Computer Backup
Title: Simple Computer Backup (Win 7 and 8) Author: Nancy DeMarte Date Created: 11/10/13 Date(s) Revised: 1/20/15 Simple Computer Backup This tutorial includes these methods of backing up your PC files:
Magaya Software Installation Guide
Magaya Software Installation Guide MAGAYA SOFTWARE INSTALLATION GUIDE INTRODUCTION Introduction This installation guide explains the system requirements for installing any Magaya software, the steps to
In the same spirit, our QuickBooks 2008 Software Installation Guide has been completely revised as well.
QuickBooks 2008 Software Installation Guide Welcome 3/25/09; Ver. IMD-2.1 This guide is designed to support users installing QuickBooks: Pro or Premier 2008 financial accounting software, especially in
XMap 7 Administration Guide. Last updated on 12/13/2009
XMap 7 Administration Guide Last updated on 12/13/2009 Contact DeLorme Professional Sales for support: 1-800-293-2389 Page 2 Table of Contents XMAP 7 ADMINISTRATION GUIDE... 1 INTRODUCTION... 5 DEPLOYING
Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide
Page 1 of 243 Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide (This is an alpha version of Benjamin Day Consulting, Inc. s installation
vtcommander Installing and Starting vtcommander
vtcommander vtcommander provides a local graphical user interface (GUI) to manage Hyper-V R2 server. It supports Hyper-V technology on full and core installations of Windows Server 2008 R2 as well as on
Understanding Task Scheduler FIGURE 33.14. Task Scheduler. The error reporting screen.
1383 FIGURE.14 The error reporting screen. curring tasks into a central location, administrators gain insight into system functionality and control over their Windows Server 2008 R2 infrastructure through
Team Foundation Server 2013 Installation Guide
Team Foundation Server 2013 Installation Guide Page 1 of 164 Team Foundation Server 2013 Installation Guide Benjamin Day [email protected] v1.1.0 May 28, 2014 Team Foundation Server 2013 Installation Guide
While You Were Sleeping - Scheduling SAS Jobs to Run Automatically Faron Kincheloe, Baylor University, Waco, TX
Paper 276-27 While You Were Sleeping - Scheduling SAS Jobs to Run Automatically Faron Kincheloe, Baylor University, Waco, TX ABSTRACT If you are tired of running the same jobs over and over again, this
14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë
14.1 bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë bî~äì~íáåö=oéñäéåíáçå=ñçê=emi=rkfui=~åç=lééåsjp=eçëíë This guide walks you quickly through key Reflection features. It covers: Getting Connected
CGS 1550 File Transfer Project Revised 3/10/2005
CGS 1550 File Transfer Project Revised 3/10/2005 PURPOSE: The purpose of this project is to familiarize students with the three major styles of FTP client, which are: Pure (FTP only), character-based,
webkpi SaaS ETL Connector Installation & Configuration Guide
webkpi SaaS ETL Connector Installation & Configuration Guide SaaS ETL Version 2.5.0.12 Version 1.6 September 2013 webkpi SaaS ETL Connector Version 2.5.0.12 V 1.6 Page 1 Table of Contents Table of Contents
How to get the most out of Windows 10 File Explorer
How to get the most out of Windows 10 File Explorer 2 Contents 04 The File Explorer Ribbon: A handy tool (once you get used to it) 08 Gain a new perspective with the Group By command 13 Zero in on the
SOS Suite Installation Guide
SOS Suite Installation Guide rev. 8/31/2010 Contents Overview Upgrading from SOS 2009 and Older Pre-Installation Recommendations Network Installations System Requirements Preparing for Installation Installing
STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER
Notes: STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER 1. These instructions focus on installation on Windows Terminal Server (WTS), but are applicable
Setting up VPN and Remote Desktop for Home Use
Setting up VPN and Remote Desktop for Home Use Contents I. Prepare Your Work Computer... 1 II. Prepare Your Home Computer... 2 III. Run the VPN Client... 3 IV. Remote Connect to Your Work Computer... 4
2 SQL in iseries Navigator
2 SQL in iseries Navigator In V4R4, IBM added an SQL scripting tool to the standard features included within iseries Navigator and has continued enhancing it in subsequent releases. Because standard features
NovaBACKUP Network User s Guide
NovaBACKUP Network User s Guide NovaStor / January 2011 2011 NovaStor, all rights reserved. All trademarks are the property of their respective owners. Features and specifications are subject to change
5nine Hyper-V Commander
5nine Hyper-V Commander 5nine Hyper-V Commander provides a local graphical user interface (GUI), and a Framework to manage Hyper-V R2 server and various functions such as Backup/DR, HA and P2V/V2V. It
10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition
10 STEPS TO YOUR FIRST QNX PROGRAM QUICKSTART GUIDE Second Edition QNX QUICKSTART GUIDE A guide to help you install and configure the QNX Momentics tools and the QNX Neutrino operating system, so you can
Setting up VPN and Remote Desktop for Home Use
Setting up VPN and Remote Desktop for Home Use Contents I. Prepare Your Work Computer... 1 II. Prepare Your Home Computer... 2 III. Run the VPN Client... 3-4 IV. Remote Connect to Your Work Computer...
Clickfree Software User Guide
Clickfree Software User Guide Last Revised: Nov 2, 2011 Clickfree_backup_software_user_guide_v1.0 Clickfree and the Clickfree logo are trademarks or registered trademarks of Storage Appliance Corporation.
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005 PLEASE NOTE: The contents of this publication, and any associated documentation provided to you, must not be disclosed to any third party without
Tips and Tricks SAGE ACCPAC INTELLIGENCE
Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,
IT Quick Reference Guides Using Windows 7
IT Quick Reference Guides Using Windows 7 Windows Guides This sheet covers many of the basic commands for using the Windows 7 operating system. WELCOME TO WINDOWS 7 After you log into your machine, the
Setup and Configuration Guide for Pathways Mobile Estimating
Setup and Configuration Guide for Pathways Mobile Estimating Setup and Configuration Guide for Pathways Mobile Estimating Copyright 2008 by CCC Information Services Inc. All rights reserved. No part of
Programming in Access VBA
PART I Programming in Access VBA In this part, you will learn all about how Visual Basic for Applications (VBA) works for Access 2010. A number of new VBA features have been incorporated into the 2010
NETWRIX FILE SERVER CHANGE REPORTER
NETWRIX FILE SERVER CHANGE REPORTER ADMINISTRATOR S GUIDE Product Version: 3.3 April/2012. Legal Notice The information in this publication is furnished for information use only, and does not constitute
Installing, upgrading and troubleshooting your CLIO system under the Windows environment.
Installing, upgrading and troubleshooting your CLIO system under the Windows environment. Audiomatica Srl Rev. 1.1. June 2001. Contents 1 What does this document cover?... 1 2 Windows compatibility...
Installing LearningBay Enterprise Part 2
Installing LearningBay Enterprise Part 2 Support Document Copyright 2012 Axiom. All Rights Reserved. Page 1 Please note that this document is one of three that details the process for installing LearningBay
For Introduction to Java Programming, 5E By Y. Daniel Liang
Supplement H: NetBeans Tutorial For Introduction to Java Programming, 5E By Y. Daniel Liang This supplement covers the following topics: Getting Started with NetBeans Creating a Project Creating, Mounting,
Understanding Operating System Configurations
Lesson 2 Understanding Operating System Configurations Learning Objectives Students will learn to: Understand Standard User Versus Administrative User Accounts Understand Types of UAC Prompts and Levels
StrikeRisk v6.0 IEC/EN 62305-2 Risk Management Software Getting Started
StrikeRisk v6.0 IEC/EN 62305-2 Risk Management Software Getting Started Contents StrikeRisk v6.0 Introduction 1/1 1 Installing StrikeRisk System requirements Installing StrikeRisk Installation troubleshooting
Test Note Phone Manager Deployment Windows Group Policy Sever 2003 and XP SPII Clients
Test Note Phone Manager Deployment Windows Group Policy Sever 2003 and XP SPII Clients Note: I have only tested these procedures on Server 2003 SP1 (DC) and XP SPII client, in a controlled lab environment,
Direct Storage Access Using NetApp SnapDrive. Installation & Administration Guide
Direct Storage Access Using NetApp SnapDrive Installation & Administration Guide SnapDrive overview... 3 What SnapDrive does... 3 What SnapDrive does not do... 3 Recommendations for using SnapDrive...
Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v 6. 4. 10 Steps to Developing a QNX Program Quickstart Guide
Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v 6. 4 10 Steps to Developing a QNX Program Quickstart Guide 2008, QNX Software Systems GmbH & Co. KG. A Harman International Company. All rights
How To Install And Configure Windows Server 2003 On A Student Computer
Course: WIN310 Student Lab Setup Guide Microsoft Windows Server 2003 Network Infrastructure (70-291) ISBN: 0-470-06887-6 STUDENT COMPUTER SETUP Hardware Requirements All hardware must be on the Microsoft
Windows 7 Hula POS Server Installation Guide
Windows 7 Hula POS Server Installation Guide Step-by-step instructions for installing the Hula POS Server on a PC running Microsoft Windows 7 1 Table of Contents Introduction... 3 Getting Started... 3
PLEASE NOTE: The client data used in these manuals is purely fictional.
Welcome! CAREWare Quick Start guides will walk you through the basics of setting up, managing and using the main CAREWare functions. It is intended for non-technical users who just need to get basic information
Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3
Notepad++ The COMPSCI 101 Text Editor for Windows The text editor that we will be using in the Computer Science labs for creating our Python programs is called Notepad++ and http://notepad-plus-plus.org
NovaBACKUP. Storage Server. NovaStor / May 2011
NovaBACKUP Storage Server NovaStor / May 2011 2011 NovaStor, all rights reserved. All trademarks are the property of their respective owners. Features and specifications are subject to change without notice.
How To Use Senior Systems Cloud Services
Senior Systems Cloud Services In this guide... Senior Systems Cloud Services 1 Cloud Services User Guide 2 Working In Your Cloud Environment 3 Cloud Profile Management Tool 6 How To Save Files 8 How To
Staying Organized with the Outlook Journal
CHAPTER Staying Organized with the Outlook Journal In this chapter Using Outlook s Journal 362 Working with the Journal Folder 364 Setting Up Automatic Email Journaling 367 Using Journal s Other Tracking
Installation / Migration Guide for Windows 2000/2003 Servers
PSQL v9 SP1 (9.1) & Installation / Migration Guide for Windows 2000/2003 Servers Ebix, Inc. Corporate Headquarters Concourse Parkway, Suite 3200 Atlanta, GA 30328 USA Phone: 678-281-2020 Fax: 678-281-2019
Windows XP Managing Your Files
Windows XP Managing Your Files Objective 1: Understand your computer s filing system Your computer's filing system has three basic divisions: files, folders, and drives. 1. File- everything saved on your
Windows XP Pro: Basics 1
NORTHWEST MISSOURI STATE UNIVERSITY ONLINE USER S GUIDE 2004 Windows XP Pro: Basics 1 Getting on the Northwest Network Getting on the Northwest network is easy with a university-provided PC, which has
NetBackup Backup, Archive, and Restore Getting Started Guide
NetBackup Backup, Archive, and Restore Getting Started Guide UNIX, Windows, and Linux Release 6.5 Veritas NetBackup Backup, Archive, and Restore Getting Started Guide Copyright 2007 Symantec Corporation.
SmartDraw Installation Guide
SmartDraw Installation Guide System Requirements Your computer must meet these requirements in order to run SmartDraw: Windows Vista, XP or 2000 256MB RAM 3GB free hard disk space Installation Options
Many home and small office networks exist for no
C H A P T E R Accessing and Sharing Network Resources Many home and small office networks exist for no other reason than to share a broadband Internet connection. The administrators of those networks attach
Lenovo Online Data Backup User Guide Version 1.8.14
Lenovo Online Data Backup User Guide Version 1.8.14 Contents Chapter 1: Installing Lenovo Online Data Backup...5 Downloading the Lenovo Online Data Backup Client...5 Installing the Lenovo Online Data
HIRSCH Velocity Web Console Guide
HIRSCH Velocity Web Console Guide MAN012-1112 HIRSCH Velocity Web Console Guide MAN012-1112, November 2012 Version 1.1 Copyright 2012 Identive Group. All rights reserved. ScramblePad and ScrambleProx are
Xcalibur. Foundation. Administrator Guide. Software Version 3.0
Xcalibur Foundation Administrator Guide Software Version 3.0 XCALI-97520 Revision A May 2013 2013 Thermo Fisher Scientific Inc. All rights reserved. LCquan, Watson LIMS, and Web Access are trademarks,
Outlook 2010. Mail, Calendar, Contacts, Notes & Tasks. User Guide
User Guide Outlook 2010 Mail, Calendar, Contacts, Notes & Tasks IT Training (818) 677-1700 [email protected] www.csun.edu/it/training CSUN IT Training YouTube Channel http://www.youtube.com/user/csuninfotech
Use Remote Desktop capabilities to Access your Work PC from home over VPN
Use Remote Desktop capabilities to Access your Work PC from home over VPN With Remote Desktop on Windows XP Professional, you can have access to a Windows session that is running on your computer when
Understanding Native Applications, Tools, Mobility, and Remote Management and Assistance. Lesson 3
Understanding Native Applications, Tools, Mobility, and Remote Management and Assistance Lesson 3 Objectives Objective Domain Matrix Technology Skill Objective Domain Description Objective Domain Number
ADMINISTRATOR S GUIDE
F O R W I N D O W S N T ADMINISTRATOR S GUIDE 1997 Claris Corporation. All Rights Reserved. Claris Corporation 5201 Patrick Henry Drive Santa Clara, California 95052 Claris and FileMaker are trademarks
After going through this lesson you would be able to:
18 :: Data Entry Operations 2 Operating System 2.1 INTRODUCTION The operating system in these days uses a graphical user interface (GUI). Here you do not have to remember all the commands by heart. The
Citrix EdgeSight for Load Testing User s Guide. Citrx EdgeSight for Load Testing 2.7
Citrix EdgeSight for Load Testing User s Guide Citrx EdgeSight for Load Testing 2.7 Copyright Use of the product documented in this guide is subject to your prior acceptance of the End User License Agreement.
Using Logon Agent for Transparent User Identification
Using Logon Agent for Transparent User Identification Websense Logon Agent (also called Authentication Server) identifies users in real time, as they log on to domains. Logon Agent works with the Websense
VERITAS NetBackup 6.0
VERITAS NetBackup 6.0 Backup, Archive, and Restore Getting Started Guide for UNIX, Windows, and Linux N15278C September 2005 Disclaimer The information contained in this publication is subject to change
Configure thin client settings locally
This chapter contains information to help you set up your thin client hardware, look and feel, and system settings using the Control Center. Tip While it is not recommended to use dialog boxes for configuring
ilaw Installation Procedure
ilaw Installation Procedure This guide will provide a reference for a full installation of ilaw Case Management Software. Contents ilaw Overview How ilaw works Installing ilaw Server on a PC Installing
IsItUp Quick Start Manual
IsItUp - When you need to know the status of your network Taro Software Inc. Website: www.tarosoft.com Telephone: 703-405-4697 Postal address: 8829 110th Lane, Seminole Fl, 33772 Electronic mail: [email protected]
Microsoft Access Basics
Microsoft Access Basics 2006 ipic Development Group, LLC Authored by James D Ballotti Microsoft, Access, Excel, Word, and Office are registered trademarks of the Microsoft Corporation Version 1 - Revision
Initial Installation and Configuration
Windows Terminal Server with EbixONE Windows 2000 and Windows 2003 Server Initial Installation and Configuration IMPORTANT: The use of this document is intended to be a quick reference for a certified
Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Eleventh Edition Technology in Action Chapter 4 System Software: The Operating System, Utility Programs, and File Management. Chapter Topics
Most of your tasks in Windows XP will involve working with information
OFFICE 1 File Management Files and Folders Most of your tasks in Windows XP will involve working with information stored on your computer. This material briefly explains how information is stored in Windows
For Active Directory Installation Guide
For Active Directory Installation Guide Version 2.5.2 April 2010 Copyright 2010 Legal Notices makes no representations or warranties with respect to the contents or use of this documentation, and specifically
Creating and Managing Shared Folders
Creating and Managing Shared Folders Microsoft threw all sorts of new services, features, and functions into Windows 2000 Server, but at the heart of it all was still the requirement to be a good file
Almyta Control System Advanced Reference Contents
Almyta Control System Advanced Reference Contents Almyta Control System Advanced Reference... 1 Software Maintenance... 2 Sharing Your Local Company with Other Users. Networked Installation.... 5 Connecting
Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice.
Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice. Before installing and using the software, please review the readme files,
Windows Script Host Fundamentals
1.fm Page 1 Tuesday, January 23, 2001 4:46 PM O N E Windows Script Host Fundamentals 1 The Windows Script Host, or WSH for short, is one of the most powerful and useful parts of the Windows operating system.
Microsoft Access 2010 Part 1: Introduction to Access
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Access 2010 Part 1: Introduction to Access Fall 2014, Version 1.2 Table of Contents Introduction...3 Starting Access...3
Getting Started with Vision 6
Getting Started with Vision 6 Version 6.9 Notice Copyright 1981-2009 Netop Business Solutions A/S. All Rights Reserved. Portions used under license from third parties. Please send any comments to: Netop
