We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e752de commit b9ed1ceCopy full SHA for b9ed1ce
Scripts/Sign.ps1
@@ -1,7 +1,7 @@
1
cls
2
# Sign all scripts in folder recursively by a self-signed certificate
3
$CertName = "Sophia Project"
4
-$FolderPath = "D:\Sophia-Script-for-Windows\Sophia Script"
+$FolderPath = "$PSSCriptRoot\Sophia Script"
5
$ExtensionsToSearchIn = @(".ps1", ".psm1", ".psd1")
6
Get-ChildItem -Path Cert:\LocalMachine\My, Cert:\CurrentUser\My | Where-Object -FilterScript {$_.Subject -eq "CN=$CertName"} | Remove-Item
7
0 commit comments