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
-
I have a new epson wireless printer but cnannot get my Mac laptop to print to it. Any suggestions
Can you find your printer in Print & Fax?
-
I downloaded a new version of pages but can't get it to work?
I had an older Iwork 06 on the computer, but can't find serial number. I downloaded newest version of Pages, but computer keeps defaulting to the old version and asking for a serial number. Help? Thanks!
First, open Finder, go to Applications folder and delete iWork '06. Then, open Pages and it will use the most recent version
-
My wife and I shared the same AppleID but now want to break these apart into separate accounts. I have set up a new appleid for her and also set up on line. However, I can't figure out how to change this on her iphone4. I have looked at all of the General settings but need guidance. When I use the phone to try to purchase songs from itunes, it reverts to the old appleID.
Any suggestions?Welcome to the Apple Community.
In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > store, scroll down and tap your ID) -
I have a packardbell laptop with photoshop elements 8 installed from new. I have used it on several occasions but I cannot get it to run now. When I open a photo using elements the Adobe box pops up saying that the programme has unexpectedley quit? can anyone help me please as I have several photos to edit before the end of this month. Many thanks for any help
The "restore disk" is built into the Mac. See About Recovery.
Need more specifics about what error messages you got while installing Adobe Flash.
However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
Click the Try something new! link at the bottom of the YouTube page.
I don't know about the sound issue. Might be hardware as you think. Try other headphones to check. -
My itunes is on an old computer. So old that I can't update it and so Haven't used it in two years. How can I move it to my new laptop and make sure this doesn't happen again? Very frustrated that I've spend $$ but can't get my music.
I want so set up itunes on my laptop and make sure that I get all of my old music and any music shared from my sons' itunes accounts. Do I have to set up itunes on my new laptop first and then use the same logins? Really concerned about losing any music, etc.These are two possible approaches that will normally work to move an existing library to a new computer.
Method 1
Backup the library with this User Tip.
Deauthorize the old computer if you no longer want to access protected content on it.
Restore the backup to your new computer using the same tool used to back it up.
Keep your backup up-to-date in future.
Method 2
Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
I'd recommend method 1 since it establishes an ongoing backup for your library.
Note if you have failed to move contacts and calendar items across you should create one dummy entry of each in your new profile and iTunes should merge the existing data from the device.
If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
tt2 -
I bought a new computer and am trying to get my library from the old computer to the new one and download some more songs. I have downloaded itunes to my new computer but can't get any further. sorry, I am a computer dinosaur. Thanks for your help.
You need to contact Apple, either through the link in that article or by phoning them and asking for the Account Security team.
(85855) -
I have taken my 750GB HD out of my 17" MacBook Pro and put it into a 2.5" USB to SATA enclosure but can't get it to open up on my new 11" MacBook Air. Any ideas please.
Have you installed the recent update?
There are some issues with Apple USB 3.0 ports and some devices. -
I am trying to change my Apple ID on my iPad from an old work email address to a new personal address. I have changed it on my new iPad and in FaceTime but can't get it to work in iTunes. Any ideas?
If they are no longer in your camera roll, save them to your camera roll before deleting the account (open your my photo stream album, tap Select, tap the photos, tap the share icon -- box with upward pointing arrow, the tap Save to Camera Roll).
-
The main part of the safari page is grey and won't respond/can't type in any commands. I can move back through the previous pages, and even open new ones via the URL, but can't get onto the main part of the page and I can't get onto the 9 page option. !?
Help, please.Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen. Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after making room for the new APp. It can be opened, but I want the APP to be on her iPhone screen as well as on mine. Help, please.
Is the app downloaded on her phone also?
-
I have downloded ITunes to a new laptop and signed in this let's me download previous purchases in to the librery but can't get the films I have bought quite a lot over time any idea how I can get them ???
You cannot.
You buy one and only one download of movies. it is your responsibility to backup your purchases.
Copy everything from your old computer or your backup copy of your old computer to your new one. -
I've just setup icloud on our new ipad but can't get any music to play on the ipad. It shows everything that is in our itunes but they won't play
Keep the Powerbutton and the Homebutton pressed at the same time until you see the Apple logo on your iPad screen.
-
Trying to transition from my old iPhone 3G to a new iPhone 4S, and have some problems getting all my photos/videos to transfer. Apps and music are fine, but can't get about 2/3 of my photos. Any suggestions?
Good afternoon
Are you getting any error messages? This might be helpful reading.
http://support.apple.com/kb/TS3697
Cheers -
What web player can I get on my ipad 2 so I can watch live sports? And how comes since I updated to ios6 I cannot acces the iTunes can connect to App Store but can't get nothing at all from there? PLEASE HeLP
Just connect the new iPod to your computer and setup the iPod via iTunes (instead of via wifi).
If you want to copy all the infor from an old iPod touch to the inew iPod see:
iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
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