Update-SPSolution -Identity contoso_solution.wsp -LiteralPath c:\contoso_solution_v2.wsp -GACDeployment此示例将已部署的 contoso_solution.wsp SharePoint 解决方案升级 ...
分类:
系统相关 时间:
2017-06-28 11:53:08
阅读次数:
190
在Windows PowerShell里New-TimeSpan cmdlet提供了一种方法做日期算法。 计算时间间隔: 这个命令告诉你今天的日期与2006年除夕之间的天数: New-TimeSpan $(Get-Date) $(Get-Date –month 12 -day 31 -year 20 ...
分类:
系统相关 时间:
2017-06-26 22:50:06
阅读次数:
601
代码原文地址: https://gallery.technet.microsoft.com/scriptcenter/Get-TimeZone-PowerShell-4f1a34e6 ...
分类:
系统相关 时间:
2017-06-26 22:40:53
阅读次数:
207
Function Get-PendingReboot { <# .SYNOPSIS Gets the pending reboot status on a local or remote computer. .DESCRIPTION This function will query the regi ...
分类:
系统相关 时间:
2017-06-26 22:27:12
阅读次数:
201
Function Get-registerkey 引用前一篇文章中的代码的一部分做修改,从注册表中查询server的susid Function Get-registerkey { <# #> [CmdletBinding()] param( [Parameter(Position=0,ValueF ...
分类:
系统相关 时间:
2017-06-26 22:26:40
阅读次数:
232
Group常见属性介绍: 一、Get-ADGroup获取群组(如下例循环获取群组的发送权限) ...
分类:
系统相关 时间:
2017-06-24 16:27:21
阅读次数:
285
一、Get-User单用户查询 二、Get-User多用户循环查询 $export=@() $Users=Get-ADUser -Filter * -SearchScope Subtree -SearchBase "OU=xx,OU=xx,dc=xx,dc=xx,dc=xx" -Properties ...
分类:
系统相关 时间:
2017-06-24 16:19:29
阅读次数:
272
If ((Get-PSSnapin | where {$_.Name -match "Microsoft.Exchange.Management.PowerShell.E2010"}) -eq $null) { Add-PSSnapin Microsoft.Exchange.Management.P... ...
分类:
系统相关 时间:
2017-06-24 16:18:22
阅读次数:
204
一、Disconnected Mailboxes 1、Finding Disconnected Mailboxes The first function is called Get-DisconnectedMailbox and the name is pretty much self explan ...
分类:
系统相关 时间:
2017-06-24 16:16:16
阅读次数:
270