mkht / dscr_appxpackage Goto Github PK
View Code? Open in Web Editor NEWPowerShell DSC Resource to manage UWP App Packages
License: MIT License
PowerShell DSC Resource to manage UWP App Packages
License: MIT License
cAppxPackage
を使ってUWPアプリの削除を行うと、削除自体は成功するが、スタートメニューのショートカットとピン留めタイルが残ってしまう。
ショートカットをクリックするとアプリが再インストールされて起動する。
ショートカットを右クリック→アンインストールを押しても反応がない
PCの再起動をしても消えない
スタートメニューのタイルデータベースリセット(tdlrecover.exe -reregister -resetlayout -resetcache
)も効果なし
cAppxPackage
におけるパッケージの検索にはName
属性を使用しているが、
PackageFullName
属性を使って検索するほうが良いのではないか。
バージョンを厳密に指定する場合など。
まちがい
Write-Error ('PackagePath:"{0}" not found.')
せいかい
Write-Error ('PackagePath:"{0}" not found.' -f $PackagePath)
Hello mkht,
We are trying to implement DSC using DSCR_AppxPackage module to remove below Appx-ProvisionedPackage
---------------------------------- Error ---------------------------
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsof
t/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer MACHINE21202 with user sid S-1-5-21-2251637962-1192731002-1224426282-11623.
VERBOSE: [LONWV220100]: LCM: [ Start Set ]
VERBOSE: [LONWV220100]: LCM: [ Start Resource ] [[cAppxProvisionedPackage]UnInstall_Cortana]
VERBOSE: [LONWV220100]: LCM: [ Start Test ] [[cAppxProvisionedPackage]UnInstall_Cortana]
VERBOSE: [LONWV220100]: [[cAppxProvisionedPackage]UnInstall_Cortana] Testing existence of App
The request is not supported.
+ CategoryInfo : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackageCommand
+ PSComputerName : localhost
VERBOSE: [LONWV220100]: LCM: [ End Test ] [[cAppxProvisionedPackage]UnInstall_Cortana] in 1.0550 seconds.
The PowerShell DSC resource '[cAppxProvisionedPackage]UnInstall_Cortana' with SourceInfo
'C:\Temp\dsc-win11\src\Scripts\AppXPackage\AppXPackage.ps1::19::9::cAppxProvisionedPackage' threw one or more non-terminating errors while running the Test-TargetResource
functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: [LONWV220100]: LCM: [ End Set ]
The SendConfigurationApply function did not succeed.
+ CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 1
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 2.516 seconds
------------------------------ End of Error -------------------------
We have verified DISM log but not able to find details of error.
Same DSC Script work on Windows 11 Home Edition. Also other DSC scripts work on Windows 11 Enterprise except related to AppX provisional package removal.
Your inputs are appreciated for troubleshooting. Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.