Myluzh Blog

AD域控-使用CMD和PowerShell修改域用户属性

2023-1-9 myluzh Windows

dsquery & dsget # 在域控本地用dsquery命令查询,按SamAccountName查询(SAMID),SamAccountName是登录名,可以在域用户的属性编辑器找到SamAccountName # 查询 SamAccountName 为 test1 的用户 C:\Users\Administrator> dsquery user -samid test1 # 根据CN查询 C:\Users\Administrator> dsquery user -name test1 # 查询 域用户的UserPrincipalName、GivenName、DisplayName、SamAccountName 等属性 C:\Users\Administrator> dsquery user -samid test1 | dsget user -upn -fn -display -samid Get-ADUser # 查询 SamAccountName 为 test1 的用户 PS C:\Users\Administrator> Get-ADUser test1 ...

阅读全文>>

标签: 域控

评论(0) (594)

交换机ACL的in和out怎么理解

2023-1-5 myluzh NETWORK

如果是物理接口: in就是流量进入交换机的方向,out就是流量出交换机的方向。 如果是三层svi接口: in就是从svi所属vlan进入交换机的方向,也就是说你在ACL中配置策略的源地址是10.60.15.0/24网段的话,这个ACL必须挂在10.60.15.0/24网段的SVI接口的in方向才生效。 out方向呢,同样的道理,就是从SVI所属vlan出交换机的流量会命中,按照上面的例子,如果你写一个ACL策略中的目标地址是10.60.15.0/24网段,那么就要将ACL挂在10.60.15.0/24网段的svi接口的out方向,流量才会命中。 举个例子: 10.60.15.0/24只能访问1.1.1.1其他全部拒绝 # interface Vlan-interface15 ip address 10.60.15.1 255.255.255.0 packet-filter 3001 inbound # acl advanced 3001 description 限制 rule 0 permit ip destination 10.60.15.0 0.0.0.255 ru...

阅读全文>>

标签: 交换机 acl

评论(0) (757)

Office 2019/2021 定制安装

2022-12-12 myluzh Windows

官网下载的office的ISO进行安装,但是安装完成后除了Word,Excel,PPt这三个常用组件外还额外安装了很多完全用不到的组件,可以选择自定义配置进行安装,操作如下: 1.下载部署工具 https://www.microsoft.com/en-us/download/confirmation.aspx?id=49117 下载解压到指定文件夹得到 4个文件 2.用记事本编辑configuration-Office2019Enterprise,替换如下(注意:配置文件中SourcePath路径为你ISO挂载路径)。 你也可以通过在线生成配置https://config.office.com/ <Configuration> <Add SourcePath="F:\" OfficeClientEdition="64" > <Product ID="ProPlusRetail"> <Language ID="zh-CN" /> <ExcludeApp ID="Access" /> <Ex...

阅读全文>>

标签: office 定制安装

评论(0) (536)

Deploy SSR Server

2022-12-8 myluzh NOTE

SS & SSR SS full name: shadowsocks. Shadowsokks is a agent software. This software can intelligently judge whether the visited website is forbidden or not. The forbidden website will be accessed through a remote server. SSR full name: shadowsocks-R. The author of SSR claims that SS is not hidden enough and easy to be detected by the firewall. SSR improves the confusion and protocol and is more difficult to be detected by the firewall. In short, SSR is an improved version of SS. the client sends the request (b...

阅读全文>>

标签: ssr

评论(0) (517)

LVM逻辑卷基础-扩容逻辑卷

2022-12-8 myluzh Linux

扩容VG卷组 查看/dev/sdb剩余容量(可以看到start起始位置跟end结束位置) [root@localhost /]# parted /dev/sdb (parted) print free 2049MB 53.7GB 51.6GB Free SpaceNumber Start End Size Type File system Flags 0.00B 511B 512B Free Space 1 512B 1025MB 1025MB primary lvm 2 1025MB 2049MB 1024MB primary lvm 2049MB 53.7GB 51.6GB Free Space 创建一个2GB的分区(后面的2049mb跟4079mb是结束位置) (parted) mkpart primary 2049MB 4097MB 变成逻辑卷并退出退出 (parted...

阅读全文>>

标签: lvm 逻辑卷 lv扩容

评论(0) (377)

LVM逻辑卷基础-创建逻辑卷

2022-12-7 myluzh Linux

查看磁盘 parted -l 创建分区 parted /dev/sdb 可以定义使用MBR方式还是GPT方式 (parted) mklabel msdos则分区是mbr,若该结果的值为gpt则分区是gpt。 New disk label type? msdos 创建两个分区 (parted) mkpart primary 1025mb 2049mb (parted) mkpart primary 1025mb 2049mb print 打印下 Number  Start   End     Size    Type     File system  Flags  1      512B    1025MB  1025MB  primary               lba  2      1025M...

阅读全文>>

标签: lvm 逻辑卷 lv创建

评论(0) (408)