tobias3355

Assoc.xml erstellen

Hallo zusammen,

Ich habe eine Domäne W2019/w11
Alle PCs nutzen das selbe Image. Nun habe ich lokal die gänigen Dateiendungen mit
dem "richtigen" Programm verknüpft. Anschließend habe ich diese Einstellungen in eine
assoc.xml Datei exportiert. Dann habe ich eine GPO erstellt und diese Einstellungen an alle
PCs zu verteilen. Das funktioniert auch alles. Leider fehlen die Verküpfungen, wo Windows das Prg.
nicht kannte und ich den Prg. Pfad angeben musste. z.B. *.xml > notepad++
wie kann ich eine assoc.xml Datei erstellen, in der wirklich alle Verküpfungen gespeichert werden ?

Danke und Grüße
Tobias
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 673286

Url: https://administrator.de/forum/assoc-xml-erstellen-673286.html

Ausgedruckt am: 21.06.2025 um 14:06 Uhr

user217
user217 10.06.2025 um 13:18:26 Uhr
Goto Top
Hallo Tobias,

ich verstehe nicht ganz, alle Verknüpfungen kannst du nicht wollen.
Jeder PC der nicht alle Programme hat wird dir dann fehlerhafte verknüpfungen in weiss anzeigen..
Wenn du das trotzdem willst gibt der KI: "erstelle eine AppAssoc.XML mit allen verknüpfungen"

Gruß
tobias3355
tobias3355 10.06.2025 um 13:26:29 Uhr
Goto Top
Moin, wie bereits erwähnt, nutzen wir an allen PCs das selbe Image. Von daher ist auch jedes Prg. auf jedem PC vorhanden. Es fehlen nur die Zuordnungen, wo mir Windows mir kein Prg. vorschlägt und ich über "weitere Apps..." unter Hilfe des Prg. Pfads das Prg. zuweisen. Ich hoffe das kommt verständlich rüber.

Grüße
user217
user217 10.06.2025 um 13:34:03 Uhr
Goto Top
ah, dann nimm dir einen "blueprint PC" und stell alles so ein wie du willst, musst du so oder so.. dann sollte dism alle non-standard definitionen rausschreiben und du kannst die 1:1 auf dein sysvol legen.

Dism.exe /online /Export-DefaultAppAssociations:C:\PS\DefaultAssoc.xml
tobias3355
tobias3355 10.06.2025 um 13:58:20 Uhr
Goto Top
Ich habe nun einmal von Hand folgende Zeile in meiner assoc.xml Datei eingefügt...

Association Identifier=".xml" ProgId="xmlfile" ApplicationName="Notepad++" />  

Funktioniert trotzdem nicht auf einem anderen PC.
user217
user217 10.06.2025 aktualisiert um 14:05:32 Uhr
Goto Top
so wird das nix, das muss so aussehen: (mit 2 führenden Leerzeichen)
<Association Identifier=".xml" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />

Ein übersicht der möglichen präfixe gibts unter regedit Computer\HKEY_CLASSES_ROOT\.*
tobias3355
tobias3355 10.06.2025 um 15:01:04 Uhr
Goto Top
Werde ich morgen mal testen. Unter Computer\HKEY_CLASSES_ROOT\.xml habe ich geschaut.
Dort steht nur "xmlfile" nix von "Applications\notepad++.exe". Woher bekomme ich die infos ?

Grüße
user217
user217 11.06.2025 um 07:33:54 Uhr
Goto Top
Ich glaube das alles was default ist beim dism export nicht auftaucht was auch besser so sein wird.
Wie gesagt, nimm einen pc als vorlage, exportier das zeug was du brauchst und publish es am sysvol.
tobias3355
tobias3355 11.06.2025 um 09:12:08 Uhr
Goto Top
Ich habe die "xml" zeile in meiner assoc.xml eingefügt. Leider ohne erfolg.
Es wird bei öffnen von xml dateien nach wie vor gefragt, mit welchen Programm sie geöffnet werden soll.
schade...

Hat noch jemand eine Idee ?

