Hi,
I am using Sapien 2020 to create a GUI exe and want to embed a PSD1 file into the form, then use Import-PowershellDataFile to import it. How would I do this?
How to Import-PowershellDataFile EMBEDDED into EXE
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
-
- Posts: 1
- Last visit: Tue Mar 08, 2022 7:14 am
Re: How to Import-PowershellDataFile EMBEDDED into EXE
Embedding a PSD1 file into a script will not do anything for you. A PSD1 file is just a file that sets the global values for a module.
Doing what you ask would serve no purpose. To load a module use "Import-Module" which loads the PSM1 and configures the module as specified in the PSD1 file.
Doing what you ask would serve no purpose. To load a module use "Import-Module" which loads the PSM1 and configures the module as specified in the PSD1 file.