velociraptor yazdı: 14 Tem 2026, 01:25
Hintliler herşeyi berbat ediyor malesef
1.Oturumu açıp kapattın mı?
2.Gezgini yeniden açıp kapattın mı?
3.PowerRun ile reg kaydını uygulamayı denedin mi?
NOT :
1.Benim yapı sürümüm :
Windows11 Yapı Sürüm 24H2 Revizyon 7019 , yani senin sürümün tam 4-5 ay gerisi olan bir sürüm...
2.Kullandığım
Windows sürümü Home
3.Eğer kullandığın Windows sürümü Pro ise bu betiği kullanabilirsin.Böylece Windows Politika Kurallarını görmüş olursun...
Get-GroupPolicyResults.ps1
Kod: Tümünü seç
# =============================================================================
# Script Name : Get-GroupPolicyResults.ps1
# Purpose : Lists applied Group Policy (GPO) results for the current
# user and computer, with automatic edition detection
# (Home editions do not support the gpresult /H report mode).
# Compatible : Windows PowerShell 5.1 and PowerShell 7.x
# =============================================================================
$ErrorActionPreference = "Continue"
Write-Host "============================================================"
Write-Host " Group Policy Result Viewer"
Write-Host "============================================================"
Write-Host ""
# -----------------------------------------------------------------------
# Step 1: Detect Windows edition
# -----------------------------------------------------------------------
$editionId = $null
try {
$editionId = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name "EditionID" -ErrorAction Stop).EditionID
}
catch {
$editionId = "Unknown"
}
$isHomeEdition = $false
# Home-family SKUs report several different internal EditionID values:
# Core, CoreSingleLanguage, CoreCountrySpecific, CoreN, CoreARM, etc.
if ($editionId -match "Home" -or $editionId -match "^Core") {
$isHomeEdition = $true
}
Write-Host ("Detected Windows edition : {0}" -f $editionId)
if ($isHomeEdition) {
Write-Host ""
Write-Host "NOTE: This is a Home-family edition. Home editions restrict" -ForegroundColor Yellow
Write-Host "'gpresult /H' (the HTML report mode) and gpedit.msc is not" -ForegroundColor Yellow
Write-Host "available. However, 'gpresult /V' (verbose text report) still" -ForegroundColor Yellow
Write-Host "works on Home editions, so this script uses that mode." -ForegroundColor Yellow
Write-Host ""
}
# -----------------------------------------------------------------------
# Step 2: Build output file path (timestamped, saved next to the script)
# -----------------------------------------------------------------------
$timestamp = Get-Date -Format "yyyyMMdd_HHmmss"
$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Path -Parent
if (-not $scriptDir) {
$scriptDir = (Get-Location).Path
}
$outputFile = Join-Path -Path $scriptDir -ChildPath ("GPResult_{0}.txt" -f $timestamp)
# -----------------------------------------------------------------------
# Step 3: Run gpresult and capture output
# -----------------------------------------------------------------------
Write-Host "Running gpresult, please wait..."
Write-Host ""
$gpOutput = $null
try {
# /V (verbose text report) works on both Home-family and Pro/Enterprise
# editions. Only /H (HTML report) is restricted on Home-family editions.
$gpOutput = gpresult /V 2>&1
}
catch {
Write-Host ("ERROR: gpresult could not be executed. Details: {0}" -f $_.Exception.Message) -ForegroundColor Red
}
# -----------------------------------------------------------------------
# Step 4: Display results on screen (basic section highlighting)
# -----------------------------------------------------------------------
if ($gpOutput) {
foreach ($line in $gpOutput) {
if ($line -match "^(COMPUTER SETTINGS|USER SETTINGS|RSOP DATA)") {
Write-Host ""
Write-Host $line -ForegroundColor Cyan
Write-Host ("-" * $line.Length) -ForegroundColor Cyan
}
elseif ($line -match "Applied Group Policy Objects|Denied Group Policy Objects") {
Write-Host $line -ForegroundColor Green
}
else {
Write-Host $line
}
}
# Save full output to file
try {
$gpOutput | Out-File -FilePath $outputFile -Encoding UTF8 -Force
Write-Host ""
Write-Host ("Full report saved to: {0}" -f $outputFile) -ForegroundColor Green
}
catch {
Write-Host ("WARNING: Could not save report to file. Details: {0}" -f $_.Exception.Message) -ForegroundColor Yellow
}
}
else {
Write-Host "No output was returned by gpresult." -ForegroundColor Red
}
Write-Host ""
Write-Host "============================================================"
Write-Host " Done."
Write-Host "============================================================"
Read-Host "`nPress ENTER to exit."
ÖRNEK KOMUT ÇIKTISI : (GPResult_20260714_014009.txt)
Kod: Tümünü seç
Microsoft (R) Windows (R) Operating System Group Policy Result tool v2.0
© Microsoft Corporation. All rights reserved.
Created on ?14 ?Temmuz ?2026 ?Salı at 01:40:10
RSOP data for NOTEBOOK-PC\TRWE_2012 on NOTEBOOK-PC : Logging Mode
------------------------------------------------------------------
OS Configuration: Standalone Workstation
OS Version: 10.0.26100
Site Name: N/A
Roaming Profile: N/A
Local Profile: C:\Users\TRWE_2012
Connected over a slow link?: No
COMPUTER SETTINGS
------------------
Last time Group Policy was applied: 13 Temmuz 2026 Pazartesi at 19:14:25
Group Policy was applied from: N/A
Group Policy slow link threshold: 500 kbps
Domain Name: NOTEBOOK-PC
Domain Type: <Local Computer>
Applied Group Policy Objects
-----------------------------
Yerel Grup İlkesi
The computer is a part of the following security groups
-------------------------------------------------------
Sistem Zorunlu Düzeyi
Everyone
BUILTIN\Users
NT AUTHORITY\SERVICE
KONSOL OTURUMU AÇMA
NT AUTHORITY\Authenticated Users
This Organization
gpsvc
LOCAL
BUILTIN\Administrators
Resultant Set Of Policies for Computer
---------------------------------------
Software Installations
----------------------
N/A
Startup Scripts
---------------
N/A
Shutdown Scripts
----------------
N/A
Account Policies
----------------
N/A
Audit Policy
------------
N/A
User Rights
-----------
N/A
Security Options
----------------
N/A
N/A
Event Log Settings
------------------
N/A
Restricted Groups
-----------------
N/A
System Services
---------------
N/A
Registry Settings
-----------------
N/A
File System Settings
--------------------
N/A
Public Key Policies
-------------------
N/A
Administrative Templates
------------------------
N/A
USER SETTINGS
--------------
Last time Group Policy was applied: 13 Temmuz 2026 Pazartesi at 19:14:38
Group Policy was applied from: N/A
Group Policy slow link threshold: 500 kbps
Domain Name: NOTEBOOK-PC
Domain Type: <Local Computer>
Applied Group Policy Objects
-----------------------------
Yerel Grup İlkesi
The user is a part of the following security groups
---------------------------------------------------
Yok
Everyone
Yerel hesap ve Administrators grubunun üyesi
Debugger Users
BUILTIN\Administrators
BUILTIN\Users
NT AUTHORITY\INTERACTIVE
KONSOL OTURUMU AÇMA
NT AUTHORITY\Authenticated Users
This Organization
Yerel hesap
LOCAL
NTLM Authentication
Yüksek Zorunlu Düzey
The user has the following security privileges
----------------------------------------------
Çapraz geçiş denetimini atla
Denetimi ve güvenlik günlüğünü yönet
Dosya ve dizinleri yedekle
Dosya ve dizinleri geri yükle
Sistem saatini değiştir
Sistemi kapat
Uzak sistemden kapatmayı zorla
Dosyaların veya diğer nesnelerin sahipliğini al
Programların hatalarını ayıkla
Üretici yazılımı ortam değerlerini değiştir
Sistem performansı profili oluştur
Tek işlem profili oluştur
Zamanlama önceliğini artır
Aygıt sürücüleri yükle ve kaldır
Disk belleği dosyası oluştur
İşlem için bellek kotaları ayarla
Bilgisayarı takma biriminden çıkar
Birim bakım görevleri gerçekleştir
Kimlik doğrulamasından sonra istemcinin özelliklerini al
Genel nesneler oluştur
Saat dilimini değiştir
Simgesel bağlantılar oluştur
Aynı oturumdaki farklı bir kullanıcı için bir kimliğe bürünme belirteci edinin.
İşlem çalışma kümesini artır
Resultant Set Of Policies for User
-----------------------------------
Software Installations
----------------------
N/A
Logon Scripts
-------------
N/A
Logoff Scripts
--------------
N/A
Public Key Policies
-------------------
N/A
Administrative Templates
------------------------
N/A
Folder Redirection
------------------
N/A
Internet Explorer Browser User Interface
----------------------------------------
N/A
Internet Explorer Connection
----------------------------
N/A
Internet Explorer URLs
----------------------
N/A
Internet Explorer Security
--------------------------
N/A
Internet Explorer Programs
--------------------------
N/A
Bende bazı bölüm N/A ,yani boş, çünkü Home kullanıyorum, eğer sen pro kullanıyorsan bu N/A'lar dolu olacaktır.
Ayrıca yukarıdaki reg kaydını direkt PS1'den yapan betiği de veriyorum.
Set-SnapRegistry-RestartExplorer.ps1
Kod: Tümünü seç
# =============================================================================
# Script Name : Set-SnapRegistry-RestartExplorer.ps1
# Purpose : Applies the Snap Assist Flyout / Snap Bar registry values
# under the current user's Explorer\Advanced key, then
# restarts File Explorer so the change takes effect.
# Notes : - Requests administrator elevation automatically.
# - Registry values are written under HKEY_CURRENT_USER,
# which always targets the interactively logged-on user,
# even when the process itself is elevated.
# Compatible : Windows PowerShell 5.1 and PowerShell 7.x
# =============================================================================
# -----------------------------------------------------------------------
# Step 1: Self-elevate to Administrator if not already running as admin
# -----------------------------------------------------------------------
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal(
[Security.Principal.WindowsIdentity]::GetCurrent()
)
$isAdmin = $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
if (-not $isAdmin) {
Write-Host "Administrator privileges are required. Relaunching with elevation..."
$scriptPath = $MyInvocation.MyCommand.Path
$psExe = (Get-Process -Id $PID).Path
Start-Process -FilePath $psExe `
-ArgumentList @("-NoProfile", "-ExecutionPolicy", "Bypass", "-File", "`"$scriptPath`"") `
-Verb RunAs
exit
}
Write-Host "============================================================"
Write-Host " Snap Assist / Snap Bar Registry Configuration Tool"
Write-Host "============================================================"
Write-Host ""
Write-Host "Running with administrator privileges: OK"
Write-Host ""
# -----------------------------------------------------------------------
# Step 2: Ensure the Advanced key exists
# -----------------------------------------------------------------------
$advancedKeyPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
if (-not (Test-Path -Path $advancedKeyPath)) {
Write-Host "Advanced key not found. Creating it now..."
try {
New-Item -Path $advancedKeyPath -Force | Out-Null
Write-Host "Advanced key created successfully."
}
catch {
Write-Host ("ERROR: Could not create the Advanced key. Details: {0}" -f $_.Exception.Message) -ForegroundColor Red
Read-Host "`nPress ENTER to exit."
exit 1
}
}
else {
Write-Host "Advanced key already exists."
}
Write-Host ""
# -----------------------------------------------------------------------
# Step 3: Apply the registry values
# -----------------------------------------------------------------------
$valuesToSet = @{
"EnableSnapAssistFlyout" = 0
"EnableSnapBar" = 0
}
foreach ($valueName in $valuesToSet.Keys) {
$valueData = $valuesToSet[$valueName]
try {
New-ItemProperty -Path $advancedKeyPath -Name $valueName -PropertyType DWord -Value $valueData -Force | Out-Null
Write-Host ("Set: {0} = {1}" -f $valueName, $valueData) -ForegroundColor Green
}
catch {
Write-Host ("ERROR: Could not set {0}. Details: {1}" -f $valueName, $_.Exception.Message) -ForegroundColor Red
}
}
Write-Host ""
# -----------------------------------------------------------------------
# Step 4: Verify the values were written
# -----------------------------------------------------------------------
Write-Host "Verifying applied values:"
foreach ($valueName in $valuesToSet.Keys) {
try {
$currentValue = (Get-ItemProperty -Path $advancedKeyPath -Name $valueName -ErrorAction Stop).$valueName
Write-Host (" {0} = {1}" -f $valueName, $currentValue)
}
catch {
Write-Host (" {0} = NOT FOUND" -f $valueName) -ForegroundColor Yellow
}
}
Write-Host ""
# -----------------------------------------------------------------------
# Step 5: Restart Windows Explorer to apply the change
# -----------------------------------------------------------------------
Write-Host "Restarting File Explorer..."
try {
$explorerProcesses = Get-Process -Name "explorer" -ErrorAction SilentlyContinue
if ($explorerProcesses) {
Stop-Process -Name "explorer" -Force -ErrorAction Stop
Start-Sleep -Seconds 2
}
Start-Process -FilePath "explorer.exe"
Write-Host "File Explorer restarted successfully." -ForegroundColor Green
}
catch {
Write-Host ("ERROR: Could not restart File Explorer. Details: {0}" -f $_.Exception.Message) -ForegroundColor Red
Write-Host "Please sign out and sign back in manually to apply the changes." -ForegroundColor Yellow
}
Write-Host ""
Write-Host "============================================================"
Write-Host " Done."
Write-Host "============================================================"
Read-Host "`nPress ENTER to exit."
SONUÇ :
Canlı Test/Onaylama Sistemi : Windows11.24H2.R7019 x64 Home TR
Eh bu da olmazsa ne diyebilirim ki...