Coder Social home page Coder Social logo

Comments (6)

mmashwani avatar mmashwani commented on July 29, 2024

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.

CosmicSingularity avatar CosmicSingularity commented on July 29, 2024

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.

mmashwani avatar mmashwani commented on July 29, 2024

Were you logged in locally on the machine or were you connected to a remote computer via RDP?

from psappdeploytoolkit.

CosmicSingularity avatar CosmicSingularity commented on July 29, 2024

logged in locally.

from psappdeploytoolkit.

mmashwani avatar mmashwani commented on July 29, 2024

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.

CosmicSingularity avatar CosmicSingularity commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.