Use Powershell7 (pwsh) for powershell scanner
Dear fellow PDQ users,
is there any possibility to tell PDQ Inventory that it should use powershell 7 for a powershell scanner?
I've built a script to deep search files through all disks and partly unzip them and there are several functions in my script which only work in pwsh7.
So running these scripts locally inside a pwsh shell works fine but it does not work using PDQ inventory since it always starts powershell version 5...
Please help me or tell me when you plan to integrate pwsh7 into pdq :-)
Kind regards,
Comments
I don't know about changing what PDQi uses, but you can change what Deploy uses by putting something like this at the top of your powershell scripts.