Is it possible to create/delete windows user account and set its privileges to make it admin account , simple user account or guest account using java code ?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
It's been already 1 year when i asked this question and i forgot to post the answer. I'm sorry :)
to create a user account we need administrative privileges by wrapping a manifest file with our program. the manifest file must have the same name as the program. this how this file should look like:
then we create our userAccount program :
in my case i used the launch4j tool to wrap the manifest with the .jar file and get the program working :)