楼主又悲剧了吧 关注:62贴子:6,136
  • 17回复贴,共1

管理员取得所有权

只看楼主收藏回复

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\exefile\shell\runas2]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"


IP属地:甘肃1楼2015-01-27 13:09回复



    IP属地:江苏来自Android客户端2楼2015-03-15 09:46
    收起回复
      逗比啊


      IP属地:浙江来自Android客户端3楼2015-03-17 11:36
      收起回复
        喝汾酒当用玉杯,
        喝白酒用犀角杯,
        高梁酒用青铜杯,
        米酒该用大斗杯,
        百草酒用古藤杯,
        梨花酒用翡翠杯,
        玉露酒用琉璃杯,
        绍兴壮元古瓷杯,
        葡萄美酒夜光杯,
        欲饮琵琶马上催。


        IP属地:甘肃4楼2015-04-21 23:11
        回复
          'xp_taskbar_desktop_fixall.vbs - Repairs the Taskbar when minimized programs don't show.
          '?Kelly Theriot and Doug Knox - 8/22/2003
          Set WSHShell = WScript.CreateObject("WScript.Shell")
          Message = "To work correctly, the script will close" & vbCR
          Message = Message & "and restart the Windows Explorer shell." & vbCR
          Message = Message & "This will not harm your system." & vbCR & vbCR
          Message = Message & "Continue?"
          X = MsgBox(Message, vbYesNo, "Notice")
          If X = 6 Then
          On Error Resume Next
          WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2\"
          WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU\"
          WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop\"
          WshShell.RegDelete "HKCU\Software\Microsoft\Internet Explorer\Explorer Bars\{32683183-48a0-441b-a342-7c2a440a9478}\BarSize"
          P1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
          WshShell.RegWrite p1 & "NoBandCustomize", 0, "REG_DWORD"
          WshShell.RegWrite p1 & "NoMovingBands", 0, "REG_DWORD"
          WshShell.RegWrite p1 & "NoCloseDragDropBands", 0, "REG_DWORD"
          WshShell.RegWrite p1 & "NoSetTaskbar", 0, "REG_DWORD"
          WshShell.RegWrite p1 & "NoToolbarsOnTaskbar", 0, "REG_DWORD"
          WshShell.RegWrite p1 & "NoSaveSettings",0,"REG_DWORD"
          WshShell.RegWrite p1 & "NoToolbarsOnTaskbar", 0, "REG_DWORD"
          WshShell.RegWrite p1 & "NoSetTaskbar",0,"REG_DWORD"
          WshShell.RegWrite p1 & "NoActiveDesktop",0,"REG_DWORD"
          WshShell.RegWrite p1 & "ClassicShell",0,"REG_DWORD"
          p1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalUser\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
          WshShell.RegWrite p1 & "NoCloseDragDropBands", 0, "REG_DWORD"
          WshShell.RegDelete p1 & "NoMovingBands"
          p1 = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell"
          WshShell.RegWrite p1, "explorer.exe", "REG_SZ"
          p1 = "HKCU\Software\Microsoft\Internet Explorer\Explorer Bars\{32683183-48a0-441b-a342-7c2a440a9478}\"
          WshShell.RegDelete p1 & "BarSize"
          WshShell.RegWrite p1, "Media Band", "REG_SZ"
          On Error Goto 0
          For Each Process in GetObject("winmgmts:"). _
          ExecQuery ("select * from Win32_Process where name='explorer.exe'")
          Process.terminate(0)
          Next
          MsgBox "Finished." & vbcr & vbcr & "?Kelly Theriot and Doug Knox", 4096, "Done"
          Else
          MsgBox "No changes were made to your system." & vbcr & vbcr & "?Kelly Theriot and Doug Knox", 4096, "User Cancelled"
          End If


          IP属地:甘肃5楼2015-05-23 21:26
          收起回复

            屌啊


            IP属地:摩洛哥来自Android客户端6楼2015-06-30 02:31
            收起回复
              for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1


              IP属地:甘肃7楼2016-08-22 21:14
              收起回复
                badidea


                IP属地:甘肃8楼2016-11-10 20:37
                回复
                  在地址栏里打chrome://flags/ 之后启用DirectWrite 重启浏览器就好了


                  IP属地:甘肃9楼2016-11-12 22:03
                  回复
                    使用VS时报错此实现不是 Windows 平台 FIPS 验证的加密算法的一部分.


                    IP属地:甘肃10楼2016-12-28 23:51
                    收起回复