learning additional automation techniques

Welcome Forums General PowerShell Q&A learning additional automation techniques

Viewing 2 reply threads
  • Author
    Posts
    • #34167
      Participant
      Topics: 37
      Replies: 143
      Points: 0
      Rank: Member

      I've read Adam's article with great interest.

      https://mcpmag.com/articles/2016/01/20/connecting-to-wsus-with-powershell.aspx?m=1

      I'm fascinated with the below two commands:

      [void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")

      $script:Wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer(MYWSUS, $false, 8530)

      This is the sort level I would like to reach. How do you find out that you need to do the above and then know what syntax you need. I want to get good at automation and use and find my own to build solutions. How can I get good at this?

      Thanks !

    • #34172
      Participant
      Topics: 0
      Replies: 669
      Points: 0
      Rank: Member

      First off

      [void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")

      shouldn't be used. LoadWithPartialName method is deprecated and will be removed in the future. The correct way to load .NET types is to use Add-Type.

      To answer your main question to increase your knowledge and skills requires a lot of work. I'd recommend finding some projects that need automating and working through those. You'll more than likely need to research the answers – and that is where you increase your knowledge.
      Coming up with an answer to our monthly Scripting Puzzle would be a good start. Attending one of the PowerShell conferences would enable you to meet other PowerShell experts and learn from them

    • #34177
      Participant
      Topics: 37
      Replies: 143
      Points: 0
      Rank: Member

      Thanks Richard, appreciate a reply from a powershell genius. Did you happen to look at my sccm script? I can do things to a medium level, it's pushing through that glass ceiling. I've got lots of books, including yours, and try and get through videos on pluralsight.

Viewing 2 reply threads
  • The topic ‘learning additional automation techniques’ is closed to new replies.