Unterschiedliches Verhalten von %CurrentProfileDir% und %UserProfileDir%
Verfasst: 07 Aug 2019, 12:07
Hi, mir ist folgendes aufgefallen:
Was ist passiert?
Der Code ...
...führt zu folgendem Log
Was sollte passieren?
Mit der Variable "%UserProfileDir%" funktioniert alles wie gewünscht.
Mit welchen Schritten kann das Problem nachgestellt werden?
tauschen der Variable %CurrentProfileDir% mit %UserProfileDir%
%CurrentProfileDir% -> funktioniert nicht
%UserProfileDir% -> funktioniert
Bei welche Versionen der beteiligten Komponenten tritt das Problem auf?
Es handelt sich nicht um ein userlogin Skript.
Viele Grüße
Was ist passiert?
Der Code ...
Code: Alles auswählen
Files_uninstall_user /AllNtUserProfiles
[Files_uninstall_user]
del -f "%CurrentProfileDir%\AppData\Roaming\Microsoft\Word\STARTUP\bgv.dotm"
Code: Alles auswählen
Make it for user directory: C:\Users\admin\
Notice: File or Directory C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Word\STARTUP\bgv.dotm does not exist, nothing deleted
Mit der Variable "%UserProfileDir%" funktioniert alles wie gewünscht.
Code: Alles auswählen
Make it for user directory: C:\Users\admin\
Search "C:\Users\admin\AppData\Roaming\Microsoft\Word\STARTUP\"
Search "C:\Users\admin\AppData\Roaming\Microsoft\Word\STARTUP\bgv.dotm"
File "C:\Users\admin\AppData\Roaming\Microsoft\Word\STARTUP\bgv.dotm"
The file has been deleted
tauschen der Variable %CurrentProfileDir% mit %UserProfileDir%
%CurrentProfileDir% -> funktioniert nicht
%UserProfileDir% -> funktioniert
Bei welche Versionen der beteiligten Komponenten tritt das Problem auf?
Code: Alles auswählen
opsi@opsi01:/var/lib/opsi/workbench$ dpkg -l | grep opsi-
ii opsi-configed 4.0.7.6.34-2 all OPSI config editor
ii opsi-linux-bootimage 20181213-1 all opsi bootimage for netboot tasks.
ii opsi-server 4.1.1.7-1 all opsi server configuration package
ii opsi-tftpd-hpa 5.2.8-49 amd64 HPA's tftp server
ii opsi-utils 4.1.1.27-1 all utilites for working with opsi.
ii opsi-windows-support 4.1.1-8 all Install utilities useful for deploying Windows with opsi.
Code: Alles auswählen
opsi-winst 4.12.1.2-1
opsi-client-agent 4.1.0.0-29
Viele Grüße