menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right 010-常用命令 chevron_right 010-Powershell注册表操作.md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    010-Powershell注册表操作.md
    883 B / 2021-07-17 00:01:40
        # Powershell注册表操作
    
    #注册表操作命令
    
    ```bash
    Get-PSProvider          获取安装的提供程序列表
    
    Dir, Get-ChildItem  列出键的内容
    
    Cd, Set-Location    更改当前(键)目录
    
    HKCU:, HKLM:            预定义的两个重要注册表根目录虚拟驱动器
    
    Get-ItemProperty    读取键的值
    
    Set-ItemProperty    设置键的值
    
    New-ItemProperty    给键创建一个新值
    
    Clear-ItemProperty  删除键的值内容
    
    Remove-ItemProperty     删除键的值
    
    New-Item, md            创建一个新键
    
    Remove-Item, Del    删除一个键
    
    Test-Path           验证键是否存在
    
    Get-PSDrive -PSProvider Registry    查看那些注册表驱动器已经被注册表提供程序使用
    
    New-PSDrive job1 registry "HKLM:\Software\Microsoft\Windows NT\CurrentVersion" 
    dir job1:                        自由地创建任何额外的驱动器
    
    ```
    
    
    
    links
    file_download