Thanks Daniel, I missed the detail that it wants the filename to include module version. I’ve fixed that and am now faced with this:
Invoke-CimMethod @params
Invoke-CimMethod : Failed to extract the module from zip file C:\Windows\TEMP\\635523491861734499\xSmbShare_1.0.zip downloaded by Download Manager WebDownloadManager.
At line:10 char:1
+ Invoke-CimMethod @params
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (root/Microsoft/...gurationManager:String) [Invoke-CimMethod], CimException
+ FullyQualifiedErrorId : ModuleExtractionFailed,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand
I’m thinking this is cause I zipped it originally with 7 zip instead of the built in zip. Will have a go at it and report back.