Code: Alles auswählen
DefVar $Administrator_SID$
DefVar $escUserProfile$
Set $Administrator_SID$ = GetUserSID("Administrator")
Set $escUserProfile$ = "%" + "USERPROFILE" + "%"
Registry_local_admin_folders /SysNative
[Registry_local_admin_folders]
openkey [HKEY_USERS\$Administrator_SID$\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
set "Desktop" = REG_EXPAND_SZ:"$escUserProfile$\Desktop"
set "Personal" = REG_EXPAND_SZ:"$escUserProfile$\My Documents"
Code: Alles auswählen
[5] [Jun 10 00:13:10:516] [gce-settings] Execution of Registry_local_admin_folders
[5] [Jun 10 00:13:10:516] [gce-settings] Error: Registry key [HKEY_USERS\S-1-5-21-538005352-711716544-1927554804-500\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] could not be opened by RegCreateKeyEx, Errorno: 87 "The parameter is incorrect.<"
[5] [Jun 10 00:13:10:516] [gce-settings] Error: Variable "Desktop" could not be set
[5] [Jun 10 00:13:10:516] [gce-settings] Error: Variable "Personal" could not be set