Comments (11)
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.
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.
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.
Also, if you have the unofficial PSADT PowerShell module installed, can you try uninstalling it in case itβs causing a conflict?
from psappdeploytoolkit.
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.
@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.
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.
@ClientSupportCDB please can you check if you have the PSADT PowerShell module installed?
from psappdeploytoolkit.
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.
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.
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)
- [Bug] Remove-File doesn't like single quotes. HOT 4
- Show-InstallationWelcome[Feature] HOT 1
- [Feature] Remove-EXEApplications HOT 1
- [Feature] Allow Get-InstalledApplication to also retrieve user context applications HOT 5
- [Bug] Show-InstallationPrompt via MCM/SCCM is not displayed for interactive installations HOT 41
- [Bug] Get-FileVersion -ProductVersion sometimes has trailing whitespace
- [Bug] RoboCopy Error 16 in CopyFile when started from UNC Path HOT 2
- Reference/documentation as pdf
- 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
- [Feature] Pauze after deffer period HOT 2
- [Bug] Activesetup not applying for current logged on user HOT 4
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.