powershell-2.0
powershell : ftp directory listing (help on a script)
I am trying to do a list view of a ftp directory. The viewing part is ok so far but I am unable to manipulate the data I am getting back. Here is the script that I used;[详细]
2023-03-28 03:29 分类:问答PowerShell: Find and delete folders that have no files in them or in child folders
I have a PowerShell 2.0 script that I use to delete folders that have no files in them: dir \'P:\\path\\to\\wherever\' -recurse | Where-Object { $_.PSIsContainer } | Where-Object { $_.GetFiles().Count[详细]
2023-03-27 07:15 分类:问答Using PowerShell, how can I add a file to a newly created file collection?
How do I create a blank file collection then add a file to it? This is the pseudo-representaion. $filelis开发者_如何学JAVAt = get-childitem \"c:\\somefolder\\*\"[详细]
2023-03-26 21:50 分类:问答Get DTC Active Transactions (Powershell)
I\'m writing some Powershell scripts so we can monitor our SQLServer instances through Nagios, I need to get the DTC Active Transaction count in PS so I can output it to Nagios. Is this possible? If s[详细]
2023-03-26 08:56 分类:问答Move list of empty folders from one volume to another with PowerShell
I am using PowerShell 2.0 on a Windows SBS 2008 machine with the latest service packs. I have a two line script that finds all empty folders in a directory:[详细]
2023-03-25 08:16 分类:问答what emits the header stuff when I display a directory entry?
Embarrassing to admit, but after working with Monad when it was in beta, I\'ve somehow neglected PowerShell ever since. So I\'m just now dipping my toes in.[详细]
2023-03-24 14:53 分类:问答Create PSCredential without a password
How to create a instance of PSCredential that has no password? (Without manually filling out a Get-Credential dialog with no password, this is for unattended running.)[详细]
2023-03-23 08:04 分类:问答Streamlining Powershell based file edition
So I currently have a group of csv files that I comb through and replace various portions of using powershell. However, the current process I use is highly time intensive, and I was wondering if there[详细]
2023-03-22 21:41 分类:问答Remote Get-WmiObject call fails when within Start-Job scriptblock
Alright, I\'ve tried to figure this out, but figured it\'s time to ask the interwebs. I\'m wondering if this is a bug or what.[详细]
2023-03-22 01:27 分类:问答What is required for Powershell 2.0 to render a script's default parameter value in the help page?
I have the following simple script that accepts text as input and writes it to the host. <# .SYNOPSIS[详细]
2023-03-21 22:37 分类:问答