powershell-2.0
How to pipeline the username from Get-MoveRequest to Get-MailboxStatistics?
How do I pipeline the output of Exchange 2010\'s Get-MoveRequest command so that the Name variable can be used in the $Username variable below?[详细]
2023-04-05 05:54 分类:问答PowerShell - Download files with WebDAV
I want to use PowerShell with WebDAV (https) to download multiple files from a folder. The name from the download files is unknown. So my plan is to download all files from this folder and create a cl[详细]
2023-04-04 19:16 分类:问答Color words in powershell script format-table output
Is it possible to color only certain words (not complete lines) for a powershell output using format-table.For example, this script scans a folder recursively for a string and then output the result w[详细]
2023-04-04 06:32 分类:问答PowerShell execution policy
I am running an EXE file from a mapped drive and supplying a few arguments while running it (it is an update/hotfix). However, the /q or silent operation switch is not honored when the EXE file is run[详细]
2023-04-03 17:30 分类:问答Powershell thread handling problem
I have a powershell problem, and maybe someone can help me. I\'m using powershell 2.0, and i want to create, and use threads. I know that i can use jobs, but that is not what i want.[详细]
2023-04-03 13:08 分类:问答Making a List<T> of a type created via Add-Type -TypeDefinition in powershell
I have a class that I define in inline C# in powershell: Add-Type -TypeDefinition @\" public class SomeClass {[详细]
2023-04-03 01:49 分类:问答Executing a scriptblock via startprocess
Would any of you possibly know why this is not working? Start-Process $PSHOME\\powershell.exe -ArgumentList \"-NoExit -Command & `\"{$outvar1 = 4+4; `\"out: $outvar1`\"}`\"\" -Wait[详细]
2023-04-02 12:53 分类:问答PowerShell: how to run script on a remote server?
I have a script: $StartDay = (Get-Date).AddDays(-2) Get-EventLog -LogName application -EntryType Error, Warning -After 开发者_如何学编程$StartDay[详细]
2023-04-02 11:32 分类:问答Iterate Data Returned from Web Service in PowerShell
I\'ve written a PowerShell script to call a Web Service using the new PS 2.0 commands. I would like to know how to iterate the $events result.The code works in returning data, I\'m just not sure what[详细]
2023-04-02 08:29 分类:问答problem when starting a job within a remote CredSSP call
So from machine X i\'m connecting to Y with Creds A as CredSSP, then i\'m passing through Cred B, and i want to start a job on machine Y with Cred B.[详细]
2023-04-02 08:15 分类:问答