Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 13 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I am trying to gather the bios levels (and anything else I can) for some workstations. I found the following script below that was told would gather the requested information, but I cannot figure out where I need to add the " -credential (my credentials)" to avoid the access error. Can anyone please assist?
The above will create a file of all servers in one CSV.
I tried running that for one computer substituting the IP for (cat servers.txt) and the credention for $creds and the CSV resulted in only the following
#TYPE System.String
Length
1
I now have the following which runs fine within the powershell window, but I cant get the export to CSV correct. I understand it has to go after all the data is collected but I still don't understand which part of the script it goes to because of the substrings.
I read through the examples but since this appears more complex I cant put 2 and 2 together. I assume it would go at the end of the $colItems since that is the line with the get-wmiobject, but it errors out when I do so
This topic is 13 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.