I had a funny problem on a customer site today while deploying a Flexera CSI solution for third party patching. I integrated the solution with WSUS but had problems creating the agent package. The package failed to be published to WSUS.
The error was: Failed to publish package. Code: -2147467259. CreateDirectory failed.
Now I'm familiar with this error from my experience with System Center Updates Publisher. It's usually a permissions issue and that the logged on user does not have permissions to create a new folder in the UpdatesServicesPackages folder. Permissions was a good place to start troubleshooting.
I checked the NTFS permissions on the UpdatesServicesPackages folder but all looked normal
- Full Control: Administrators, SYSTEM, WSUS Administrators
- Read, Write: NETWORK SERVICE
- List Folder Contents, Read, Read & Execute: Users/Everyone
I then thought I'd verify that my user account was in fact a member of the local administrators group on the server. That looked a bit weird. My user account AND SID were listed. That didn't look right to me so I figured that I needed to look into the health of the server.
I ran the PoSH cmdlet test-computersecurechannel and the result was worrying
Operation failed. Unknown interface.
Mmm, now I was getting a little concerned. Next step was to check the services and I found the little problem. The Workstation service was stopped (I have no idea how or why). Starting the service solved the problem and all was good again.
I could successfully create the package.
I hope this helps someone who encounters a similar problem. Until next time.....
Back to Secunia menu
In the last blog post we deployed the CSI agent to our computer estate. Scans have been carried out and the information is now available in the Secunia CSI Portal.
See the top 10 "Most Prevalent Insecure Software Installations".
So how do we patch the insecure applications. Let's run through the process.
Navigate to Patching > Secunia Patching Systems. See the list of products that we can now patch. Choose the one you want. I'm going to patch VLC Media Player.
Right click and choose "Create Update Package".
The Package Configuration wizard is launched. Enter a suitable name.
Don't forget to select "Use Secunia Custom Naming".
Leave the defaults and click next to continue. Finally choose Publish.
(Note that the configuration options will vary depending on the application).
The package has been created and published to WSUS.
In ConfigMgr kick off a manual sync.
Accept that you want to site-wide sync.
The package is available in ConfigMgr almost immediately.
Right click the package and choose to deploy.
Run through the usual Deploy Software wizard.
Complete the wizard.
You have now completed the third party patch process. You can monitor the success of the deployment in Monitoring > Deployments.
I hope this series of blog posts has been useful for you.
Until next time.....
Back to Secunia menu
In order to have an effective third party patching solution you need to know what third party applications are on your computers. There are a number of ways to collect this inventory.
ConfigMgr Software Inventory
I'm not a real fan of software inventory in ConfigMgr. It doesn't gather the information from "Programs and Features" on your devices (ironically that is done by hardware inventory). Rather it just collects a lot of information about files on your systems. You have to configure the file extensions in advance. For me it causes a lot of unnecessary overhead for very little gain.
If you wish to use this method you must add the following file extensions to ConfigMgr software inventory.
*.exe
*.dll
*.ocx
Also the ConfigMgr server must have Internet access and be able to communicate with the Secunia cloud service using port 443.
Remote Scanning
This is OK for smaller networks but doesn't scale well to enterprises.
CSI Agent
This method requires that a small lightweight agent is installed on each computer. All computers will need Internet access and be able to communicate with the Secunia cloud service using port 443.This is the method we will use for this blog.
In the CSI Portal navigate to Patching > Agent Deployment.
Select "Create CSI Agent Package".
The Package Configuration wizard is launched. Enter a suitable name.
Make sure that you check the "Use Secunia Custom Naming" box. All third party updates will then have the Secunia name. You will be able to filter by Secunia and you will never exceed the vendor limit of your Software Update Point.
Choose the defaults. Remember that we will be publishing the package to WSUS.
The package has been created.....
.....and is available.
Now we must carry out some preparatory work in ConfigMgr. Open the Software Update Point properties.
Select "Create all WSUS reporting events".
Ensure "Security Updates" is selected.
For products note that we can currently only see Local Publisher and Microsoft.
Manually synchronize the updates.
Almost immediately you will see Secunia as an available option. Check the box.
In time the package will be available in ConfigMgr. This can take a while (almost an hour in this example).
Right click and choose to deploy the package.
Enter a suitable name for the deployment and choose the collection of devices.
This is a required deployment.
Choose as soon as possible.
A reboot is not required.
Select a deployment package.
Click Next to create the deployment.
Now you could wait until the normal updates cycles run. However I'm impatient so I've used the Now Micro Right click tools to immediately run the Software Updates Deployment Evaluation Cycle and the Machine Policy Retrieval and Evaluation Cycle. The agent now installs on the computers.
You can see scan results being reported in the CSI portal.
Detailed scan results.
See the insecure third party applications.
See the top 10 offenders. We will update these applications in the next blog in the series.
Until next time.....
Back to Secunia menu
The first step in a Secunia CSI deployment is to purchase the licenses (the product is licensed per node). You can contact Secunia directly or through a Managed Service Provider (MSP). Ergo Group (my employer) is the Secunia CSI MSP for Republic of Ireland. Your login details will be sent to you via email.
Connect to the CSI Portal. (You must use Internet Explorer (I'll explain this later). Also some of the functionality requires for IE to be launched as Administrator. Therefore I think it's easier just to do this each time).
https://csi7.secunia.com
Welcome to the CSI Portal.
See the navigation tabs on the portal. Some items are missing from the final solution. Where is "Patching" for example? For now we can only see cloud based items that can be configured (User management, for example). We cannot integrate with Active Directory or WSUS/SCCM at this stage.
So what is the problem? Have a look at the bottom of the IE screen. You will see a reference to the CSI Plugin. This is required to add the functionality to integrate with on premise services. Note that the CSI Plugin is only supported by Internet Explorer. If you use another browser you will be able to log in to the portal but you will not be prompted to install the plugin.
Download and install the CSI Plugin.
It's a very straightforward installation with no trick questions.
After the installation you are prompted to reload the portal page.
Now see the additional items. See "Patching". We will be doing a lot of work using this menu.
Also see where we can now integrate with Active Directory.
One final thing to note here - have a look at the bottom right of the screen and see that the portal version is 7.1. When Secunia upgrade the portal (possibly to 7.2) you will have to download and re-install the Plugin for 7.2. Don't worry though. You won't have to redo any configuration.
Next we will carry out the initial configuration. Until then.......