Book reference: Windows PowerShell Step by Step 3rd Edition - Ed Wilson Chapter 14 4. What is the use of the “?” character in the below CIM searches? Get-CimClass -ClassName Win32_computerSystem????? 5. What does the –method parameter specify in the Get-CimClass cmdlet? 6. What does the select object -expandpropery parameter do?
Q: Explain the meaning of each command below, along with its switches/options and arguments/filenames.…
A: The commands given are:- dd if=myfs.img bs=1 skip=SKIPNUMBER count=FILESIZE of=rfile2 sudo mount -o…
Q: Q6/ (A)- Answer with True or False and correct the error (5 only) 1- To clear all variables from…
A: We are given True and False type questions related to MATLAB. In Q6 (A), there are multiple…
Q: What type of file is kernel32.dll?
A: Kernel32.dll Kernel32.dll file is used to handle the memory usage in Microsoft Windows. It is one…
Q: Use Linux executable objectCode5 for this question. These files are on syccuxas01.pcc.edu in…
A: This function gives output as the sum of integers from 1 to n i.e. option 3 is correct.
Q: Q4.- How to change the password for the current user. Q5.- How to display multiple file. Q6.-How to…
A: An operating system is the software that directly manages a system's hardware and resources, like…
Q: Please give me the answers for these question below: To upgrade Windows PowerShell to a newer…
A: Note: As you have asked multiple questions, as per our policy, we will solve the first question for…
Q: 5. If the compilations succeed, select Execute>Run or F10 to run your program. A working program…
A: Given: There is given a format for output. To Do: We need to write a working program to given…
Q: Create a file, called allfiles, which contains a list of all the files in your starting directory…
A: Given :- Exercise 2.2: Create a file, called allfiles, which contains a list of all the files in…
Q: 70. You have several windows XP installations to perform, you wish to create an answer file the…
A: Given Data:- 70.You have several windows XP installations to perform, you wish to create an answer…
Q: Please help with the following: Give the descriptiotn of the following commands in Linux adduser…
A: Given: Please help with the following: Give the descriptiotn of the following commands in Linux…
Q: Python: Can you explain the way each section of this program is written? How do they work together?
A: Explanation: The given program is used to get a number of integer inputs from user. The inputs are…
Q: Help with Python coding issue The Linux operating system is a very popular server OS. A network…
A: the answer is given below:-
Q: Create a new CI terrole name deploутent- usterrole , which only allows to create the pllowing…
A: The question is about the Kubernetes command : According to the question We have to Create or write…
Q: 11. What is the use of the foreach-object cmdlet? 12. What is the file extension name for a…
A: 11. What is the use of the foreach-object cmdlet? 12. What is the file extension name for a…
Q: is-------------------------------------2used to erase the object orshapes, and the computermouse can…
A: used to erase the object orshapes, and the computermouse can be used as well aswe choose it from the…
Q: Explain in brief what each of the above configuration parameters is used for.
A: The InstanceName of a configuration is used to uniquely identify the resource ID that is used to…
Q: The Shell or Command Line Interpreter is the fundamental User interface to an Operating System.…
A: Actually, given question regarding shell command.
Q: pgrep -c kworker
A: The pgrep command: The pgrep command returns the process IDs of a functioning program based on the…
Q: VirtualBox (OS System) Ubuntu 64?
A: 1. sudo addgroup superusers sudo adduser your_name_admin1 superusers sudo adduser your_name_admin2…
Q: can someone help me write a c shell implemented in a unix based platform, that supports the…
A: /******************************************************************************…
Q: Assuming we are in the C:\Users\Admin\Desktop directory. We can remove the Archive attribute of all…
A: explanation: ATTRIB .\Test\* -A Here: attrib is the command .\Test\* - is to select everything in…
Q: In Linux Using the command find, there is no way to do a local search, it always checks the whole…
A: find command in Linux is used to search file and directory in System..The find command is used to…
Q: Explain briefly the following commands a. keytool -genkey -alias sdo -keyalg RSA b. keytool…
A: a) keytool -genkey -alias sdo -keyalg RSA Generate Key Use this method if you want to use HTTP (HTTP…
Q: c shell implemented
A: #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include…
Q: What parameter can be used to bypass the below confirmation prompt?
A: To remove a user from a group, use the Remove-ADGroupMember cmdlet with the name of theuser and…
Q: Use Linux executable objectCode5 for this question. These files are on syccuxas01.pcc.edu in
A:
Q: 15. Could you name two common data types in PowerShell? 16. What is the reason for the below error?…
A: 15. Powershell contain many datatypes like [string, [char], [byte], [int], [long], [bool],…
Q: write the code to lookup, add and remove phone entries from the phonebook text file . These are the…
A: #!/bin/bash operation=$1name=$2 if [ -z "$operation" ] || [ -z "$name" ]then echo "The…
Q: Unlike Command Prompt, PowerShell has a Updateable Help System, so we can use the Update-Help cmdlet…
A: We need to identify whether the given statement is True or False: Unlike Command Prompt, PowerShell…
Q: Write the BASH commands that accomplish the following tasks: 1) Display the name of the current…
A: 1.echo "$SHELL" or echo $SHELL (without double quotes also 2.chsh --list-shell or chsh -l 3.history…
Q: 3. Move the entire -/workspace/config/ directory to the nested- level-1/ directory
A: For part “1”, the directory is changed to “nested-directories/nested-level-1/” by using an absolute…
Q: What do you have to do to the script to be able to execute it? Why does the script use the read…
A: Assuming the name of your file is "filename.sh" :1. Make the file executable:$ chmod +x filename.sh
Q: write the code to lookup, add and remove phone entries from the phonebook text file . These are the…
A: #!/bin/bash operation=$1name=$2 if [ -z "$operation" ] || [ -z "$name" ]then echo "The…
Q: n this question, you will develop your own version of shell. Your shell will execute commands given…
A: Given: In this question, you will develop your own version of shell. Your shell will execute…
Q: Complete the following command so that it displays the output indicated below. Solution PS C:>…
A: There is no single command to get this output. You need to try various commands. Here are following…
Q: What directory can a user be in to access a file using commands with arguments such as: $ more…
A: The correct Answer is $ more /etc/passwd PWD command is used to make sure that we are in the…
Q: When adding or deleting users in Windows 10 and Linux, what issues have you encountered?
A: Among the issues encountered while adding or removing users in Windows 10 are the following: A local…
Q: The Shell or Command Line Interpreter is the fundamental User interface to an Operating System. Your…
A: The Shell or Command Line Interpreter is the fundamental User interface to an Operating System. Your…
Q: 10. What is the use of the “Where” parameter in Select-Object? Eg: $ $Query = "Select Name from…
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN…
Q: The Shell or Command Line Interpreter is the fundamental User interface to an Operating System. Your…
A: OS is an system software which manages computer hardware and software
Q: Use Linux executable objectCode6 for this question. These files are on syccuxas01.pcc.edu in…
A: Assembly language can be defined as the low level language which is used to connect interaction…
Q: Last login: Thu Dec 9 09:33:31 on console (base) MichaeldediannaodeMacBook-Pro:~ Michael$ pwd…
A: pwd (print working directory) command displays your location currently you are working on. It will…
Q: Create a file named tmpfiles that contains the names of the contents of the /tmp directory in…
A: ls command: ls is one of the commands used most frequently and is also very useful. Its basic…
Q: Q23. Linux supports multitasking. True/false. Q22. Process allocates the memory to Application…
A: These fill in the blanks que are based on linux os.
Q: 1- To clear all variables from Command window, we type Clear or Clear All. 2- Realmax is the…
A: 1- To clear all variables from Command window, we type Clear or Clear All. (false) When we write…
Q: . What is the use of the ValueFromPipelineByPropertyName=$true in the below advanced-function?…
A:
Q: 7. What is the use of the –Unique parameter and sort-object in the below script? Get-CimClass…
A: The solution for the above question is given below:-
Q: You want to see the filesystems that are presently in use on the system. What commandcould you…
A: "cat/etc/mtab" command: In Linux operating system, the "cat" command is used to create single or…
Q: Windows PowerShell Step by Step 3rd Edition - Ed Wilson Subj: PWS0 - PowerShell Chapter 2 1. Type…
A: As per our guidelines we are suppose to answer only first question. Kindly repost other questions as…
Book reference: Windows PowerShell Step by Step 3rd Edition - Ed Wilson
Chapter 14
4. What is the use of the “?” character in the below CIM searches?
Get-CimClass -ClassName Win32_computerSystem?????
5. What does the –method parameter specify in the Get-CimClass cmdlet?
6. What does the select object -expandpropery parameter do?
Step by step
Solved in 3 steps
- Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonChapter 14 7. What is the use of the –Unique parameter and sort-object in the below script? Get-CimClass -ClassName * -QualifierName * | Select-Object -ExpandProperty Ci mClassQualifiers | Select-Object Name -Unique | Sort-Object Name 8. What is the use of the word deprecated under -QualifierName as in the below command? Get-CimClass -QualifierName deprecated 9. What is a method to search for dynamic classes under *time classname?Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonSubj: PWS0 - PowerShell Chapter 3 13. What does this command do?gci | where {!($psitem.psiscontainer)} 14. What is the "::" punctuation sign used for? 15. What do the below commands do?New-Item -Name mytempfile2 -ItemType File -Value "My file"Add-Content mytempfile2 -Value "HELLO WORLD"16. Elaborate what each of the below commands does:PS C:\> Push-Location PS C:\> Set-Location HKCU:\Software\test PS HKCU:\Software\test> Set-ItemProperty . newproperty "mynewvalue" PS HKCU:\Software\test> Pop-Location PS C:\>Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonChapter 17 7. What does the Wait-Job -Name addFeature achieve? $featureLogPath = "c:\poshlog\featurelog.txt" start-job -Name addFeature -ScriptBlock { Add-WindowsFeature -Name "ad-domain-services" -IncludeAllSubFeature -IncludeManagementTools Add-WindowsFeature -Name "dns" -IncludeAllSubFeature -IncludeManagementTools Add-WindowsFeature -Name "gpmc" -IncludeAllSubFeature -IncludeManagementTools } Wait-Job -Name addFeature Get-WindowsFeature | Where installed >> $featureLogPath
- Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonChapter 16 6. What parameter can be used to bypass the below confirmation prompt? Remove-ADGroupMember -Identity TestGroup1 -Members UserGroupTest Confirm Are you sure you want to perform this action? Performing operation "Set" on Target "CN=TestGroup1,OU=TestOU,DC=NWTraders,DC=Com". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):Book reference: Windows PowerShell Step by Step 3rd Edition - Ed Wilson Chapter 3 13. What does this command do? gci | where {!($psitem.psiscontainer)} 14. What is the “::” punctuation sign used for? 15. What do the below commands do? New-Item -Name mytempfile2 -ItemType File –Value "My file" Add-Content mytempfile2 -Value "HELLO WORLD"Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonChapter 14 10. What is the use of the below set of commands? $disk = Get-CimInstance -ClassName Win32_LogicalDisk -KeyOnly Get-CimAssociatedInstance -InputObject $disk[1] 11. What is the reason for the below error? 12. What are two methods of correcting the above error?
- Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonSubj: PWS0 - PowerShell Chapter 2 1. Type Get-com and press the tab key a few times – what do you see happening? 4. What is the difference between Format-List and Format-Wide cmdlets? 5. Name six properties of a file from the Format-List command. 6. What is the gci cmdlet output for the Length property for any folder? 8. What is Out-GridView and what are its limitations on headless Windows servers? 9. What is the result of running Get-Command p* 10. What is the short form of Get-Command to list all the cmdlet verbs starting with “S”? 11. What is the Get-Command alias to list all the cmdlet nouns starting with “NET”? 12. What can be achieved by running the below PS command? Gcm -syntax Get-NetAdapter 13. What are the two key code features of cmdlets? 14. What is the use of GM cmdlet [alias for Get-Method]? 15. Whats is the use of the cmdlet Sort-Object and what are some common properties? 16. To retrieve a listing…Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonSubj: PWS0 - PowerShell Chapter 3 16. Can you elaborate what each of the below commands does? PS C:\> Push-Location PS C:\> Set-Location HKCU:\Software\test PS HKCU:\Software\test> Set-ItemProperty . newproperty "mynewvalue" PS HKCU:\Software\test> Pop-Location PS C:\>Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonChapter 21 14. What is the parameter used to view the progress of the Start-DscConfiguration cmdlet? 15. What does the below command perform?Get-DscResource -Module @{ModuleName='xHyper-V';RequiredVersion='3.0.0.0'}
- Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonChapter 10 6. What does the below command return? Get-CimInstance -ClassName __NAMESPACE -Namespace root 7. What can the below script do? Function Get-WmiProvider { Param( [string]$nameSpace, [string]$computer) Get-CimInstance -ClassName __Provider -Namespace $namespace | Sort-Object -property Name | Select-Object name } #end function Get-WmiProvider Get-WmiProvider -namespace root\cimv2 -computer $env:COMPUTERNAMEBook reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonChapter 11 10. What is the use of the “Where” parameter in Select-Object? Eg: $ $Query = "Select Name from Win32_Share where name = 'C$'" 11. What are some benefits of declaring a variable for a filter parameter? Eg $Filter = "name='c$'"write the code to lookup, add and remove phoneentries from the phonebook text file . These are the code we use for the lookup, add and remove in the case statement.(Lookup)# Look someone up in the phone bookgrep $1 phonebook (add)echo "$1 $2" >> phonebooksort -o phonebook phonebook (Remove)grep -v "$1" phonebook > /tmp/phonebookmv /tmp/phonebook phonebook Write a complete Bash script which will accept up to three command-line arguments: the first one is either (lookup, add or remove), the second one is a name enclosed in single quotes and the third one (if doing an add) is a phone number enclosed in single quotes. Using a case statement to match on either lookup, add or remove, the script should then perform the requested operation. Again here, you should first check for null arguments before continuing with the rest of the script or requested operation. In addition, the person may not be in the phonebook for lookup or remove so, you need to account for this.