With the latest service build (7.1.67) of PrimalScript 2015 we introduced a new feature; custom PrimalSense. In the first part of this series we showed you how to create a simple list and what options you have for providing data for these lists. In the second part we showed you how to make these lists […]
Tag: csv
PrimalScript adds Custom PrimalSense (Part 2: Images and multiple selection)
With the latest service build (7.1.67) of PrimalScript 2015 we introduced a new feature; custom PrimalSense. In the first part of this series we showed you how to create a simple list and what options you have for providing data for these lists. If you missed the post, click here. If your list has just […]
PrimalScript adds Custom PrimalSense (Part 1: Basic lists and static data)
With the latest service build (7.1.67) of PrimalScript 2015 we introduced a new feature; custom PrimalSense. While many items in a script can be determined dynamically based on context and offered as a selection in a list, there are equally as many items that are tied to your specific environment or your business logic. There […]
WMI Explorer 2014: Running Queries
WMI has a large amount of namespaces, classes and properties. While the WMI Explorer allows you to browse, search and filter all these items, it also enables you to query the underlying data for all of this. What you see above here is a standard query for the selected class. It is the same as […]
How would you change PrimalCSV?
PrimalCSV is another one of our community tools up for a review. As CSV is one of the file formats frequently used by administrators to transport large amounts of data from one script to the other, the need for a specialized tool is pretty clear. Whether you just need to see a file to verify […]
Export-CSV, now what?
PowerShell 2.0 has added the ability to export and import objects and store them as CSV files. CSV (Comma Separated Values) files have been a common file format since they where first used around 1967 on IBM mainframes and have been in constant use since then. If you need to edit CSV files most people […]
Out-CSV Revised
A while ago I published a short function to create CSV strings. While working on another task I came across $OFS, which is something I know about but never really think about. $OFS is an intrinsic PowerShell variable that controls the output field separator for arrays. You can modify this variable which made me realize there was a better way to handle my Out-CSV function. Here’s the revised function.
Out-CSV
Sometimes it’s the little things that can make life easier. Here’s one of them. We know that PowerShell treats comma separated items as an array:
PS C:\> $a=”a”,1,”b”,”jeff”,4
PS C:\> $a
a
1
b
jeff
4
PS C:\>
But what if you want back in its original comma delimited list? Or suppose you wanted to create a comma delimited line of all running services? Export-CSV isn’t really going to help in these situations. I came up with function called Out-CSV.
Management Reporting in Windows PowerShell
Ever wonder how you can use PowerShell’s native abilities to produce great-looking management reports – in CSV files, Eccel spreadsheets, HTML pages, and even charts and graphs? Well, come on down to TechMentor San Francisco where I’ll be giving a session on exactly that topic – along with a bunch more on Windows PowerShell, security, Windows […]
Read Remote Registry Function
Hopefully you found my last entry valuable. But I always like to take things a step further, especially when it comes to scripting and automation. So I turned my last script into a function that returns the value of a specified registry key