We're Hiring!
Take the next step in your career and work on diverse technology projects with cross-functional teams.
LEARN MORE
Mountain West Farm Bureau Insurance
office workers empowered by business technology solutions
BLOG
3
26
2019

Importing Data Into Beekeeper Patch Automation Software

Last updated:
9.16.2020
No items found.

When you enter data into Beekeeper Patching Automation, you use the UI to add server groups, Windows Failover Clusters, and Exchange DAGs.  Then, you assign validation tasks to these server groups or clusters.  To create the execution job, you assign the server groups or clusters to a schedule.  This can be time consuming.

I have created PowerShell scripts to do these tasks.  In a series of blog posts, I will share these PowerShell scripts and go over their usage.

The first PowerShell script will export servers from an SCCM collection into a CSV.  Then another script will import that CSV to create the appropriate Application groups, Windows Failover Clusters, or Exchange DAGs.

Special Note: When you are adding Windows Failover Clusters and Exchange DAGs, you specify the cluster or DAG name, not the individual nodes.

To export the members of an SCCM collection, you will need to provide the SCCM collection ID and the path to the exported CSV.  To get your SCCM collection ID, you can add that field to the view of your collections by right-clicking the column names, and adding Collection ID with the SCCM console.


You can run ExportSCCMCollection.ps1 (download here from Github) and it prompts you for the parameters if you do not specify them. Make sure you run this script where you have the SCCM console installed so that the PowerShell snapin is available. Specify the full path for the CSV file.

The script statically sets some of the fields, which you can edit:

Example CSV file:


Another source for importing servers into Beekeeper can be your asset management database. 

Using ExportServersFromSQLToCSV.ps1, you can customize the database source and export the appropriate servers using a SQL query.


This script requires the full patch for the output CSV as a parameter.


Now that we have the exported data, we can import that data using another PowerShell script, ImportCSVToBeekeeper.ps1.  This script is configured to be run on the Beekeeper server, you can run it from anywhere if you change all references to “localhost” to the Beekeeper server name.  You need to specify the full path to the CSV file when executing the script.

In Beekeeper, the Application Group has been created:

Obviously, this will help you when adding many servers at once.

An example CSV is also in the github repository.

There will be three more blog posts in this series:

Recent Blog Posts

lunavi logo alternate white and yellow
2.11.2025
2
.
7
.
2025
The Future of Test Automation: Key Trends Shaping 2025 and Beyond

Software testing has gone from a chore to a game-changer, thanks to automation. But in 2025, sticking to old methods means falling behind. Stay ahead by embracing the future of test automation—let’s explore the key trends shaping what’s next.

Learn more
lunavi logo alternate white and yellow
2.11.2025
1
.
23
.
2025
The Importance of Cross Browser Testing

Making sure users have a smooth experience across all these platforms is crucial for businesses to stay competitive. Cross-browser testing is now a key part of modern development. It helps teams find and fix problems like layout issues, broken features, or slow performance before users are affected. Let’s look at why cross-browser testing matters and explore tools that make it easier to get the job done.

Learn more
lunavi logo alternate white and yellow
11.19.2024
11
.
8
.
2024
Load & Performance Testing with Azure Load Testing Service

Learn about load and performance testing in Microsoft Azure.

Learn more