+ Reply to Thread
Results 1 to 4 of 4
  1. Junior Member Registered Member
    Join Date
    Aug 2015
    Posts
    4

    Certifications
    MCSE: Cloud Platform and Infrastructure 2016, MCSA: Windows Server 2016, MCP Windows 10, Security+ CE
    #1

    Lightbulb Need Tips for Powershell practice 2016

    Does anyone have good material or tips of powershell in preperation for 70-740?
    Reply With Quote Quote  

  2. SS
  3. Member Neil86's Avatar
    Join Date
    Mar 2017
    Posts
    62
    #2
    This material isn't necessarily designed to pass a test, but there is a lot of free powershell material to learn a lot, as well as tons of other material:

    https://blogs.msdn.microsoft.com/mss...-2013-sharepo/
    Reply With Quote Quote  

  4. Junior Member Registered Member
    Join Date
    Aug 2015
    Posts
    4

    Certifications
    MCSE: Cloud Platform and Infrastructure 2016, MCSA: Windows Server 2016, MCP Windows 10, Security+ CE
    #3
    Thank you!
    Reply With Quote Quote  

  5. Senior Member
    Join Date
    Mar 2012
    Location
    Kansas City
    Posts
    277

    Certifications
    MCSA: Server 2012/2016, MCSE: CP&I
    #4
    When figuring out Powershell for any given Microsoft test the best thing you can do is look at the cmdlets associated with the technology being tested over.

    Warning and Apologies: Wall of Text Incoming...



    For example, 70-740 includes a lot of Hyper-V. Specifically there is a task to "Add or remove memory in a running VM". You could, of course, google this and find a lot of information but what I like to do is to figure out what all commands apply to Hyper-V. This can be done with the Powershell cmdlet "Get-Command".


    You can search by name (Get-Command *VM*) which will return anything that matches that name (the asterisks are wildcards and in my example return anything with VM in it). This will return Cmdlets, functions, aliases, etc.; basically everything.


    You can also search by noun, the right hand portion of a command (Get-Command -Noun VM). This returns anything that has that noun. If you include wildcards, it works very similar to the -Name switch.


    There is also the verb search (Get-Command -Verb "Get"). This one is less useful on its own than the other two. It searches for a command based on the verb, or the left portion of the command. The reason it is less useful is there are going to be hundreds, or thousands of instances of that verb because powershell restricts what verbs may be used (Get-Verb command shows the different verbs available in powershell).


    However, there is one more piece to point out. You can also search by Module. Module is the package that the powershell commands come in. Unfortunately the commands you need may not always show in the same module. When you do any of the Get-Command cmdlets to find the cmdlet you are interested in you also get the module that command is in. If you search by the module (Get-Command -Module "Hyper-V") you see every command in that module.


    So in the case of our our exam objective "Add or remove memory in a running VM". We can assume that it is in Hyper-V, if we didn't know the module we could try "Get-Command -Name *VM*" which would give us a bunch of commands from all over (several different modules come back). We would see in the list that a lot of those come from Hyper-V so you could then narrow it down by doing "Get-Command -Module Hyper-V". We need to adjust the running memory so you could try "Get-Command -Noun *Memory* -Module "Hyper-V" which gives us Get-VMMemory and Set-VMMemory. If we are wanting to adjust something, Set is more likely to be our verb of choice than Get. So Set-VMMemoory can be used to Add or Remove memory in a running VM.


    Its a convoluted process but you will learn a about how Powershell is laid out and how to find new cmdlets.
    2018 Goals: Security+
    2019 Goals: 70-744, CISSP
    Completed: MCSA 2012 (01/2016), MCSE: Cloud Platform and Infrastructure (07/2017), MCSA 2017 (09/2017)
    Future Goals: CISSP, CCENT
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks