New-Asset Report - awesome, but can't get it to run?

Howdy - I am trying to run the awesome new-asset report that Zachary Loeber shared with the technet community.
The script is here:  http://gallery.technet.microsoft.com/Excel-and-HTML-Asset-0ffbf569
However I can't get it to run against 1 server or multiple servers.
I followed this information someone else asked and I get back many errors, all related to the parameters.
Can someone help me out with this?
A. Should this be saved as a function? And then I've read conflicting or maybe different ways to run a function.  Should I do import-module or just run the script as a single command line, and I've had this issue with other functions.  Should they
be put in a specific location on my system?  I'm newbie, so thanks for the help!
B.  When I run this, I've tried using this simple command:  .\New-AssetReport.ps1 -Computers testserver1.domain.local -PromptForCredentials -Verbose
C.  Then I tried this example as well from a single line or creating another ps1 script, fails either way.
D.  What variables are required to be filled in, and what parameters are available such as report type, include memory, but not disk, etc?
Here's the error if I enter the command like this:  .\New-AssetReport.ps1 -Computers testserver1 -PromptForCredentials -Verbose
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.
Here is the error if I use the other example which is below.  I get many errors, all tied to the parameters such as -verbose, etc.
$Servers = @('Server1','Server2')
        .\New-AssetReport.ps1 -Computers $Servers -PromptForCredentials -Verbose
New-AssetReport : The term 'New-AssetReport' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
-ReportContainer : The term '-ReportContainer' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.

Hi,
Please ask the author your question on the Q&A tab for that gallery entry.
Bill

Similar Messages

Maybe you are looking for

  • OS 10.4.11 sys prefs whacky

    "Hi running OS 10 4 11 on G5 1.8DP system preferences seems to be acting odd. Mouse buttons have changed sides. cant switch back in prefs. reset P Ram. Any thoughts?"

  • [Solved] gsimplecal auto focus problem with openbox+tint2

    I'm using these apps described above. Well, after I click the clock in tint2, the gsimplecal shows, but, it won't get focus automatically, which annoyed me a lot. I've already set <focusNew>yes</focusNew> in my openbox/rc.xml. Also, I noticed that ev

  • Unable to boot arch after re-installing nvidia

    My system is x64. I have Ubuntu installed along with Arch on a different partition. After having installed arch with some (probably redundant) nvidia packages, I decided to remove them by installing packam -S nvidia nvidia-uitls. I had to remove mesa

  • [질문]WAS 이용시 gc cr multi block request 발생

    OS 버젼 과 Word size : AIX 5.3 64BIT DB버젼과 Word size : DB VERSION은 10.2.0.3 64BIT RAC 환경이며 node1과 node2는 동일한 환경으로 구성되어 있습니다. 업무상 주로 이용하는 인스턴스는 node1 이구요. 파티션으로 구성되어 있는 테이블을 full scan하는 쿼리를 수행하는데 WAS에서 해당 쿼리를 날리면 gc cr multi block request 이벤트가 아주 오래 점유하고

  • Photos on iCloud have vanished

    When my Apple TV screen saver stopped working today, I verified that it was set to work with my iCloud account and then went online to iCloud itself and realized that ALL of my photos are missing from iCloud.  The photos are fed from my Aperture libr