PowerShell
PowerShell: how to get if else construct right?
I\'m trying to learn powershell and tri开发者_高级运维ed to construct a if else statement: if ((Get-Process | Select-Object name) -eq \"svchost\") {[详细]
2023-04-10 19:26 分类:问答PowerShell Add-Type not behaving as expected
Can anyone explain why the following (using the System namespace qualifer) works: Add-Type @\" public class BitValueChecker[详细]
2023-04-10 17:19 分类:问答How to invoke powershell Set-Location command silently?
I would like to cd to some directory without the path to that directory being displayed by powershell. No matter what I try - nothing works:[详细]
2023-04-10 16:30 分类:问答How to invoke method on PSObject from managed C++
I\'m trying to execute a WMI function using the PowerShell class from a managed C++ function. But I can\'t work out how to call a method on the object that is returned in the PSObject list from the P[详细]
2023-04-10 15:26 分类:问答Piping into objects/properties/methods in PowerShell
In PowerShell, y开发者_如何学运维ou can pipe into Cmdlets and into scripted functions. But is it possible to pipe into objects, properties, or member functions?[详细]
2023-04-10 12:31 分类:问答VM Clone to the Subdirectory of a Datastore
I have a Datastore in vCenter that I\'m trying to clone to using a PowerCLI script I run weekly.I can clone virtual machines to it, but I have absolutely no control over the directory structure.It\'s[详细]
2023-04-10 11:16 分类:问答PowerShell Connect Wirless Adapter
PowerShell 3.0 has several built-in NetAdapter cmdlets / fu开发者_运维问答nctions.Is it possible to connect / disconnect a wireless adapter using this new noun?For example:[详细]
2023-04-10 07:32 分类:问答Where does Windows PowerShell set $profile?
I would like to move my default \"My Documents\\WindowsPowerShell\" folder开发者_运维技巧. However, when I try this, PowerShell of course can\'t find $profile. Is there a file or something that I can[详细]
2023-04-10 03:55 分类:问答Trying to copy a group of files contained in a text file
I\'m trying to copy a list of files from a txt file and as a newbie, I\'m having a hard time. Here is a bit of the text file. The real file has no extra lines, but I had to do that to :[详细]
2023-04-10 03:37 分类:问答Powershell - Array Range from user input
What would be the easiest way to get user input for an array range. For ex开发者_Go百科ample: function MyArrayOfMachines {[详细]
2023-04-10 02:18 分类:问答
加载中,请稍侯......