Myluzh Blog

Strive to become a dream architect.

Windows Server 安装 OpenSSH Server

2022-9-15 myluzh Windows

0x01 PowerShell自动安装 1、安装软件 # Install the OpenSSH Client Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 # Install the OpenSSH Server Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 2、启动软件 # Start the sshd service Start-Service sshd # OPTIONAL but recommended: Set-Service -Name sshd -StartupType 'Automatic' # Confirm the firewall rule is configured. It should be created automatically by setup. Get-NetFirewallRule -Name *ssh* # There should be a firewall rule named "...

阅读全文>>

标签: Windows Server OpenSSH Server

评论(0) (296)

cmd命令行配置windows防火墙

2022-5-18 myluzh Windows

0x01 常用命令 查看当前防火墙状态:netsh advfirewall show allprofiles 关闭防火墙:netsh advfirewall set allprofiles state off 开启防火墙:netsh advfirewall set allprofiles state on 恢复初始防火墙设置:netsh advfirewall reset 设置默认输入和输出策略:netsh advfirewall set allprofiles firewallpolicy allowinbound,allowoutbound 以上是设置为允许,如果设置为拒绝使用blockinbound,blockoutbound 0x02 常用参数解释 dir=in|out 必备参数,指定进站方向还是出站方向 action=allow|block|bypass 必备参数,设定这个规则是允许还是阻断或者是跳过 program=] 可选参数,为某应用程序设定规则 [service=|any] 可选参数,为某系统服务设定规则 [description=] 可选参数,为这个规则加一个说明描述...

阅读全文>>

标签: 防火墙 windows cmd

评论(0) (356)

Win11系统默认右键显示更多选项(还原 Win10右键菜单样式)

2022-3-14 myluzh Windows

If you want to remove the “Show More Options” entry from Windows 11 Context Menu and restore classic Right Click menus in Windows 11 you can use following registry entries. Restore full right click context menu in Windows 11 via Registry Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32] @=”” Get the default Windows 11 Context Menu back via Registry Windows Registry Editor Version 5.00 [-HKEY...

阅读全文>>

标签: win11右键

评论(0) (634)

Windows开机自动关闭代理

2022-2-27 myluzh Windows

保存为bat放在启动目录即可 if "%1"=="h" goto begin start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit :begin #关闭代理 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f >nul 2>nul reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "" /f >nul 2>nul #开启代理 #reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD ...

阅读全文>>

标签: windows 关闭代理

评论(0) (329)

Windows挂载WebDAV

2022-1-12 myluzh Windows

在WIN7、WIN10操作系统用WebDAV映射网络驱动器需要的操作 如果WebDAV不是https的,win7默认是添加不上的,需要修改注册表使得WIN7同时支持http和https,默认只支持https,然后重启服务 某一服务器,配置好了WebDAV。用苹果电脑作客户端可以成功添加网络盘,而WIN7却不行。 后查资料,根据资料操作解决了这一问题。 资料原文如下: 如果WebDAV不是https的,win7、WIN10默认是添加不上的,需要修改注册表: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters 把BasicAuthLevel 值改成2,即同时支持http和https,默认只支持https,然后重启服务: (WIN + R) net stop webclient net start webclient 最后再次通过点“计算机”-右键-“映射网络驱动器”,就可以添加成功了。

阅读全文>>

标签: webdav

评论(0) (1400)

Windows10添加照片查看器

2021-9-9 myluzh Windows

Windows Registry Editor Version 5.00 ; Change Extension's File Type [HKEY_CURRENT_USER\Software\Classes\.jpg] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USER\Software\Classes\.jpeg] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USER\Software\Classes\.gif] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USER\Software\Classes\.png] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_C...

阅读全文>>

标签: windows 照片 图片 查看器

评论(0) (629)