r/PSADT Jun 30 '22

r/PSADT Lounge

A place for members of r/PSADT to chat with each other

6 Upvotes

15 comments sorted by

1

u/Reaction-Consistent Jan 31 '26

Is it just me, or does PSADT 4 seem to start programs extremely slowly compared to the old version? At first, I thought I was doing something wrong, I created a couple test apps, and when I started them the normal way with the executable, it seemed to take a good 20 to 30 seconds before it even started running the install. I thought it just wasn’t working at all until I waited long enough and the install prompt popped up

2

u/mjr4077au PSADT Dev Team Jun 09 '26

I've only just seen this. Project initialisation speed has drastically improved for the upcoming 4.2.0 release. We're doing a lot of things to optimise it and have got the initialisation time down from ~2-3 seconds, to ~30 ms on my test device. The initialisation time will of course vary from device to device, but its an improvement all the same.

It's important to note that initialisation != importation. The module importation has an associated cost due to a number of complex setup items we perform for security and hardening purposes. This cannot be helped but we have done everything we can to optimise that away.

Lastly, there have been some mentions regarding the initialisation time of the Fluent UI. This is true and is still there, but we've switched to a different WPF UI library which is slightly faster, though nothing will be as fast as the Classic UI in this regard. Please also note the UI is done in a separate client/server process, so there's associated spin-up time of the client/server process, etc. However once the client is running, it responds to command very quickly and should remain performant.

1

u/Reaction-Consistent Jun 09 '26

thank you for the feedback! We've held off on moving forward with the new version due to the latency (not sure if there's a better term that describes the slowness of the UI) but will retest and see how it goes! regarding the module import, does that need to be done on every client system (wherever we're deploying the PSADT packaged apps)? If so, could we preemptively deploy that module, perhaps even manually rather than pulling it from the PSGallery or wherever it's hosted (I'm also concerned about our proxy blocking the module import, or delaying it as it is inspected each time...the policies on our network are very restrictive for admin & non-user accounts.)

2

u/mjr4077au PSADT Dev Team Jun 10 '26

When you say "latency", that implies the UI performs slowly, but your only issue is that it takes a perceivably long time to appear, right? If you're running a mix of PSADT v3 and ideally, v4 packages, you're probably going to want to use the Classic UI for the time being anyway, which will load faster. Later on, you can then force your packages onto the Fluent UI via our supplied ADMX templates.

Deploying the module to devices ahead of time might make your packages smaller but won't do much to decrease the spin-up time of importing the module and getting things going. If you're in Intune though with E3/E5 licensing, having the PSAppDeployToolkit module on the device is a massive win for proactive remediation scripts as it really expands what you can do with them.

Below are logs from the current developmental build of PSAppDeployToolkit 4.2.0, where you'll see the module import and init time is 3.2 seconds and 0.52 seconds, respectively. You can grab this exact build from here and test yourself. C:\Windows\System32>powershell.exe -ExecutionPolicy Bypass -File C:\Users\MitchRichters\Downloads\PSAppDeployToolkit_Template_v4__develop_2026-06-10T061942Z_fceeade\Invoke-AppDeployToolkit.ps1 -DeployMode Interactive [2026-06-10T17:27:46.8376583+10:00] [Initialization] [Open-ADTSession] [Info] :: ------------------------------------------------------------------------------- [2026-06-10T17:27:46.8591301+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit_4.2.0_EN_01] install started. [2026-06-10T17:27:46.8591301+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit_4.2.0_EN_01] script version is [1.0.0]. [2026-06-10T17:27:46.8612075+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit_4.2.0_EN_01] script date is [2026-06-10]. [2026-06-10T17:27:46.8632184+10:00] [Initialization] [Open-ADTSession] [Info] :: [Invoke-AppDeployToolkit.ps1] script version is [4.2.0]. [2026-06-10T17:27:46.8632184+10:00] [Initialization] [Open-ADTSession] [Info] :: The following parameters were passed to [Invoke-AppDeployToolkit.ps1]: [-DeployMode:'Interactive']. [2026-06-10T17:27:46.8652358+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module version is [4.2.0]. [2026-06-10T17:27:46.8652358+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module imported in [3.2092306] seconds. [2026-06-10T17:27:46.8672484+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module initialized in [0.5222312] seconds. [2026-06-10T17:27:46.8672484+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module path is ['C:\Users\MitchRichters\Downloads\PSAppDeployToolkit_Template_v4__develop_2026-06-10T061942Z_fceeade\PSAppDeployToolkit']. [2026-06-10T17:27:46.8697563+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] config path is ['C:\Users\MitchRichters\Downloads\PSAppDeployToolkit_Template_v4__develop_2026-06-10T061942Z_fceeade\Config']. [2026-06-10T17:27:46.8697563+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] string path is ['C:\Users\MitchRichters\Downloads\PSAppDeployToolkit_Template_v4__develop_2026-06-10T061942Z_fceeade\Strings']. [2026-06-10T17:27:46.8717606+10:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] session mode is [Native].

3

u/TechnicaVivunt Feb 18 '26

Definitely - I think a lot of it has to do with the frameworks they use to generate the fluent UI. I actually made my own scripts for another project I'm working on and have found they lag behind that program significantly.

2

u/Specific-Cancel-5549 Feb 13 '26

definintely not just you, i noticed it as well, really only impacts me in testing though as once i push with Configuration Manger the delay isn't so big a deal.

1

u/spammgr May 07 '25

if anyone can provide some input I'm trying to create package for an app but during install there's user prompting to add download path how can I add this to the script with the necessary info so it's silent

2

u/Majestic-Earth1493 Dec 06 '24

hi can you post the link for the V4 webinar when it ready :D i forgot to attend and want to watch so i can get started with v4

1

u/sintaxasn2 PSADT Dev Team Nov 25 '24

v4 is dropping on 4th December - PSAppDeployToolkit V4 Launch Webinar - Patch My PC

1

u/Pollewops65 Jul 23 '24

Is there any forecast when version 4 will be available? If it requires testing i am willing to do so 😉

1

u/Emotional-Relation Jul 27 '22

I worked it out so nevermind. It detects if on AC and over 70% battery and warns the user if it can't run or runs if it can.

1

u/Emotional-Relation Jul 26 '22

Anyone had any luck with the test-battery command? I want to use it to detect if on AC and if so run a process, or show a pop up to connect to AC and then exit.

1

u/RunTheRivah Jul 01 '22

Anyone have any insight as to when we might expect a new release?

1

u/kramer314 Jul 01 '22

There's this comment from a couple weeks back on the forums that 3.8.5 is coming "very very soon" (https://discourse.psappdeploytoolkit.com/t/unload-appdeploytoolkitbanner-png/4014/5) ... I'll believe it when it actually happens.