Discussion:
[wpkg-users] WPKP User Management
Nils Thiele
2015-10-06 08:36:48 UTC
Permalink
Hey,
i was searching for a program to easily manage remote local user
accounts (Win7, Win8) for system that are not connected to a domain or
something similar.
I found nothing i could combine with wpkg so i came up with my own solution.

The program is written in python, a compiled version (exe) is quite big
(8MB) but i didnt notice any problems running this on my system at boot
and you could always install it on local hdd first before executing it.

The program reads a supplied xml file and compares the users in the xml
to the local users on the system. it will delete accounts that are not
in the server list and create accounts that are in the list but not on
the system. (The forcefull removement of accounts is not activated by
default)

On first run or if the supplied xml path isnt valid it will create the
xml itself and add all local accounts to the list.

You can also deactivate or activate users, set expire dates, change
passwords or force the user to change it iself on first logon and log
logon dates for the users if you wish to do so.

Managing local groups for accounts and resetting (deleting profile
folder only) should be implemented over the week.

Even tho the program is quite big in compiled form its very fast (well
it only parses a xml and executes cmd command and capture their
output). I noticed no problem excuting this on every boot (using
wpkg-gp and execute=Always) even starting it directly from the wpkg share.

Now i was wondering if anyone else is intrested in a tool like this.
I wrote and tested this on german win7/8.1 systems and the software
relies on the cmd output of the "net" command. On a german system this
output is german so it wont work without modifications on a system that
outputs in a different language.
But if there is demand i will atleast add support for english output and
maybe implement support for language files.

Greetings,
Nils
--
IT-Support - Fachbereich 09 Kulturgeschichte und Kulturkunde
Universität Hamburg
Flügelbau West, R. 204
Edmund-Siemers-Allee 1
D-20146 Hamburg
Tel.: +49-40-42838-3024
Email: ***@uni-hamburg.de

-------------------------------------------------------------------------
SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
http://www.sslrack.com/
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Marco
2015-10-06 08:51:10 UTC
Permalink
Hello,

my "WPKG-Way" to do this would be to make one package per user.
Then you make one profile per host.

Now you can put the user-packages in the profile of the individual hosts.

Everything else can be done inside the package, usually with the "net"
command. I am sure you could do this with the powershell, too.

There is no sophisticated "check" needed, just execute it "always".

Greetings ...
Marco
Post by Nils Thiele
Hey,
i was searching for a program to easily manage remote local user
accounts (Win7, Win8) for system that are not connected to a domain or
something similar.
I found nothing i could combine with wpkg so i came up with my own solution.
The program is written in python, a compiled version (exe) is quite big
(8MB) but i didnt notice any problems running this on my system at boot
and you could always install it on local hdd first before executing it.
The program reads a supplied xml file and compares the users in the xml
to the local users on the system. it will delete accounts that are not
in the server list and create accounts that are in the list but not on
the system. (The forcefull removement of accounts is not activated by
default)
On first run or if the supplied xml path isnt valid it will create the
xml itself and add all local accounts to the list.
You can also deactivate or activate users, set expire dates, change
passwords or force the user to change it iself on first logon and log
logon dates for the users if you wish to do so.
Managing local groups for accounts and resetting (deleting profile
folder only) should be implemented over the week.
Even tho the program is quite big in compiled form its very fast (well
it only parses a xml and executes cmd command and capture their
output). I noticed no problem excuting this on every boot (using
wpkg-gp and execute=Always) even starting it directly from the wpkg share.
Now i was wondering if anyone else is intrested in a tool like this.
I wrote and tested this on german win7/8.1 systems and the software
relies on the cmd output of the "net" command. On a german system this
output is german so it wont work without modifications on a system that
outputs in a different language.
But if there is demand i will atleast add support for english output and
maybe implement support for language files.
Greetings,
Nils
--
UZH/ETH Zurich, Marco Schmidt, Functional Genomics Center Zurich
Y32 H06, Winterthurerstr. 190, 8057 Zurich
Tel +41 44 635 39 02, Fax +41 44 635 39 22, http://www.fgcz.ch/
- System and Database Administrator -
-------------------------------------------------------------------------
SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
http://www.sslrack.com/
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Falko Trojahn
2015-10-06 09:23:55 UTC
Permalink
Hello Nils,
Post by Nils Thiele
On first run or if the supplied xml path isnt valid it will create the
xml itself and add all local accounts to the list.
You can also deactivate or activate users, set expire dates, change
passwords or force the user to change it iself on first logon and log
logon dates for the users if you wish to do so.
Managing local groups for accounts and resetting (deleting profile
folder only) should be implemented over the week.
Even tho the program is quite big in compiled form its very fast (well
it only parses a xml and executes cmd command and capture their
output). I noticed no problem excuting this on every boot (using
wpkg-gp and execute=Always) even starting it directly from the wpkg share.
Now i was wondering if anyone else is intrested in a tool like this.
yes, sounds interesting. Any beta version available, yet, to do some tests?

Regarding the passwords: how do you store it in the xml, somehow
crypted? Or could the authentication be against e.g. ldap server
like using pGina?

thanx
Falko
-------------------------------------------------------------------------
SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
http://www.sslrack.com/
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Nils Thiele
2015-10-13 13:50:17 UTC
Permalink
Hey there....
it took a bit longer than planned but i finally have a working version
for everyone to test.
I have been able to add support for english cmd output.
It now works with german system (Win7/8.1) and should also work with
everything else that outputs in english.

