我通过使用以下方式连接到VSTS服务器: $teamProjectCollection = [Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory]::GetTeamProjectCollection("http://wonderful01:8080") $ws = $teamProjectCollection.GetService([type]"Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore") $closebug=$ws.getworkitem(801089) 之后,我跑$closebug ,并得到我需要修改的项目之一: Value : Fixed OriginalValue : Fixed FieldDefinition : Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinition Id : 10001 Name : Substatus ReferenceName : Microsoft.SQL.Substatus IsDirty : False IsEditable : True IsComputed : False IsRequired : True AllowedValues : {Verification Not Needed, Verified} HasAllowedValuesList : True IsLimitedToAllowedValues : True ProhibitedValues : {} […]
Exchange 2010远程pipe理工具抱怨以下错误 [txexmb02.ibm.com] Connecting to remote server failed with the following error message : The WS-Management service cannot process the request. The system load quota of 1000 requests per 2 seconds has been exceeded. Send future requests at a slower rate or raise the system quota. The next request from this user will not be […]
正如在标题中提到的那样,如何找出哪个用户正在使用powershell运行服务?
我已经使用了thinkbot的笔记本电脑安装脚本来设置我的ruby开发的mac在过去。 有没有什么类似的Windows / C#开发? 设置IIS,安装Visual Studio等等的东西会很棒。
我正在尝试为我们组织中的所有邮箱收集邮箱统计信息,并将其导出到Excel / CSV文件。 这是我到目前为止收集/收集的代码: Get-Mailbox -ResultSize Unlimited |Get-MailboxStatistics | where {$_.ObjectClass -eq “Mailbox”} | Sort-Object TotalItemSize -Descending |FT @{label=”User”;expression={$_.DisplayName}},ServerName,Database,@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}} |Out-File -Append -FilePath C:\Users\Public\Documents\MailboxSize.log 使用Export-Csv时,写入的文件不包含请求的信息/输出。 它只显示“乱码” 当在脚本上方运行时,我遇到了“允许的最大值是524288000”Powershell消息,并且只logging(less部分)所请求的数据 你能帮我解决一下两个意见吗? = = = = = = 这是我目前使用的。 它提供了我所要求的细节和输出。 虽然我正在寻求进一步优化这个部分,但在一个更大的scheme中,我很高兴它是一个单一的命令: Get-Recipient -ResultSize Unlimited |Where {$_.RecipientType –eq “UserMailbox”} |Get-MailboxStatistics | Sort-Object TotalItemSize –Descending |Select-Object @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} […]
在使用Exchange 2010 cmdlet时,OutVariable似乎中断了。 这仅仅是我的服务器,还是这是每个人的情况? 我观察到以下 – get-mailbox jdoe -OutVariable asdf | out-null $asdf.getType() You cannot call a method on a null-valued expression. At line:1 char:14 + $asdf.getType <<<< () + CategoryInfo : InvalidOperation: (getType:String) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull 在上面的例子中, $asdf永远不会被创build, get-mailbox jdoe绝对会返回一些东西。 get-childitem -OutVariable asdf | out-null $asdf.getType() [PS] C:\temp>$asdf.getType() IsPublic IsSerial Name […]
使用PowerShell,有什么办法可以导出系统事件日志从一个保存的系统事件日志文件(* .evt)。 Get-Eventlog不能识别“-logname”保存的系统日志“”。 有任何想法吗 ?
我试图使用PowerShell删除某个帐户的某些完全访问权限,作为禁用用户进程的一部分。 我需要删除以下帐户的所有完整访问权限: NT AUTHORITY\SELF和DOMAIN\svcEnterpriseVault 我怎样才能使用Remove-MailboxPermission cmdlet来做到这一点? 谢谢 编辑:我已经得到了一些进一步的下面的命令,但我无法将完全访问用户的列表传递给Remove-MailboxPermission cmdlet。 Get-MailboxPermission -Identity $TheUser | Select User | where {($_.User -notlike "NT AUTHORITY\SELF") -and ($_.User -notlike "DOMAIN\svcEnterpriseVault")} | Remove-MailboxPermission -Identity $TheUser -User [ALL THE USERS FROM THE GET-MAILBOX COMMAND]
我已经分配了一个任务来清理我们的Exchange服务器,通过导出离开公司的用户的邮箱。 我们希望保留90天的邮箱副本,以防人力资源或pipe理人员稍后需要。 我有超过130个邮箱要导出完成此任务。 我发现将邮箱导出到PST的唯一方法是通过Exchangepipe理工具使用Export-Mailbox cmdlet。 我的问题是这样的:有一个脚本,我可以做到这一点质量? 也许通过电子邮件地址到一个文件并运行脚本? 这将有助于减less完成此任务所需的时间。 在此先感谢您的任何build议或帮助!
我如何创build一个域用户帐户,并从CSV设置在PowerShell的默认密码? 请注意,我知道如何做到这一点,我将此作为一个自我回答的问题来分享这些知识。 如果有人有更好的答案,请join!