Comments (6)
I fixed this issue in the latest 3.6.3 beta found here:
https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/tree/master/Toolkit/AppDeployToolkit
Please test and let me know if it's working as expected now.
from psappdeploytoolkit.
works correctly now. However, it is now not detecting or showing logged in user information when run as SYSTEM or as User. When run as SYSTEM with a logged in user, it runs the script in non interactive mode so it automicatically closes the running processes and continues with the installation.
{
[04-23-2015 14:14:37.133] [Initialization] [PSAppDeployToolkit] [Info] :: [Microsoft_Lync_2013SP1_x86_EN_01] setup started.
[04-23-2015 14:14:37.227] [Initialization] [PSAppDeployToolkit] [Info] :: Script [C:\Microsoft_Lync_2013_SP1_ADT\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Microsoft_Lync_2013_SP1_ADT\Deploy-Application.ps1]
[04-23-2015 14:14:37.305] [Initialization] [PSAppDeployToolkitExt] [Info] :: Script [C:\Microsoft_Lync_2013_SP1_ADT\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Microsoft_Lync_2013_SP1_ADT\AppDeployToolkit\AppDeployToolkitMain.ps1]
[04-23-2015 14:14:37.305] [Initialization] [PSAppDeployToolkit] [Info] :: [Microsoft_Lync_2013SP1_x86_EN_01] script version is [1.0.0]
[04-23-2015 14:14:37.320] [Initialization] [PSAppDeployToolkit] [Info] :: [Deploy Application] script version is [3.6.1]
[04-23-2015 14:14:37.336] [Initialization] [PSAppDeployToolkit] [Info] :: [App Deploy Toolkit Main] script version is [3.6.3]
[04-23-2015 14:14:37.336] [Initialization] [PSAppDeployToolkit] [Info] :: [App Deploy Toolkit Extensions] version is [1.5.0]
[04-23-2015 14:14:37.352] [Initialization] [PSAppDeployToolkit] [Info] :: Computer Name is [891FGQ1.txaus.ds.sjhs.com]
[04-23-2015 14:14:37.352] [Initialization] [PSAppDeployToolkit] [Info] :: Current User is [NT AUTHORITY\SYSTEM]
[04-23-2015 14:14:37.367] [Initialization] [PSAppDeployToolkit] [Info] :: OS Version is [Microsoft Windows 7 Professional Service Pack 1 64-bit 6.1.7601.65536]
[04-23-2015 14:14:37.367] [Initialization] [PSAppDeployToolkit] [Info] :: OS Type is [Workstation]
[04-23-2015 14:14:37.383] [Initialization] [PSAppDeployToolkit] [Info] :: Current Culture is [en-US] and UI language is [EN]
[04-23-2015 14:14:37.570] [Initialization] [PSAppDeployToolkit] [Info] :: Hardware Platform is [Physical]
[04-23-2015 14:14:37.586] [Initialization] [PSAppDeployToolkit] [Info] :: PowerShell Host is [ConsoleHost] with version [2.0]
[04-23-2015 14:14:37.648] [Initialization] [PSAppDeployToolkit] [Info] :: PowerShell Version is [2.0 x64]
[04-23-2015 14:14:37.664] [Initialization] [PSAppDeployToolkit] [Info] :: PowerShell CLR (.NET) version is [2.0.50727.5485]
[04-23-2015 14:14:37.664] [Initialization] [PSAppDeployToolkit] [Info] :: *******************************************************************************
[04-23-2015 14:14:38.038] [Initialization] [PSAppDeployToolkit] [Info] :: Display session information for all logged on users:
[04-23-2015 14:14:38.038] [Initialization] [PSAppDeployToolkit] [Info] :: No users are logged on to the system.
}
from psappdeploytoolkit.
Were you logged in locally on the machine or were you connected to a remote computer via RDP?
from psappdeploytoolkit.
logged in locally.
from psappdeploytoolkit.
I have now tested the latest beta on Win XP, Win 7 x86, Win 7x64, Win 8 x64 and have not been able to encounter any scenario where Get-LoggedOnUser was not able to detect logged in users. I have run the toolkit as a user, an admin, as SYSTEM using psexec, and also with psexec and serviceui.exe combined.
The one thing that comes to mind is what files did you upgrade when you upgraded your version of the toolkit to the 3.6.3 beta? Did you only update AppDeployToolkitMain.ps1, or did you also update AppDeployToolkitMain.cs? The 3.6.3 beta relies on some important updates that took place in AppDeployToolkitMain.cs...which you can find here: https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/blob/master/Toolkit/AppDeployToolkit/AppDeployToolkitMain.cs
Please confirm that you have updated AppDeployToolkitMain.cs. Otherwise, any troubleshooting you can do on your end to help identify the conditions under which the failure to detect logged in users takes place so that I can replicate the issue.
from psappdeploytoolkit.
Replacing AppDeployTookitMain.cs fixed the issue. Log now shows session information for logged in users when running as system, and properly runs in Interactive Mode.
Thing is, when you provide a link for an updated file, I generally go up a level to check modification dates on the other files. I will try to replace them all going forward.
from psappdeploytoolkit.
Related Issues (20)
- Is the goal of this if statement in Write-Log to allow for the creation of blank log lines? HOT 4
- Show-InstallationPrompt: Add ability to prompt for free text value HOT 1
- Remove-Folder HOT 3
- Configure-EdgeExtension error after ExtensionSettings created with empty string value HOT 1
- BREAK : Interactive & Allow users to interact with this program HOT 9
- [PSADT.UiAutomation] does not contain a method named 'SetProcessDPIAware' HOT 12
- The custom welcome message in the XML file HOT 1
- Zip Structure folder changed after v3.9.2 HOT 1
- How to use the AppDeployToolkit with Ivanti EndPoint Manager ? HOT 2
- PSAppDeployToolkit version 3.10.0 Deploy-Application.exe doesn't start when display language is set to Finnish HOT 1
- Show-InstallationWelcome not prompting to close software when pushed as a system account HOT 11
- Update Function Show-InstallationWelcome HOT 4
- "QuietUninstallString" and "WindowsInstaller" in Get-InstalledApplication (Follow-up of: https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/issues/652) HOT 2
- ClosePrompt_ButtonClose to small with german text HOT 5
- Is this a dead variable? HOT 3
- [Bug] Configure-EdgeExtension errors on line 16517 char:40 - Add-Member : Cannot bind argument to parameter 'InputObject' because it is null. HOT 1
- [tanslation] <BalloonText_FastRetry> German Translastion
- [Bug] HOT 1
- Incorrect information with 'Set-ItemPermission' reference in docs - 'https://psappdeploytoolkit.com/docs/reference/functions/Set-ItemPermission/' HOT 1
- [Documentation] Copy-File documentation needs more info HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psappdeploytoolkit.