MiTo
July 18, 2024, 7:02am
1
Hey,
the function [Execute-ProcessAsUser] fails, if not user is logged in. In PSADT 3.9.3 the function works well when no user ist logged in…
I’ll have to test to see if there’s any different behaviour here - but it looks like you could just add -ContinueOnError $true as a workaround?
1 Like
MiTo
July 19, 2024, 6:13am
3
Hey,
no, the default value is true. I wrapped around Get-LoggedOnUser …
MiTo
August 6, 2024, 6:05am
5
Hey, is there a new “Deploy-Application.ps1” file somewhere?
AppDeployToolkitMain.ps1 would be the file you are looking for, you can try the version in the dev branch if you’re looking to test before it gets properly released:
<#
.SYNOPSIS
PSAppDeployToolkit - This script contains the PSADT core runtime and functions using by a Deploy-Application.ps1 script.
.DESCRIPTION
The script can be called directly to dot-source the toolkit functions for testing, but it is usually called by the Deploy-Application.ps1 script.
The script can usually be updated to the latest version without impacting your per-application Deploy-Application scripts. Please check release notes before upgrading.
PSAppDeployToolkit is licensed under the GNU LGPLv3 License - (C) 2024 PSAppDeployToolkit Team (Sean Lillis, Dan Cunningham and Muhammad Mashwani).
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
.PARAMETER CleanupBlockedApps
This file has been truncated. show original
1 Like