About Me

zloeber-profile

Zachary Loeber is an IT enthusiast with over a decade of experience in the field. Zach cut his teeth on a Tandy 2000 and BBS’s of the late 80′s and has been programming, building, and networking computers ever since.

When it comes to technology Zach’s primary interests are:

  • Security
  • Networking
  • System Administration
  • Linux
  • Windows
  • VMware
  • Exchange 2010
  • Powershell
  • Automation

Some of Zach’s other interests include lifting weights, camping, running, self-improvement, and being a good husband. More information can be found on his linked in page.

View Zachary Loeber's profile on LinkedIn



Comments (17)

  1. 9:47 PM, 04/11/2014Igor  / Reply

    Where is this New asset report ? cant find it. I need to create a html report of about 125 servers and I can sort by drive space remaining.

  2. 1:23 AM, 04/04/2014Karl  / Reply

    Zach:

    I am developing an internal use network assessment and inventory appliance and thought I would see what you have been using lately and your thoughts on a set and forget box that we could go get after a few days. The main focus being Asset inventory however perf monitoring and infrastructure is a plie

    • 3:17 PM, 04/04/2014Zachary Loeber  / Reply

      Hello,

      Although I’ve not updated my general appliance in a while I’ve become very fond of Observium for such tasks. I think they even have a prebuilt VM as well now.

      Cheers,
      Zach

  3. 4:01 PM, 02/25/2014Steve  / Reply

    Hi Zach,
    I’m going to give your updated method a shot now, thanks alot for an awesome script and the help, much appreciated! When you run this (yourself or others – I’m OK with Powershell, but still a ton to learn). Do you use this as a function or how do you run it? I did remove the back ticks, but I’m not sure if I it’s best to run this as the command you specified if I had to run it against a large number of servers? When you noted the “function part” on technet, do you use that part in a separate script and then call this one? Thanks again!

    Steve

    • 8:25 PM, 02/25/2014Zachary Loeber  / Reply

      Steve, glad you are working through the process with me rather than just giving up and rating down the script on Technet :)

      Honestly, if you are looking for one specific bit of information from the report from a large number of systems I’d probably just use one of the multi-runspace functions in the script rather than using the whole thing. Regardless, the initial script was setup as just a function called new-assetreport that could be (and still can be) used to create system asset reports. I’ve since wrapped the whole file up with a set of simplified parameters so it can be called directly instead of having to futz around with coming up with the exact function parameter syntax. This prevents having to modify the script at all in most cases.

      Another item to note is that while the alternate credentials do work it will likely run faster and provide more results if you just run the script as an account with the required credentials for any domain joined systems.

      How many systems are you looking to report against? You may want to try the first run just generating troubleshooting sections instead of the full documentation to speed things up a bit (-ReportType Troubleshooting).

      Let me know how it goes,
      Zach

  4. 11:08 AM, 02/25/2014Steve  / Reply

    Hi Zach – I just got this error now trying the new version, I am sure it’s my fault, I’m not clear on how to run it against 1 or more servers.
    I specified $Cred as a variable when I tried to run it, and the same for $Computers, then it seemed to launch when I ran .\new-assetreport -Computers $Computers, but then I get errors for all of these items:
    -AssetName : The term ‘-AssetName’ is not recognized as the name of a cmdlet, function, script file, or operable
    program.
    –Credential
    -SaveReport
    –OutputMethod

  5. 10:40 AM, 02/25/2014Steve  / Reply

    Hi Zachary, Thanks for the fix on the script. I am trying to run it and I’m sure I’m doing something wrong. Should the list of computers be at the bottom of the script in the array you mentioned on the technet site?
    I wasn’t sure how to “run” this.
    Here’s what I tried adding to the bottom of the script

    $Servers = @(‘server1.domainname.com’,’server2.domainname.com’)
    $Cred = Get-Credential
    New-AssetReport -ReportContainer $SystemReport
    -AssetName $Servers
    -Credential $cred
    -SaveReport
    -OutputMethod ‘IndividualReport’ `
    -HTMLMode ‘DynamicGrid’

    • 11:52 AM, 02/25/2014Zachary Loeber  / Reply

      The examples I give in the script are all divided with backtick characters to make them more readable. You can run the script without even calling the New-AssetReport function directly. I’d comment out your additions at the end of the script then from a powershell prompt navigate to where the script is installed and run the following:

      $Servers = @(‘server1.domainname.com’,’server2.domainname.com’)
      ./New-AssetReport.ps1 -Computers $Servers -PromptForCredential -Verbose

      It seems like a bit of a pain but I’ve put so many features into the script I promise that this is probably the simplest method I could come up with. Thanks for your feedback btw, I’ve just uploaded a few more fixes so you should download the most recent version and try again if you do not mind.

  6. 3:02 PM, 02/24/2014Jason Martin  / Reply

    I am getting the following error trying to run your script.
    New-AssetReport : Cannot process argument transformation on parameter ‘SaveDataFile’. Cannot convert value “System.String” to type
    “System.Management.Automation.SwitchParameter”. Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0.
    At C:\Scripts\New-AssetReport\New-AssetReport.ps1:13983 char:1
    + New-AssetReport @reportsplat
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (:) [New-AssetReport], ParameterBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,New-AssetReport

    • 10:03 PM, 02/24/2014Zachary Loeber  / Reply

      Jason, I replied to your post on the technet gallery. There was a minor fix to my most recent release I just uploaded. Give the newer version a try instead. That error should no longer be present.

  7. 3:41 PM, 02/19/2014Steve  / Reply

    Hi Zach,
    I’m trying to use your awesome new-asset report. However I can’t get it to run against a single server. I put this code at the bottom of the script, but I then get -verbose, -savedatafile, etc all as un-recognized commands. How should I run this report against either a single server, list of servers, or query AD for servers *excluding” desktops?

    $Servers = @(‘server1.domainname.com’,’server2.domainname.com’)
    $Cred = Get-Credential

    New-AssetReport -ReportContainer $SystemReport
    -AssetName $Servers

    -Credential $cred
    -SaveReport

    -OutputMethod ‘IndividualReport’ `
    -HTMLMode ‘DynamicGrid’

    • 8:41 PM, 02/19/2014Zachary Loeber  / Reply

      That should just work. What is the exact error that you receive? I just uploaded a newer version that I’ve been working earlier today as well. You may want to give that version a whirl.

  8. 3:26 PM, 05/26/2012click  / Reply

    An insightful blog post right there mate . Thank you for the post .

  9. 7:53 AM, 04/08/2012Agueda Giessler  / Reply

    I really like your writing style, fantastic info, appreciate it for posting :D.

  10. 1:59 PM, 02/22/2012Rogelio  / Reply

    Excellent info in this site. Thanks.

  11. 2:24 AM, 08/16/2011BSA Scouts  / Reply

    Nice post, I love the website.

  12. 12:43 PM, 07/07/2011Andrew Chapman  / Reply

    Dear Zach,
    Our company is looking for a Windows Systems Administrator in the Chicagoland area. Experience in Business Critical Systems, SAN,NAS,UNIX. Any ideas greatly appreciated.
    Regards
    Andrew Chapman 505 346 4919

Leave a Reply

Pingbacks (0)

› No pingbacks yet.

Follow

Get every new post delivered to your Inbox

Join other followers