I havent tried any other foreign languages or special symbols. Please
report back if you have any problems.
This should also work on windows 10, but i havnt tried it yet.

You can find a compiled version including source and readme here:
https://www.dropbox.com/s/tcbffihmy3axyr2/wpkg_users_0.8.zip?dl=0

For profile folder deletion the tool relies on DelProf2:
https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/
(The delprof2.exe needs to be place next to wpkgs_users tool)

Please be careful and read the help file carefully before trying
anything on a real system.
I advise to use this in a virtual machine or test system first!

Im looking forward to any feedback, bug reports and suggestions!

Best Regards,
Nils T.
Post by Nils Thiele
Hey,
i was searching for a program to easily manage remote local user
accounts (Win7, Win8) for system that are not connected to a domain or
something similar.
I found nothing i could combine with wpkg so i came up with my own solution.
The program is written in python, a compiled version (exe) is quite
big (8MB) but i didnt notice any problems running this on my system at
boot and you could always install it on local hdd first before
executing it.
The program reads a supplied xml file and compares the users in the
xml to the local users on the system. it will delete accounts that are
not in the server list and create accounts that are in the list but
not on the system. (The forcefull removement of accounts is not
activated by default)
On first run or if the supplied xml path isnt valid it will create the
xml itself and add all local accounts to the list.
You can also deactivate or activate users, set expire dates, change
passwords or force the user to change it iself on first logon and log
logon dates for the users if you wish to do so.
Managing local groups for accounts and resetting (deleting profile
folder only) should be implemented over the week.
Even tho the program is quite big in compiled form its very fast (well
it only parses a xml and executes cmd command and capture their
output). I noticed no problem excuting this on every boot (using
wpkg-gp and execute=Always) even starting it directly from the wpkg share.
Now i was wondering if anyone else is intrested in a tool like this.
I wrote and tested this on german win7/8.1 systems and the software
relies on the cmd output of the "net" command. On a german system this
output is german so it wont work without modifications on a system
that outputs in a different language.
But if there is demand i will atleast add support for english output
and maybe implement support for language files.
Greetings,
Nils
--
IT-Support - Fachbereich 09 Kulturgeschichte und Kulturkunde
Universität Hamburg
Flügelbau West, R. 204
Edmund-Siemers-Allee 1
D-20146 Hamburg
Tel.: +49-40-42838-3024
Email: ***@uni-hamburg.de

-------------------------------------------------------------------------
SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
http://www.sslrack.com/
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Nils Thiele
2015-10-13 15:27:27 UTC
Permalink
Well i allready found a bug, cant believe i missed this one.

Output from the executed commands wasnt encoded correctly so the program
crashed with some characters.
I did a dirty fix and now it works again.

Find the working Version here:
https://www.dropbox.com/s/xvqzgccclcccg4q/wpkg_users_0.81.zip?dl=0
Post by Nils Thiele
Hey there....
it took a bit longer than planned but i finally have a working version
for everyone to test.
I have been able to add support for english cmd output.
It now works with german system (Win7/8.1) and should also work with
everything else that outputs in english.
I havent tried any other foreign languages or special symbols. Please
report back if you have any problems.
This should also work on windows 10, but i havnt tried it yet.
https://www.dropbox.com/s/tcbffihmy3axyr2/wpkg_users_0.8.zip?dl=0
https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/
(The delprof2.exe needs to be place next to wpkgs_users tool)
Please be careful and read the help file carefully before trying
anything on a real system.
I advise to use this in a virtual machine or test system first!
Im looking forward to any feedback, bug reports and suggestions!
Best Regards,
Nils T.
Post by Nils Thiele
Hey,
i was searching for a program to easily manage remote local user
accounts (Win7, Win8) for system that are not connected to a domain
or something similar.
I found nothing i could combine with wpkg so i came up with my own solution.
The program is written in python, a compiled version (exe) is quite
big (8MB) but i didnt notice any problems running this on my system
at boot and you could always install it on local hdd first before
executing it.
The program reads a supplied xml file and compares the users in the
xml to the local users on the system. it will delete accounts that
are not in the server list and create accounts that are in the list
but not on the system. (The forcefull removement of accounts is not
activated by default)
On first run or if the supplied xml path isnt valid it will create
the xml itself and add all local accounts to the list.
You can also deactivate or activate users, set expire dates, change
passwords or force the user to change it iself on first logon and log
logon dates for the users if you wish to do so.
Managing local groups for accounts and resetting (deleting profile
folder only) should be implemented over the week.
Even tho the program is quite big in compiled form its very fast
(well it only parses a xml and executes cmd command and capture their
output). I noticed no problem excuting this on every boot (using
wpkg-gp and execute=Always) even starting it directly from the wpkg share.
Now i was wondering if anyone else is intrested in a tool like this.
I wrote and tested this on german win7/8.1 systems and the software
relies on the cmd output of the "net" command. On a german system
this output is german so it wont work without modifications on a
system that outputs in a different language.
But if there is demand i will atleast add support for english output
and maybe implement support for language files.
Greetings,
Nils
--
IT-Support - Fachbereich 09 Kulturgeschichte und Kulturkunde
Universität Hamburg
Flügelbau West, R. 204
Edmund-Siemers-Allee 1
D-20146 Hamburg
Tel.: +49-40-42838-3024
Email: ***@uni-hamburg.de

-------------------------------------------------------------------------
SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
http://www.sslrack.com/
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Loading...