Steven's Blog

cmd/powershell output to txt

Steven · 2021-02-09 10:59 · 40 views · Windows

ping www.baidu.com >C:/log.txt $Path = "$env:C:\Users\Administrator\Desktop\test4.txt" $Secret = Hello hello world World! $Secret | Out-File -FilePath $Path notepad $path 必须有输出到文件的数据 notepad文件才会创建出来 o

Read more

AD PowerShell batch Operating

Steven · 2021-02-09 10:32 · 40 views · Active Directory

move user to other ou dsmove "CN=username,OU=ouname,DC=domain,DC=Com" -newparent "OU=ouname,DC=domain,DC=Com" rename CN dsmove "CN=username,OU=ouname,DC=domain,DC=com" -newname "newname" add user to g

Read more

Ad User recovery and mailbox recovery after AD User deleted by mistake

Steven · 2021-02-08 10:06 · 30 views · Exchange

情景描述: (1)用户清理AD账号,误删除一个用户;要求先恢复用户 (2)用户有exchange2013邮箱,要求邮件恢复 不丢失找回; 过程遇到的问题记录: (1)AD用户恢复使用 lap恢复,需要重置密码才能重新启用,权限和OU如果记不住之前的话 需要重加; (2)用户恢复后 使用EAC操作,使用“连接邮箱”始终找不到该用户邮箱; (3)使用EMS操作,使用登录用户名 始终找不到用户邮箱对象,

Read more

查看Centos 版本

Steven · 2021-02-04 15:19 · 24 views · Linux

1、lsb_release -a 2、cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 3、rpm -q centos-release centos-release-7-4.1708.el7.centos.x86_64 4、cat /etc/issue

Read more

CentOS8 modify SSH port 22,disable root

Steven · 2021-02-01 17:26 · 38 views · Linux

[root@centos8 ~]# cat /etc/redhat-release CentOS Linux release 8.2.2004 (Core) 1. Create Test SUDO user and add to wheel group. [root@centos8 ~]# useradd testuser [root@centos8 ~]# passwd testuser Cha

Read more

Set Time Zone Through Group Policy

Steven · 2021-02-01 17:25 · 22 views · Windows

Setting the time zone on computers via a group policy object (GPO) is a common requirement and very easy to do. I recently found myself rolling out a new server and computers in the Mountain Standard

Read more

DHCP服务器迁移(Win2003迁移到Win2008R2)

Admin · 2021-01-30 11:36 · 20 views · Windows

公司的 DHCP 服务器当初搭建的时候是 Win2003 ,很多年一直未升级。考虑到 SCCM 存储空间有限, WSUS 下载的补丁包越来越多,决定把 Win2008R2 以下的系统全部换掉,删除 Win2008 SP2 和 Win2003 的更新包。近期把 Windows 2008 SP2 ( x64 位)升级到 2008R2 ,而 DHCP 是 Win2003 ( 32 位)无法升级,于是迁移

Read more

Centos 下启动Apache

Admin · 2021-01-30 10:42 · 19 views · Linux

1、查看安装信息 find / -name ‘httpd’ 2、安装路径 /usr/local/apache2 /usr/local/apache2/bin/apachectl start /usr/local/apache2/bin/apachectl stop /usr/local/apache2/bin/apachectl restart 3、如果apache 安装成为linux 的服务器的

Read more