admin

帅气的我简直无法用语言描述!

Powershell 查询 Windows 日志的方法(powershell查看cpu和内存)全程干货

 论坛里面有人询问如何使用powershell脚本查询文件修改的审计日志,豆子服务器没开这个功能,不过尝试写了个类似的脚本可以查询日志,并输出对应的xml内容。 基本方法是get-winevent,...
3年前
3080

Powershell 查找用户的主SMTP地址(powershell查看当前用户)学会了吗

 $users=Get-ADUser -Filter {proxyAddresses -like '*'} -SearchBase "ou=sydney,dc=omnicom,dc=com,dc=a...
3年前
2940

PowerShell 数组的多种录入方法(powershell date)难以置信

 这个需求是小骆驼发起的。感谢 微软云方案交流 236804566 这个高端群的用户贡献。 我们首先看看一个标准的数组是怎么录入的 PS D:\> $arr="adf","asdfer","s...
3年前
3090

PowerShell 指令操作集合(小结)(powershell -lt)难以置信

 PowerShell 命令 集合 操作【含义】 命令 打印工作目录【检查当前 所在位置】 pwd【print working directory】 查看 计算机 在网络中的名称 ?待填充 创建目录...
3年前
2860

Powershell 之批量获取文件大小的实现代码(powershell读取文件内容)居然可以这样

 $startFolder="D:" $colItems=(Get-ChildItem $startFolder | Where-Object {$_.PSIsContainer -eq $True...
3年前
2780

PowerShell String对象方法小结(powershell [string] 用法)一看就会

 从之前的章节中,我们知道PowerShell将一切存储在对象中,那这些对象中包含了一系列中的称之为方法的指令。默认文本存储在String对象中,它包含了许多非常有用的处理文本的命令。例如,要确定一...
3年前
2490

PowerShell DSC组件 xExchange 发布(powershell access)这样也行?

 随着 xExchange PowerShell DSC Resource Module 的发布,部署和配置一个很复杂的产品将会变得非常容易. 在 Introducing the xExchange...
3年前
2650

PowerShell Continue语句使用示例(powershell ise)一看就会

 当你在一个循环的内部使用 “Continue”语句时,可以跳过循环的当前迭代,继续执行下一个迭代。如果使用了”Break”语句,则会跳过剩余的所有迭代循环。 这样就引发了一个问题,在一个多层嵌套循...
3年前
3190

PowerShell 4.0实现自动化设置服务器(powershell怎么运行)越早知道越好

 PowerShell是微软Windows操作系统中一款强大的操作工具。PowerShell的版本随Windows的发布而更新,例如最新的Windows Server 2012 R2/Windows...
3年前
3170

PowerShell 3.0管理Hyper-V 3.0(powershell怎么管理员)越早知道越好

 使用PowerShell 3.0管理Hyper-V 3.0 PowerShell ISE是集成在Windows Server中的PowerShell集成开发环境,在Windows Server 8...
3年前
2940