{"id":22180722,"url":"https://github.com/jftuga/logon_as_batch_job","last_synced_at":"2025-03-24T19:15:34.851Z","repository":{"id":117699360,"uuid":"337215920","full_name":"jftuga/logon_as_batch_job","owner":"jftuga","description":"Gives the 'logon as a batch job' privilege to a domain user","archived":false,"fork":false,"pushed_at":"2021-02-09T21:52:01.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T23:29:58.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jftuga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-08T21:34:58.000Z","updated_at":"2021-11-09T08:25:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea4b360e-68fa-4b10-a550-2a51e454572b","html_url":"https://github.com/jftuga/logon_as_batch_job","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Flogon_as_batch_job","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Flogon_as_batch_job/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Flogon_as_batch_job/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Flogon_as_batch_job/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jftuga","download_url":"https://codeload.github.com/jftuga/logon_as_batch_job/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245334899,"owners_count":20598386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T09:19:26.725Z","updated_at":"2025-03-24T19:15:34.845Z","avatar_url":"https://github.com/jftuga.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logon_as_batch_job\nGives the 'logon as a batch job' privilege to a domain user\n\n## Synopsis\nThe `logon as a batch job` privilege is required when creating a task from within `Task Scheduler`.  Setting this is normally accomplished with the `Local Security Policy` *(secpol.msc)* control.  However, this program is not included in `Windows Server Core`, thus making it difficult to configure.  This program solves this problem as it is a command-line tool.  In order for successful operation, it must be used in the `Run As Administrator` context.\n\n___\n\n## Usage\n\n```\nlogon_as_batch_job.exe DomainName\\UserName\n```\n\n## Example\n\n```shell\nC:\u003elogon_as_batch_job.exe myDomain\\myUserName\nLookupAccountName result = True\nIsValidSid: True\nLookupAccountName domainName: MYDOMAIN\nLsaAddAccountRights return value: 66307801059688448\n```\n\n## License\n* [MIT License](LICENSE)\n\n## Acknowledgments\n* [Set Logon as batch job rights to User by Powershell, C# and CMD](https://morgantechspace.com/2014/03/set-logon-as-batch-job-rights-to-user-by-powershell-csharp-cmd.html)\n* [How do I force my .NET application to run as administrator?](https://stackoverflow.com/questions/2818179/how-do-i-force-my-net-application-to-run-as-administrator)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Flogon_as_batch_job","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjftuga%2Flogon_as_batch_job","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Flogon_as_batch_job/lists"}