-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
270fb02
commit a1a4cab
Showing
7 changed files
with
145 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
# RRKS | ||
# RemoveRegisterKeyService | ||
|
||
This repository contains two programs designed for managing the Windows Registry key responsible for the Terminal Server Grace Period. | ||
|
||
## RemoveRegisterKeyService | ||
|
||
`RemoveRegisterKeyService` is a Windows service program that removes the values of the following Registry key: | ||
|
||
``` | ||
SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod | ||
``` | ||
|
||
After deleting the values, it restarts the `TermService` service. The program has the following settings: | ||
|
||
- **Interval:** The default is 1440 minutes (1 day). After the service starts, it executes once after 10 minutes. Subsequently, it checks at this interval. | ||
- **Key:** Specifies the Registry key to check and delete. | ||
|
||
## ServiceInstaller | ||
|
||
`ServiceInstaller` is a GUI program that facilitates the installation, uninstallation, and viewing of the event log for `RemoveRegisterKeyService`. | ||
|
||
### Build Information | ||
|
||
- **Built with:** Visual Studio 2022, C#, and .NET 4.8. | ||
|
||
### Compatibility | ||
|
||
Tested with Windows Server 2016 and 2019. | ||
|
||
Feel free to contribute, report issues, or provide feedback! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,14 @@ | ||
namespace RemoveRegisterKeyService.Properties { | ||
|
||
|
||
// このクラスでは設定クラスでの特定のイベントを処理することができます: | ||
// SettingChanging イベントは、設定値が変更される前に発生します。 | ||
// PropertyChanged イベントは、設定値が変更された後に発生します。 | ||
// SettingsLoaded イベントは、設定値が読み込まれた後に発生します。 | ||
// SettingsSaving イベントは、設定値が保存される前に発生します。 | ||
internal sealed partial class Settings { | ||
|
||
public Settings() { | ||
// // 設定の保存と変更のイベント ハンドラーを追加するには、以下の行のコメントを解除します: | ||
// | ||
// this.SettingChanging += this.SettingChangingEventHandler; | ||
// | ||
// this.SettingsSaving += this.SettingsSavingEventHandler; | ||
// | ||
} | ||
|
||
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { | ||
// SettingChangingEvent イベントを処理するコードをここに追加してください。 | ||
} | ||
|
||
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { | ||
// SettingsSaving イベントを処理するコードをここに追加してください。 | ||
} | ||
} | ||
} |
Oops, something went wrong.