zipo
Goto Top

Userprofile und Desktopbild wandert nicht mit

Hallo,

beziehe mich hier auf den Beitrag:


Arbeite unter Windows 2003 Server und einer Dömane. Die Userprofile funktionieren 1A. Nur das Script aus dem Beitrag nicht.

Bekomme immer ein:

Zeile: 25
Zeichen: 2
Fehler: Nicht Abgeschlossener Entitätsverweis - entsprechendes ';' nicht gefunden

Hier meine Datei (wallpaper.wsf):

[job]
[script language="VBScript"]

Dim wshShell, sAppData, sWallpaper, fso
Set wshShell = WScript.CreateObject( "WScript.Shell" )
sAppData = wshShell.ExpandEnvironmentStrings( "%APPDATA%" )

If IsNull( sAppData ) Or Len( sAppData ) = 0 Then
WScript.Quit
End If

sAppData = sAppData & "\Microsoft\Wallpaper1.bmp"
sWallpaper = wshShell.RegRead( "HKCU\Control Panel\Desktop\Wallpaper" )

If IsNull( sWallpaper ) Or Len( sWallpaper ) = 0 Or sWallpaper = "(Kein)" Or sWallpaper = sAppData Then
WScript.Quit
End If

Set fso = WScript.CreateObject( "Scripting.FileSystemObject" )
fso.CopyFile sWallpaper, sAppData
wshShell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", sAppData

[/script]
[/job]

Content-Key: 26392

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

Printed on: April 24, 2024 at 23:04 o'clock

Member: zipo
zipo Feb 20, 2006 at 18:16:34 (UTC)
Goto Top
Hat keiner eine Lösung ???
Member: zipo
zipo Feb 21, 2006 at 17:04:14 (UTC)
Goto Top
Hat sich erledigt, schon selbst gelöst !!!
Member: Bayano
Bayano Nov 21, 2007 at 14:56:38 (UTC)
Goto Top
Hi, ich bekomme die gleiche Fehlermeldung bei einem meiner Scripte und finde den Ursprung einfach nicht -.-

Es gibt auch nur zwei google Einträge die in die Richtung gehen Oo

Kannst du deinen Lösungsweg bitte einmal offenlegen?

Danke im Voraus