Add OpenSSH license overwrite script
This commit is contained in:
9
docs/overwrite_openssh_license_script.md
Normal file
9
docs/overwrite_openssh_license_script.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# OpenSSH License Overwrite Script
|
||||||
|
|
||||||
|
The repository root contains `.\overwrite_openssh_license.ps1`.
|
||||||
|
|
||||||
|
The script overwrites `C:\Windows\System32\OpenSSH\LICENSE.txt` with:
|
||||||
|
|
||||||
|
```text
|
||||||
|
hello world
|
||||||
|
```
|
||||||
3
overwrite_openssh_license.ps1
Normal file
3
overwrite_openssh_license.ps1
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
$targetPath = 'C:\Windows\System32\OpenSSH\LICENSE.txt'
|
||||||
|
|
||||||
|
Set-Content -Path $targetPath -Value 'hello world'
|
||||||
Reference in New Issue
Block a user