![]() ![]() To do this, use the Get-Help cmdlet, and specify the word get followed by the wildcard operator, as follows. Obtain a listing of all the help topics related to get cmdlets. Obtain a listing of all the informational help topics by using the Get-Help cmdlet and the about noun with the asterisk (*) wildcard operator. If you only want to obtain a listing of examples of command usage, use the -Examples switch parameter, as follows. To retrieve technical information about the Get-Help cmdlet, use the -Full switch parameter. To obtain detailed help about the Get-Help cmdlet, use the -Detailed switch parameter, as follows. Use the command Get-Help Get-Help as follows. Use the Get-Help cmdlet to obtain help about the Get-Help cmdlet. In the following exercise, you’ll use various help options to obtain assistance with various cmdlets. Exit Windows PowerShell by entering exit and pressing Enter. This concludes the step-by-step exercise. To do this, use the -Name parameter while supplying Get-Alias as the value for the parameter. Use the Get-Command cmdlet to get the Get-Alias cmdlet. Print a listing of all the cmdlets built into Windows PowerShell.Clear the screen by using the cls command.Print the current date by using the Get-Date cmdlet.Obtain a directory listing of all the files in the C:\Mytest directory by using the Get-ChildItem cmdlet.fsutil file createnew mytestfile.txt 1000 Use the fsutil utility, and make the file 1,000 bytes in size. Set-Location c:\mytestĬreate a file named mytestfile.txt in the C:\Mytest directory. bcdeditĬhange the working directory back to the C:\Mytest directory you created earlier. After a few counters have been displayed in the Windows PowerShell window, press Ctrl+C to break the listing.ĭisplay the current startup configuration by using the bcdedit command (note that you must run this command with admin rights).Obtain a listing of memory counters related to the available bytes by using the typeperf.exe command. You can do this by using the Set-Location command, as follows. dir m*Ĭhange the working directory to the Windows PowerShell working directory. Obtain a listing of all files and folders off the root that begin with the letter m. dirĬreate a directory off the root of C:\ by using the md command. Obtain a listing of all the files in the root of C:\ by using the dir command. The Windows PowerShell prompt opens by default at the root of your user folder.Ĭhange to the root of C:\ by entering cd c:\ inside the Windows PowerShell prompt. Open Windows PowerShell by choosing Start | Run | PowerShell.You will find that it is as easy to use command-line utilities in Windows PowerShell as in the CMD interpreter however, by using such commands in Windows PowerShell, you gain access to new levels of functionality. In the following exercises, you’ll explore the use of command-line utilities in Windows PowerShell. ![]() Exploring commands: Step-by-step exercises ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |