Git Product home page Git Product logo

Comments (11)

That-IT-GUY-1805 avatar That-IT-GUY-1805 commented on June 26, 2024

i have made sure i am using the latest 3.10.0 files everything was moved to a new folder once downloaded then deploy.ps1 edited

from psappdeploytoolkit.

rinseaid avatar rinseaid commented on June 26, 2024

Same issue here. Running inside a Hyper-V virtual machine, if that makes any difference. None of the displays involved are high resolution - dual monitors with 1920x1080p resolution.

from psappdeploytoolkit.

DanGough avatar DanGough commented on June 26, 2024

Please could you both confirm if you were using:

  • Old style Powershell console
  • Powershell ISE
  • Windows Terminal
  • VSCode
  • Something else?

Also, does it work via Deploy-Application.exe?

from psappdeploytoolkit.

DanGough avatar DanGough commented on June 26, 2024

Also, if you have the unofficial PSADT PowerShell module installed, can you try uninstalling it in case it’s causing a conflict?

from psappdeploytoolkit.

DanGough avatar DanGough commented on June 26, 2024

I have replicated in testing by doing either of the following:

  • Run PSADST 3.9.3 or earlier, then try to run 3.10.0 in the same PowerShell session

  • Install unofficial PSADT module 3.9.3 or earlier, then run Import-Module PSADT (or trigger import by running one of the PSADT commands) before running 3.10.0

These are not really supported scenarios, so I doubt anything will be implemented to resolve this. The solution is simply to always ensure you are running in a clean Powershell environment; deploying your application via Deploy-Application.exe should accomplish this. I'll close this for now, but it it's affecting actual deployments, please comment with further info and we can re-open and investigate.

One possible solution is to change the namespace whenever we introduce a breaking change or new class in AppDeployToolkitMain.cs, e.g:

namespace PSADT_v3.10.0
[System.Void][PSADT_v3.10.0.UiAutomation]::SetProcessDPIAware()

But that isn't a common convention, involves more maintenance, and looks ugly.

from psappdeploytoolkit.

rinseaid avatar rinseaid commented on June 26, 2024

@DanGough, late in replying, but you're absolutely right - I had an old version of the module installed. Uninstalling it cleared up the issue. Thanks.

from psappdeploytoolkit.

ClientSupportCDB avatar ClientSupportCDB commented on June 26, 2024

Same as Bug #940. Still having the same Problem in v3.10.1. Reproducable Problem and no other solution found than removing the Line "[System.Void][PSADT.UiAutomation]::SetProcessDPIAware()"

Nevers logged on that client before, so no Userprofile existed where somehting might be cached.

Running directly from Powershell included in Windows 10 22H2.

Please reopen the Bug

from psappdeploytoolkit.

DanGough avatar DanGough commented on June 26, 2024

@ClientSupportCDB please can you check if you have the PSADT PowerShell module installed?

from psappdeploytoolkit.

That-IT-GUY-1805 avatar That-IT-GUY-1805 commented on June 26, 2024

these are the only ones i have installed

Get-InstalledModule

Version Name Repository Description


2.19.0 Microsoft.Graph.Authentication PSGallery Microsoft Graph PowerShell Authentication Module.
2.19.0 Microsoft.Graph.Devices.Corporat... PSGallery Microsoft Graph PowerShell Cmdlets
2.7.0 Microsoft.Graph.Groups PSGallery Microsoft Graph PowerShell Cmdlets
6.1907.1.0 Microsoft.Graph.Intune PSGallery PowerShell SDK for Microsoft Intune Graph API
0.9.0.6 PendingReboot PSGallery Module to detect Windows OS pending reboots.
5.6 WindowsAutoPilotIntune PSGallery Sample module to manage AutoPilot devices using ...

is there anything you would like me to try?

from psappdeploytoolkit.

baunai avatar baunai commented on June 26, 2024

I've run into same issue with latest 3.10.1 standalone package on Windows 10 22H2 and no PSADT module installed. I have to comment out this line [System.Void][PSADT.UiAutomation]::SetProcessDPIAware() in AppDeployToolkitMain for it to run.

from psappdeploytoolkit.

DanGough avatar DanGough commented on June 26, 2024

Make sure you've updated all the files in the toolkit folder, particularly the .cs file in addition to Main. Also, if you execute a 3.9 or older deployment script then try to run a 3.10.1 one from the same Powershell session, I would expect this error.

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.