Comments (2)
I agree that it would be nice for the script to somehow automatically find programs that are not in the registry location being searched. If they can't be automatically found, it would be nice to have a way to edit the program list with the path name so that can be searched if the program is not found in the registry location.
For example, the AppV Client application C:\Program Files (x86)\Microsoft Application Virtualization\Client UI\AppVClientUX.exe does not seem to have a reference in the registry location being searched.
For now, I'm customizing the MS script with an extra programs list and supporting function based on HarmVeenstra's solution to the ( https://github.com/HarmVeenstra/Powershellisfun/blob/main/ASRmageddon%20Create%20Common%20Shortcuts%20Start%20Menu/Create_Common_Shortcuts.ps1). It would be nice if the general support was directly in the MS Script (even we have to manually add to the programs list in script) so everyone has this support (and it has MS code/testing and avoid any mistakes I might make when trying to integrate).
from mde-powerbi-templates.
One other approach - could use the application compatibility telemetry under "HK_User:[userGuid]\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store"
Add a function:
function GetApplicationCompatibilityPaths {
#Get application Compatibility Info per user
New-PSDrive HKU Registry HKEY_USERS|out-null
$applicationPaths=@{}
$userKeys=Get-ChildItem -Path "HKU:"
$userKeys|foreach {
try {
$appCompat=Get-Item -Path "HKU:\$($_.pschildname)\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store" -ErrorAction SilentlyContinue
if ($appCompat) {
foreach($appPath in $appCompat.property) {
$AppExe=split-path $apppath -leaf
if ($appexe) {
$applicationpaths[$appexe]=$apppath
}
}
}
} catch {
}
}
remove-psdrive hku
return $applicationPaths
}
Add a call to the function under line 93 ("LogAndConsole "Starting LNK rescue""):
$applicationPaths=GetApplicationCompatibilityPaths
Then, under line 119 (just before "if ($target -ne $null) {" ), add:
if (-not $target) {
$target=$applicationPaths[$_.value]
}
from mde-powerbi-templates.
Related Issues (19)
- test
- Duplicate Microsoft MDE PowerBI Templates? HOT 2
- Add Applications like Acrobat Reader, KeePass 2, .. to AddShortcutsV1 HOT 2
- Add additional Apps HOT 3
- Remote Desktop App not showing after running script HOT 2
- Excel, Outlook, Word, Power Point does not work HOT 1
- Add Azure Data Studio and Azure IoT Explorer HOT 1
- Script only runs on en-US due to localization of group names - use SID well-known instead
- Typo in "About"
- Multilungual support for known folders HOT 1
- User pinned shortcuts in the Taskbar aren't resolved HOT 3
- PowerShell task does not run on assigned user or devices HOT 5
- AddShortcuts.ps1 script does not recreate start menu items in submenus HOT 1
- Recreating public desktop icons HOT 3
- Typo in var name passed to SaveResult
- Script error: Cannot bind argument to parameter 'Path' because it is null HOT 3
- V3 Line 604 - Calling wrong function for lnk files? HOT 2
- This repo is missing important files
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 mde-powerbi-templates.