Grüße
tobias3355
tobias3355 11.06.2025 um 09:25:07 Uhr
Goto Top
laut chatgpt hat notepad++ keine progid, da es kein com-server ist/enthält.
Kann das sein, dass es deshalb nicht aufgerufen werden kann ?
user217
user217 11.06.2025 um 09:51:02 Uhr
Goto Top
# Beispiel: Alle ProgIDs auflisten
Get-ChildItem -Path "HKCR:\" | Where-Object {  
    (Get-ItemProperty -Path ("HKCR:\" + $_.Name) -ErrorAction SilentlyContinue).CLSID  
} | Select-Object Name
Damit klappts bei mir:
<?xml version="1.0" encoding="UTF-8"?>  
<DefaultAssociations>
  <Association Identifier=".xml" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
  <Association Identifier=".txt" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
  <Association Identifier=".inf" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
  <Association Identifier=".ini" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
  <Association Identifier=".conf" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
  <Association Identifier=".log" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
  <Association Identifier=".pl" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
  <Association Identifier=".text" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
</DefaultAssociations>
tobias3355
tobias3355 11.06.2025 um 12:11:28 Uhr
Goto Top
<?xml version="1.0" encoding="UTF-8"?>  
<DefaultAssociations>
  <Association Identifier=".3g2" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".3gp" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".3gpp" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".aac" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".adt" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".adts" ProgId="VLC.adts" ApplicationName="VLC media player" />  
  <Association Identifier=".amr" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".avi" ProgId="VLC.avi" ApplicationName="VLC media player" />  
  <Association Identifier=".cr3" ProgId="IrfanView.cr3" ApplicationName="IrfanView 64-bit" />  
  <Association Identifier=".docx" ProgId="Word.Document.12" ApplicationName="Word" />  
  <Association Identifier=".flac" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".heic" ProgId="IrfanView.heic" ApplicationName="IrfanView 64-bit" />  
  <Association Identifier=".htm" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" />  
  <Association Identifier=".html" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" />  
  <Association Identifier=".jpeg" ProgId="IrfanView.jpg" ApplicationName="IrfanView 64-bit" />  
  <Association Identifier=".m2t" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".m2ts" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".m3u" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".m4a" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".m4r" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".m4v" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".mkv" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".mod" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".mov" ProgId="VLC.mov" ApplicationName="VLC media player" />  
  <Association Identifier=".mp3" ProgId="VLC.mp3" ApplicationName="VLC media player" />  
  <Association Identifier=".mp4" ProgId="VLC.mp4" ApplicationName="VLC media player" />  
  <Association Identifier=".mp4v" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".mpa" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".MPE" ProgId="VLC.mpe" ApplicationName="VLC media player" />  
  <Association Identifier=".mpeg" ProgId="VLC.mpeg" ApplicationName="VLC media player" />  
  <Association Identifier=".mpv2" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".mts" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".nsd" ProgId="Applications\Structorizer.exe" ApplicationName="Structorizer.exe" />  
  <Association Identifier=".odp" ProgId="LibreOffice.ImpressDocument.1" ApplicationName="LibreOffice" />  
  <Association Identifier=".ods" ProgId="LibreOffice.CalcDocument.1" ApplicationName="LibreOffice" />  
  <Association Identifier=".odt" ProgId="LibreOffice.WriterDocument.1" ApplicationName="LibreOffice" />  
  <Association Identifier=".pdf" ProgId="FoxitReader.Document" ApplicationName="Foxit PDF Reader" />  
  <Association Identifier=".pptx" ProgId="PowerPoint.Show.12" ApplicationName="PowerPoint" />  
  <Association Identifier=".svg" ProgId="MSEdgeHTM" ApplicationName="Microsoft Edge" />  
  <Association Identifier=".TS" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".TTS" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".vsdx" ProgId="Visio.Drawing.15" ApplicationName="Visio" />  
  <Association Identifier=".wav" ProgId="VLC.wav" ApplicationName="VLC media player" />  
  <Association Identifier=".wm" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".wma" ProgId="VLC.wma" ApplicationName="VLC media player" />  
  <Association Identifier=".wmv" ProgId="VLC.wmv" ApplicationName="VLC media player" />  
  <Association Identifier=".WPL" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".xlsx" ProgId="Excel.Sheet.12" ApplicationName="Excel" />  
  <Association Identifier=".xml" ProgId="Applications\notepad++.exe" ApplicationName="Notepad++" />  
  <Association Identifier=".xvid" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier=".zpl" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier="http" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />  
  <Association Identifier="https" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />  
  <Association Identifier="mailto" ProgId="AppXbx2ce4vcxjdhff3d1ms66qqzk12zn827" ApplicationName="Outlook (new)" />  
  <Association Identifier="microsoft-edge" ProgId="MSEdgeHTM" ApplicationName="Microsoft Edge" />  
  <Association Identifier="microsoft-edge-holographic" ProgId="MSEdgeHTM" ApplicationName="Microsoft Edge" />  
  <Association Identifier="ms-xbl-3d8b930f" ProgId="MSEdgeHTM" ApplicationName="Microsoft Edge" />  
  <Association Identifier="mswindowsmusic" ProgId="AppXtggqqtcfspt6ks3fjzyfppwc05yxwtwy" ApplicationName="Medien-wiedergabe" />  
  <Association Identifier="read" ProgId="MSEdgeHTM" ApplicationName="Microsoft Edge" />  
</DefaultAssociations>

Anbei meine xml-Datei. Die Dateizuordnungen funktionieren ausser *.xml und *.nsd
Wo liegt da der fehler ?