PowerShell İle Sağ Menüye "Admin Yetkilerle" Betik Çalıştır Menü Girdisini Ekleme/Silme
Gönderilme zamanı: 07 Ağu 2026, 18:08
Merhabalar
Bu aralar iyice PowerShell'e ısındım...Yavaş yavaş, bendeki (arşivdeki) .cmd, .vbs, .vbe, .bat betiklerini .ps1 versiyonlarına çeviriyorum.Microsoft yakında bu " .cmd, .vbs, .vbe, .bat" mekanizmaları yavaş yavaş kaldıracak ve kararlı bu konuda...(keşke kaldırmasa)
Sağ Menüye PowerShell Betikleri Çalıştırma Admin Girdisi.
Bunu yönetici olarak açılmış bir Windows Terminal-PS Penceresin kopyala-yapıştır yapın ...Sonra herhangi bir .ps1 betiğine sağ tıklayın.Artık komut satırından gibi bir komut yazmak zorunda değilsiniz ve powershell yetkileri de değiştirmek zorun da da değilsiniz.Çünkü komutu ile anlık kısıtlamayı aşabilecek , betiği kapattıktan hemen sonra normal düzene dönebileceksiniz.
Eğer bu sağ menü girdisini silmek isterseniz...
SONUÇ :
Güle güle kullanın...
Kaynaklar :
https://stackoverflow.com/questions/672 ... ion-bypass
https://serverfault.com/questions/11525 ... lue-bypass
https://learn.microsoft.com/en-us/power ... rshell-7.6
https://forum.bigfix.com/t/unable-to-by ... licy/49187
https://adamtheautomator.com/set-executionpolicy/
https://www.youtube.com/watch?v=MqsVydfjMQ8
https://forums.powershell.org/t/set-exe ... olicy/6331
https://sentry.io/answers/bypass-and-se ... -policies/
https://stackoverflow.com/posts/63532269/revisions
https://www.tenforums.com/tutorials/643 ... 0-a-2.html
https://stackoverflow.com/questions/743 ... with-power
https://resource.dopus.com/t/how-to-run ... ll/47869/1
https://learn.microsoft.com/fr-fr/previ ... rshell-7.3
https://learn.microsoft.com/th-th/previ ... rshell-7.3
https://github.com/Puliczek/open-with-c ... 00Ml1aSIAR
https://www.ninjaone.com/blog/how-to-ad ... ve-methods
https://superuser.com/revisions/46f92ea ... iew-source
https://stackoverflow.com/revisions/490 ... iew-source
https://stackoverflow.com/revisions/f3f ... iew-source
https://github.com/Batlez/CloakBox/comm ... f04f9a5c22
https://serverfault.com/revisions/3a9b0 ... iew-source
https://www.thewindowsclub.com/cant-run ... text-menus
Bu aralar iyice PowerShell'e ısındım...Yavaş yavaş, bendeki (arşivdeki) .cmd, .vbs, .vbe, .bat betiklerini .ps1 versiyonlarına çeviriyorum.Microsoft yakında bu " .cmd, .vbs, .vbe, .bat" mekanizmaları yavaş yavaş kaldıracak ve kararlı bu konuda...(keşke kaldırmasa)
Sağ Menüye PowerShell Betikleri Çalıştırma Admin Girdisi.
Kod: Tümünü seç
New-Item -Path "Registry::HKEY_CLASSES_ROOT\Microsoft.PowershellScript.1\Shell\runas\command" -Force | Set-ItemProperty -Name "(Default)" -Value 'powershell.exe "-Command" "if((Get-ExecutionPolicy ) -ne ''AllSigned'') { Set-ExecutionPolicy -Scope Process Bypass }; & ''%1''"'Kod: Tümünü seç
./betik.ps1Kod: Tümünü seç
-Command" "if((Get-ExecutionPolicy ) -ne ''AllSigned'') { Set-ExecutionPolicy -Scope Process BypassEğer bu sağ menü girdisini silmek isterseniz...
Kod: Tümünü seç
Remove-Item -Path "Registry::HKEY_CLASSES_ROOT\Microsoft.PowershellScript.1\Shell\runas" -Recurse -Force
Kaynaklar :
https://stackoverflow.com/questions/672 ... ion-bypass
https://serverfault.com/questions/11525 ... lue-bypass
https://learn.microsoft.com/en-us/power ... rshell-7.6
https://forum.bigfix.com/t/unable-to-by ... licy/49187
https://adamtheautomator.com/set-executionpolicy/
https://www.youtube.com/watch?v=MqsVydfjMQ8
https://forums.powershell.org/t/set-exe ... olicy/6331
https://sentry.io/answers/bypass-and-se ... -policies/
https://stackoverflow.com/posts/63532269/revisions
https://www.tenforums.com/tutorials/643 ... 0-a-2.html
https://stackoverflow.com/questions/743 ... with-power
https://resource.dopus.com/t/how-to-run ... ll/47869/1
https://learn.microsoft.com/fr-fr/previ ... rshell-7.3
https://learn.microsoft.com/th-th/previ ... rshell-7.3
https://github.com/Puliczek/open-with-c ... 00Ml1aSIAR
https://www.ninjaone.com/blog/how-to-ad ... ve-methods
https://superuser.com/revisions/46f92ea ... iew-source
https://stackoverflow.com/revisions/490 ... iew-source
https://stackoverflow.com/revisions/f3f ... iew-source
https://github.com/Batlez/CloakBox/comm ... f04f9a5c22
https://serverfault.com/revisions/3a9b0 ... iew-source
https://www.thewindowsclub.com/cant-run ... text-menus
