I have a requirement to capture the size and file path of every PST file on workstations. I don’t want to get the PST file; I just need its size and location and update those values in registry HKLM. Will this be possible through script ? Later I can configure BBCA to capture those values from registry scanner.

Yes, i have tested it before sending... maybe there is a formatting error as you copy it. Send me a PM with your email and I will forward the script as attachment. Also check if there are any user restrictions on drives and registry.