katalina
Goto Top

Angepasstes Startmenü für OU - beim import wird LayoutModification.xml nicht gefunden, da nicht vorhanden

Hallo,
ich habe eine Frage und hoffe das hier jemand nettes ist der mir die Frage vielleicht beantworten kann.
Ich bin derzeit in der Fernschule zur Fachinformatikerin Systemintegration und sitze vor einer Aufgabe in der ich für eine OU in einer Domäne ( Hamburg/Buchhaltung/Lohn) ein angepasstes Startmenü herstellen soll, welches von den Benutzern anpassbar sein soll.

Dafür habe ich auf dem Clienten (Windows 10 Enterprise) unter dem Administratorkonto das Startmenü hergestellt und das dann mit dem Befehl
export-startlayout -path 'C:\Startlayouts\StartlayoutHBL.xml'
erfolgreich exportiert. Die Datei StartlayoutHBL.xml ist nun unter C:\Startlayouts vorhanden.

Nun möchte ich die Datei importieren und verwende den Befehl
import-StartLayout -LayoutPath C:\Startlayouts\Startlayout_H_B_L.xml -MountPath %systemdrive%

jedoch kommt immer wieder folgende Meldung:
import-StartLayout : Der Pfad "C:\Users\Administrator\%systemdrive%" kann nicht gefunden werden, da er nicht vorhanden
ist.
In Zeile:1 Zeichen:1

back-to-topimport-StartLayout -LayoutPath C:\Startlayouts\Startlayout_H_B_L.xml ...

back-to-top~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : ObjectNotFound: (C:\Users\Administrator\%systemdrive%:String) [Import-StartLayout], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.StartLayout.Commands.ImportStartLayoutCommand

wenn ich nur import-StartLayout -LayoutPath C:\Startlayouts\Startlayout_H_B_L.xml -MountPath C:
eingebe dann kommt folgende Fehlermeldung:
import-StartLayout : Ein Teil des Pfades
"C:\Users\AdministratorUsers\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml" konnte nicht
gefunden werden.
In Zeile:1 Zeichen:1

back-to-topimport-StartLayout -LayoutPath C:\Startlayouts\StartlayoutHBL.xml

back-to-top~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (face-smile [Import-StartLayout], DirectoryNotFoundException
+ FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.Windows.StartLayout.Commands.ImportStartL
ayoutCommand

So nun zu den Fragen:
1. Warum finde ich nirgendwo die Datei LayoutModification.xml? Habe auch probiert die Windows Taste+R zu drücken und dann nach der Datei gesucht, doch auch so wird sie nicht gefunden.
2. Welche Fehlerquelle könnte es noch geben? Wie könnte ich das Problem beheben? Gibt es Ideen?

Ich freue mich sehr über schnelle Antworten, und bedanke mich dafür schonmal im Vorraus face-wink

Viele Grüße,
Katalina

Also das habe ich jetzt aufgrund der netten Hilfe gelöst jedoch gibt sich jetzt bei mir ein weiteres Problem,
ich möchte das Startlayout ja für eine Gruppe anpassen, deshalb habe ich den Ordner für die Gruppe frei gegeben und die NTFS-Berechtigung Ändern gegeben, dann habe ich auf einem Server in der Gruppenrichtlinienverwaltung der Gruppe der Domäne Gruppenrichtlinien erstellen gewählt und bin dort über Benutzerkonfiguration/Richtlinien/Administrative Vorgaben gegangen und habe Startlayout ausgewählt und dort den Pfad zur Layoutdatei StartlayoutHBL.xml eingegeben.
Wenn ich mich nun aber mit einem Benutzer aus der Gruppen auf dem Client anmelde, erhält der leider nicht das angepasste Startlayout.
Was mache ich falsch?

Danke nochmal im Vorraus!! ;)
Benutzerkonfiguration/

Content-Key: 363744

Url: https://administrator.de/contentid/363744

Printed on: April 26, 2024 at 17:04 o'clock

Mitglied: 135333
Solution 135333 Feb 06, 2018 updated at 10:37:17 (UTC)
Goto Top
%systemdrive% gibt es in der Powershell nicht!
Dort spricht man Umgebungsvariablen so an $env:SYSTEMDRIVE in dem Befehl zusätzlich mit Backslash am Ende

Gruß Snap
Member: Katalina
Katalina Feb 06, 2018 at 10:35:31 (UTC)
Goto Top
ok das probiere ich schonmal, danke für die Antwort...kenn mich mit powershell noch nicht so aus
Mitglied: 135333
Solution 135333 Feb 06, 2018 at 10:36:57 (UTC)
Goto Top
Member: Katalina
Katalina Feb 06, 2018 at 10:37:07 (UTC)
Goto Top
PS C:\Users\Administrator> import-StartLayout -LayoutPath C:\Startlayouts\Startlayout_H_B_L.xml -MountPath $env:SYSTEMDRIVE
import-StartLayout : Ein Teil des Pfades
"C:\Users\AdministratorUsers\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml" konnte nicht
gefunden werden.
In Zeile:1 Zeichen:1

back-to-topimport-StartLayout -LayoutPath C:\Startlayouts\Startlayout_H_B_L.xml ...

back-to-top~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (face-smile [Import-StartLayout], DirectoryNotFoundException
+ FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.Windows.StartLayout.Commands.ImportStartL
ayoutCommand
Mitglied: 135333
Solution 135333 Feb 06, 2018 updated at 10:39:03 (UTC)
Goto Top
Och mönsch ... lese meinen Post doch mal ... mit Backslash am Ende!

-MountPath C:\
oder
-MountPath $enc:SystemDrive\
Member: Katalina
Katalina Feb 06, 2018 at 10:44:09 (UTC)
Goto Top
Danke, jetzt hat es schonmal soweit geklappt, perfekt wie schnell die Antwort kam, werde mich hier nochmal ans Forum wenden wenn eine Frage aufkommt, manchmal sind es die kleinen Dinge ;)
Mitglied: 135333
Solution 135333 Feb 08, 2018 updated at 08:37:09 (UTC)
Goto Top
Dann den Thread bitte noch zu machen.