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;
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
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\\*\"
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
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:
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.
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.)
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
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.
I have the following simple script that accepts text as input and writes it to the host. <# .SYNOPSIS