ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Powershell: What Can I Start Practicing With?

    Scheduled Pinned Locked Moved IT Discussion
    14 Posts 8 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thanksajdotcomT
      thanksajdotcom
      last edited by thanksajdotcom

      I don't have my Powershell book with me today, and I plan to bring it tomorrow, but...considering I sit around 95% of my day with nothing to do, I figure I can start learning myself some Powershell. This question is for @Rob-Dunn and @Martin9700 mostly, and @Bill-Kindle , but what kind of exercises can I do to practice my Powershell?

      I think I'm going to take my script that I wrote for Pertino and make it a fully interactive Powershell version.

      While I'm at it, I'll create a script that you can use to set all IP settings. We'll see if I can do this!

      Thanks,
      A.J.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Pretty much come up with any task that you do and see if you can do it with PS. Then try to extend that in a useful way to doing it on multiple system.s

        1 Reply Last reply Reply Quote 2
        • Bill KindleB
          Bill Kindle
          last edited by

          Start small and build on that.

          Also, learn to use get-command and get-help. Plenty of examples tight there at your fingertips.

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by

            I usually learn coding type things by using pre-made scripts/examples and then take them apart to see what does what..

            1 Reply Last reply Reply Quote 1
            • Reid CooperR
              Reid Cooper
              last edited by

              I think that the biggest thing is just to jump in and start doing it. Use it anywhere that you can.

              1 Reply Last reply Reply Quote 1
              • M
                Martin9700
                last edited by

                Is there anything you find yourself doing over and over again? Can you PowerShell that? If you're doing mostly desktop support write a script that you could give an end-user and have them run to do some basic troubleshooting for you. You may never actually give it to them, but that's ok, sometimes the exercise is worth it.

                Write an inventory script that'll gather basic computer information and output it as a custom object. Then take those objects and make an HTML report out of them 🙂

                thanksajdotcomT 1 Reply Last reply Reply Quote 0
                • thanksajdotcomT
                  thanksajdotcom @Martin9700
                  last edited by

                  @Martin9700 said:

                  Is there anything you find yourself doing over and over again? Can you PowerShell that? If you're doing mostly desktop support write a script that you could give an end-user and have them run to do some basic troubleshooting for you. You may never actually give it to them, but that's ok, sometimes the exercise is worth it.

                  Write an inventory script that'll gather basic computer information and output it as a custom object. Then take those objects and make an HTML report out of them 🙂

                  That's a cool idea. I'm working through a book right now. The book is supposed to be REALLY good, as I've heard from several people. We'll see how it goes.

                  Bill KindleB 1 Reply Last reply Reply Quote 0
                  • coliverC
                    coliver
                    last edited by

                    One of the things that I had been working on to learn some Powershell was an automated script to create an AD user and an Office 365 mail account at the same time. I got 70% of the functionality I wanted and haven't been able to get back to it.

                    1 Reply Last reply Reply Quote 1
                    • Bill KindleB
                      Bill Kindle @thanksajdotcom
                      last edited by

                      @ajstringham said:

                      @Martin9700 said:

                      Is there anything you find yourself doing over and over again? Can you PowerShell that? If you're doing mostly desktop support write a script that you could give an end-user and have them run to do some basic troubleshooting for you. You may never actually give it to them, but that's ok, sometimes the exercise is worth it.

                      Write an inventory script that'll gather basic computer information and output it as a custom object. Then take those objects and make an HTML report out of them 🙂

                      That's a cool idea. I'm working through a book right now. The book is supposed to be REALLY good, as I've heard from several people. We'll see how it goes.

                      Month of Lunches? It is a very good book. The toolmaking one is also good. When finished, Mannings "PowerShell In Depth" is a good read as well.

                      thanksajdotcomT 1 Reply Last reply Reply Quote 0
                      • thanksajdotcomT
                        thanksajdotcom @Bill Kindle
                        last edited by

                        @Bill-Kindle said:

                        @ajstringham said:

                        @Martin9700 said:

                        Is there anything you find yourself doing over and over again? Can you PowerShell that? If you're doing mostly desktop support write a script that you could give an end-user and have them run to do some basic troubleshooting for you. You may never actually give it to them, but that's ok, sometimes the exercise is worth it.

                        Write an inventory script that'll gather basic computer information and output it as a custom object. Then take those objects and make an HTML report out of them 🙂

                        That's a cool idea. I'm working through a book right now. The book is supposed to be REALLY good, as I've heard from several people. We'll see how it goes.

                        Month of Lunches? It is a very good book. The toolmaking one is also good. When finished, Mannings "PowerShell In Depth" is a good read as well.

                        Yup. I'm liking it so far.

                        Bill KindleB 1 Reply Last reply Reply Quote 0
                        • Bill KindleB
                          Bill Kindle @thanksajdotcom
                          last edited by

                          @ajstringham said:

                          @Bill-Kindle said:

                          @ajstringham said:

                          @Martin9700 said:

                          Is there anything you find yourself doing over and over again? Can you PowerShell that? If you're doing mostly desktop support write a script that you could give an end-user and have them run to do some basic troubleshooting for you. You may never actually give it to them, but that's ok, sometimes the exercise is worth it.

                          Write an inventory script that'll gather basic computer information and output it as a custom object. Then take those objects and make an HTML report out of them 🙂

                          That's a cool idea. I'm working through a book right now. The book is supposed to be REALLY good, as I've heard from several people. We'll see how it goes.

                          Month of Lunches? It is a very good book. The toolmaking one is also good. When finished, Mannings "PowerShell In Depth" is a good read as well.

                          Yup. I'm liking it so far.

                          Use the videos and samples, should be mentioned already in the book. The PowerShell 3.0 JumpStart on MVA is another good series.

                          thanksajdotcomT 1 Reply Last reply Reply Quote 0
                          • thanksajdotcomT
                            thanksajdotcom @Bill Kindle
                            last edited by

                            @Bill-Kindle said:

                            @ajstringham said:

                            @Bill-Kindle said:

                            @ajstringham said:

                            @Martin9700 said:

                            Is there anything you find yourself doing over and over again? Can you PowerShell that? If you're doing mostly desktop support write a script that you could give an end-user and have them run to do some basic troubleshooting for you. You may never actually give it to them, but that's ok, sometimes the exercise is worth it.

                            Write an inventory script that'll gather basic computer information and output it as a custom object. Then take those objects and make an HTML report out of them 🙂

                            That's a cool idea. I'm working through a book right now. The book is supposed to be REALLY good, as I've heard from several people. We'll see how it goes.

                            Month of Lunches? It is a very good book. The toolmaking one is also good. When finished, Mannings "PowerShell In Depth" is a good read as well.

                            Yup. I'm liking it so far.

                            Use the videos and samples, should be mentioned already in the book. The PowerShell 3.0 JumpStart on MVA is another good series.

                            It's kinda nice because I'm using Powershell v4 on the PC I'm on.

                            Rob DunnR 1 Reply Last reply Reply Quote 0
                            • Rob DunnR
                              Rob Dunn @thanksajdotcom
                              last edited by

                              @ajstringham

                              A good start might be some cool registry checks.

                              As an example, I'm working on a WSUS troubleshooting tool (next gen script based on my VBScript that checks in and downloads/installs updates and emails a logfile). A big portion of my script is checking various registry keys and outputting those to the screen so I can quickly determine if there is a problem with my WSUS client configuration.

                              This is using (among other things) - get-itemproperty - fun little cmdlet!

                              1 Reply Last reply Reply Quote 0
                              • thanksajdotcomT
                                thanksajdotcom
                                last edited by

                                @Rob-Dunn Cool! I haven't cracked my Powershell book today, as it's been busy enough to post all day.

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post