Hello all,
During a device test, I ran a script to install the PSADT v4.0.6 module. After that, I executed another script to modify a variable in the config.psd1 file—specifically, setting LanguageOverride = 'EN'
Then i ran
Initialize-ADTModule
I got this error:
Initialize-ADTModule : The module's default config.psd1 file has been modified from its released state.
At line:1 char:1
+ Initialize-ADTModule
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (System.Management.Automation.Signature:Signature) [Initialize-ADTModule], InvalidOperationException
+ FullyQualifiedErrorId : ADTDataFileSignatureError,Initialize-ADTModul
Anyone knows if it is possible change the config.psd1
Thank you
There are 2 copies of config.psd1.
The one you can edit is \Config\config.psd1.
The other one is at \PSAppDeploytoolkit\Config\config.psd1.
It’s signed.
If you change it, you are going to have a bad time.
Hello,
the file that I changed was that one
“C:\users\ricardo\Documents\WindowsPowerShell\Modules\PSAppDeployToolkit\4.0.6\Config\config.psd1”
is that the one that i can change?
Oh! I’ve never othered to install the PSADT module AND change the config.psd1.
I just modify the \config\config.psd1 in my package and let the script import it into the current session.
Maybe that what you need to do and leave the installed version alone.
humm i see, the idea would be import the module for every single laptop, and then run some scripts for example “reboot” etc, using functions from PSADT
This is why I recommend to only install the PSADT module on the machine you will be editing PSADT scripts the most. And only import the module(s) on target computers.
I’m not sure what the Devs think about that.
That’s what i do to deploy/update application via Intune.
I only use my machine and my test machine.
but for example, if you wanted to deploy a script to send a pop-up for users to restart their machines, is it possible with detection and remediation ?
Thanks
I’ve never thought of trying to send a Restart pop-up for users by using Intune detection and remediation scripts. I think there too much to worry about. (i.e. prevent endless reboots)
Meanwhile you can try to make it work with Intune scripts (that would be a neat trick) but I’d go with ServiceUI.exe if you need that user GUI stuff right night.
User popups without needing to use SystemUI.exe is about to work in PSADT v4.1 but I think it’s still a month away.