networkobjects clear and import: access denied
-
I,
I scripted the automated installation of VEYON (version veyon-4.8.2.0-win64) on Windows 10 64-bit stations with an active directory.
UAC is activated on the stations (default value) as well as the firewall.
The script is launched "as administrator" on the station from a domain administrator account (not the administrator account, so the access token is not full).
The first phase goes well until I want to import a list of stations.
I have access denied in write mode.
The command line is:
"c:\Program Files\Veyon\veyon-cli.exe" networkobjects clear
"c:\Program Files\Veyon\veyon-cli.exe" networkobjects import I:\DAIP56\VEYON\salle.csv format "%%name%%,%%host%%,%%mac%%,%%location%%"What folder should be writable ?
Thank's for the answer -
To complete my tests.
The script is launched from a network drive (I:)
The script works correctly except for part "veyon-cli.exe networkobjects".
This line works:
"c:\Program Files\Veyon\veyon-cli.exe" config export "I:\USERS-APPLIS\VEYON%SP%\configuration\master\Veyonconf.json"
But with those lines I have "the configuration is not accessible for writing":
"c:\Program Files\Veyon\veyon-cli.exe" networkobjects clear
"c:\Program Files\Veyon\veyon-cli.exe" networkobjects import I:\DAIP56\VEYON\salle.csv format "%%name%%,%%host%%,%%mac%%,%%location%%" -
As best practice - I would modify the remote path from I:\ to the actual unc remote location (\server\share) which will always be available - you could experience a problem where the profile of the administrator account used may not be fully loaded and therefore mapped drives may not be available.
Back to the problem in hand, it may be that the domain administrator account used is not a member of the local administrators group on the machine - which would prevent some actions being taken with the cli against the service and file system (as the account would not have permissions to interact with it, unless specifically added).