Ok, first of all you are writing to the path Lonkero suggested.

You use LogtoFile("ForceOverwrite",$LogonLogs+"Software_Inventory\"+@WKSTA+".csv",$PackageList) as the command to write the data to the log file. The variable $logonLogs is set to "\\hbs002592\c$\Netlogon\Software_Inventory\" and you add +"Software_Inventory\"+@WKSTA+".csv" to that.

What error codes do you get just after you try to write to the log file? I usually display @error and @serror in these cases to find out what is causing this.

Regular users cannot access \\systemname\c$ so unless the user is an admin on the target system or custom permissions have been set this will not work.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.