While trying to start various applications on Windows 7 using a local account, I kept getting:
"Could not create directory" ...
In the case below, I tried to start jvisualvm as a user called tomcat, whom I created as a local user with admin rights; however, instead of using tomcat's own home directory, the application kept trying to use the one from the Administrator user.
The application was being started with runas:
>runas /user:tomcat /profile jvisualvm
Fixing this required opening a cmd window as tomcat
>runas /user:tomcat cmd
Geben Sie das Kennwort für "tomcat" ein:
Es wird versucht, cmd als Benutzer "GFT6841\tomcat" zu starten...
then starting regedit and changing all references to "Administrator" to appropriate user, in my case tomcat, in the the following keys:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\
Desktop
LocalAppData
AppData
There might be more but changing the above was sufficient for my purposes.
No comments:
Post a Comment