Import-PSWSUSMetaData
I might be incorrect but looking at the source code for the import function, it appears that it actually exports the data not imports the data. Is this correct/right?
I'm asking because I'm having problems with it and I'm trying to determine if it is me or the code that is the issue.
You would be correct. For some reason this is exporting the metadata instead of importing it. I will need to get that fixed,
Is there a fix for this?
It hasn't been fixed yet. Different priorities have kept me from this. It is noted as an issue and I will try to make some time to work on this sometime soon.
Thanks for the update. I found this (from 10 years ago): http://www.howtoupdateservice.info/WSUS_3_0_API_question_DFlN.html Stating the ImportUpdates method doesn't work but ExportUpdates does. I'm willing to bet this was never fixed in the API because I get "Object reference not set to an instance of an object." when I run it.