diff --git a/CHANGELOG.md b/CHANGELOG.md index 496eacc..ca51f4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [5.0.0] - 2025-04-25 +## [5.1.0] - 2025-05-06 + +### Added + +- Added powershell helper script for logging out from windows + +## [5.0.0] - 2025-05-06 ### Added diff --git a/doc/scheduled-task/sched01.png b/doc/scheduled-task/sched01.png new file mode 100644 index 0000000..3a8620a Binary files /dev/null and b/doc/scheduled-task/sched01.png differ diff --git a/doc/scheduled-task/sched02.png b/doc/scheduled-task/sched02.png new file mode 100644 index 0000000..7f81e0b Binary files /dev/null and b/doc/scheduled-task/sched02.png differ diff --git a/doc/scheduled-task/sched03.png b/doc/scheduled-task/sched03.png new file mode 100644 index 0000000..f613b71 Binary files /dev/null and b/doc/scheduled-task/sched03.png differ diff --git a/doc/scheduled-task/sched04.png b/doc/scheduled-task/sched04.png new file mode 100644 index 0000000..4f85ba4 Binary files /dev/null and b/doc/scheduled-task/sched04.png differ diff --git a/doc/scheduled-task/sched05.png b/doc/scheduled-task/sched05.png new file mode 100644 index 0000000..62cde0d Binary files /dev/null and b/doc/scheduled-task/sched05.png differ diff --git a/doc/scheduled-task/sched06.png b/doc/scheduled-task/sched06.png new file mode 100644 index 0000000..9055bb0 Binary files /dev/null and b/doc/scheduled-task/sched06.png differ diff --git a/doc/scheduled-task/sched07.png b/doc/scheduled-task/sched07.png new file mode 100644 index 0000000..7b19799 Binary files /dev/null and b/doc/scheduled-task/sched07.png differ diff --git a/doc/scheduled-task/sched08.png b/doc/scheduled-task/sched08.png new file mode 100644 index 0000000..845f9bc Binary files /dev/null and b/doc/scheduled-task/sched08.png differ diff --git a/doc/scheduled-task/sched09.png b/doc/scheduled-task/sched09.png new file mode 100644 index 0000000..395c582 Binary files /dev/null and b/doc/scheduled-task/sched09.png differ diff --git a/doc/scheduled-task/sched10.png b/doc/scheduled-task/sched10.png new file mode 100644 index 0000000..bede20a Binary files /dev/null and b/doc/scheduled-task/sched10.png differ diff --git a/doc/scheduled-task/scheduled-task.md b/doc/scheduled-task/scheduled-task.md new file mode 100644 index 0000000..11f85ee --- /dev/null +++ b/doc/scheduled-task/scheduled-task.md @@ -0,0 +1,47 @@ +## Crear tarea programada para matar el agente de Windows al cerrar sesión + +1. Abrir el task scheduler y pinchar en Create task: + +![image info](./sched01.png) + +2. Rellenar el nombre y luego pinchar en Change user or group: + +![image info](./sched02.png) + +3. Pinchar en Advanced: + +![image info](./sched03.png) + +4. Pinchar en Find now: + +![image info](./sched04.png) + +5. Seleccionar Administrator y luego Ok, y luego Ok: + +![image info](./sched05.png) + +6. De vuelta en la pantalla de crear tarea, ir a la pestaña Triggers y pinchar en New: + +![image info](./sched06.png) + +7. Seleccionar "On disconnect from user session", seleccionar "Connection from local computer", y luego Ok: + +![image info](./sched07.png) + +8. Ir a la pestaña "Actions" y pinchar en New: + +![image info](./sched08.png) + +9. Pinchar en Browse, seleccionar C:\Program Files (x86)\OGAgent\stop-agent.ps1, y luego Ok: + +![image info](./sched09.png) + +10. Ir a la pestaña Conditions y desmarcar las condiciones relativas a Power: + +![image info](./sched10.png) + +11. Pinchar Ok y la tarea programada queda creada. + +En caso de usar remotepc, hay que repetir todos estos pasos, es decir, crear una +tarea programada nueva, seleccionando "Connection from remote computer" en lugar +de "Connection from local computer". diff --git a/src/OGAgent.spec b/src/OGAgent.spec index 5e9256f..5ed4bc2 100755 --- a/src/OGAgent.spec +++ b/src/OGAgent.spec @@ -98,4 +98,5 @@ coll = COLLECT( ) import shutil -shutil.copytree ('cfg', '{}/{}/cfg'.format(DISTPATH, dist_name)) +shutil.copytree ('cfg', '{}/{}/cfg'. format(DISTPATH, dist_name)) +shutil.copy ('stop-agent.ps1', '{}/{}/stop-agent.ps1'.format(DISTPATH, dist_name))