メインコンテンツへスキップ
見出し画像

怖いデジタルタトゥー(笑)

    知恵袋で回す前にnoteに置いといた100円の有料データ(笑)
    この時にnote知りました(笑)

    Yahoo検索エンジンに乗ってた(笑)

    画像
    画像
    画像


    画像


    画像
    画像

    BA増えてる?なんでまぁ良いや(笑)

    入んなかっかので(笑)
    せめてものお詫びにm(*_ _)m⬇スマホあるあるでコードのどこかでエラー出たら直ぐに修正かけるので連絡くださいm(_ _)m違ってたら(笑)
    100円の中身です⬇

    ============================================================

    Windows PC 爆速最適化・クリーンアップスクリプト

    ※管理者権限で実行してください

    ============================================================

    1. 管理者権限チェック

    if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
    Write-Host "[!] このスクリプトは管理者権限で実行する必要があるよ!" -ForegroundColor Red
    Write-Host " PowerShellを右クリックして『管理者として実行』で開き直してね。" -ForegroundColor Yellow
    pause
    exit
    }

    Clear-Host
    Write-Host "===============================================" -ForegroundColor Cyan
    Write-Host " PC最適化・システムクリーンアップ開始" -ForegroundColor Cyan
    Write-Host "===============================================" -ForegroundColor Cyan
    Write-Host ""

    2. Temp・キャッシュファイルの物理削除

    Write-Host "[1/5] システム&ユーザーTempファイルの強制削除中..." -ForegroundColor Yellow
    $tempPaths = @(
    "$env:TEMP*",
    "C:\Windows\Temp*",
    "C:\Windows\Prefetch*",
    "C:\Windows\SoftwareDistribution\Download*"
    )
    foreach ($path in $tempPaths) {
    Remove-Item -Path $path -Recurse -Force -ErrorAction SilentlyContinue
    }
    Write-Host " -> Tempクリーン完了!" -ForegroundColor Green

    3. ごみ箱の完全消去

    Write-Host "[2/5] 全ドライブのごみ箱をクリア中..." -ForegroundColor Yellow
    Clear-RecycleBin -AllDrives -Force -ErrorAction SilentlyContinue
    Write-Host " -> ごみ箱消去完了!" -ForegroundColor Green

    4. ネットワーク・DNSキャッシュのリフレッシュ

    Write-Host "[3/5] DNSキャッシュクリア&ネットワークソケット最適化中..." -ForegroundColor Yellow
    Clear-DnsClientCache
    ipconfig /flushdns | Out-Null
    Write-Host " -> ネットワークリフレッシュ完了!" -ForegroundColor Green

    5. DISM コンポーネントストアの圧縮・最適化(古い更新プログラム削除)

    Write-Host "[4/5] DISMコンポーネントストアの最適化中(数分かかる場合があるよ)..." -ForegroundColor Yellow
    dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase | Out-Null
    Write-Host " -> システムコンポーネント最適化完了!" -ForegroundColor Green

    6. メモリ&ガベージコレクションの強制実行

    Write-Host "[5/5] メモリガベージコレクション&待機メモリ解放指示..." -ForegroundColor Yellow
    [System.GC]::Collect()
    [System.GC]::WaitForPendingFinalizers()
    Write-Host " -> メモリ解放リフレッシュ完了!" -ForegroundColor Green

    Write-Host ""
    Write-Host "===============================================" -ForegroundColor Cyan
    Write-Host " 最適化完了!PCの動作がすっきり軽くなったよ!" -ForegroundColor Cyan
    Write-Host "===============================================" -ForegroundColor Cyan
    Write-Host ""

    ⬆(笑)デジタルタトゥー怖い
    #デジタルタトゥー



     
     

    春

     
     
    【楽しいが正義】 知恵袋24時間で卒業して来ました。(笑) ​noteではPC使いません (笑) スマホオンリーです 基本こちらからはしませんが​気軽にフォローよろしくです! フォロバ100% / スキされたらスキ返します noteは 暇つぶしにどうぞ(*´∀`)ノ

    あなたへのおすすめ