I have data in a pipeline from which I want to create an array of arrays like, for example:
(a, XXa), (b, XXb), (c, XXc)
I don't want to use a pre-declared multi-dimensional array because ...
HI Experts
Please see code snipped , I am trying to call a powershell command from C# and got the following error:
"Cannot invoke this function because the current host does not implem...
Does anyone know how to use Powershell to count and/or subtotal how many messages of a certain message class are in a given Exchange 2003 mailbox ?
For example, given a mailbox, how many IP...
Hey guys,
I figure someone has probably done this somewhere already and I'm probably missing something simple.
I like the SDDL Output format from Get-ACL, and would like to use that form...
Is there any vbscript which searches in all OU to find the last logon time for all users and write it in an txt file.
I need a Powershell script to read registry and services from a list of hosts in a text file and then output the results to a .csv file. Specifically, for each host listed in list.txt, I need ...
Busily chipping away at understanding PowerShell, but being a complete non-programmer occasionally makes things really odd...
Anyway, perhaps some one already knows this one and I can sto...
I was hoping someone could help me with this. I have a script in which I used many aliasesI was going through and removing all aliases to make it easier for people who aren't familar with PS t...
So my code has been working fine for a while now. I attempted to get the "User Must Change Password at First Login" to be checked, but it NEVER worked. All the rest is fine, like I said.
...
Can I run a PowerShell script on a XP Pro computer with out installing any additional software to make the script run? The XP Pro computer does not have powershell installed. I want to be able...
I'm creating a script to do the following:
Go into the default log file location for Exchange 2003
Get the list of files held inside
If it's E00*.log, I care about it.
If it's res1.log or ...
So I have this S.DS code that loops through the properties of a DirectoryEntry object, and uses Write-Host to output the name of the property and its associated value.
I have to believe the...
I'm in the process of converting a VBscript to powershell and am having trouble with arrays. Theis particular section of the script needs create a registry value for all interfaces under the S...
I am working on use Powershell to erase an Outlook 2003 POP3 email account & create a new account. The old PST is being moved to an X-employees location but we are keeping the Windows profile...
HI
How can I get the current user domain from PowerShell ??
I have tried the following, but didn't got the domain....
This should be a fairly straightforward solution.
I'm using a Powershell script to count all the "full" mailboxes on our exchange server. It should query all mailboxes, and then if it's be...
My task is to query a Windows DHCP server using PowerShell. At the very least, I need to be able to get a list of the active leases (not reservations), including ip addresses and MACs. I'd l...
I have been searching on the net and found some very bloated code to create mailboxes for exchange 2003. I was wondering if anyone knew the most efficient way (via a snap-in or whatever) to d...
I'm doing something screwy. This script runs thru a bunch of folders and checks the size, and it works (sort of) but I'm setting up the hash wrong. It seems to reset for each folder it goes ...
HI
I need to perform an implicit logout command when a user close the powershell manually.
How can I trap this event and call my Logout-User command ???
HI
I have an application that is accessible via web portal, WPF client and Powershell
Now, there are many data entry forms in the web client and WPF client, each with several controls when...
HI
Are there any known issues when upgrading from PS 1.0 to PS 2.0 ?
Should I uninstall PS 1.0 first?
Can I be sure that all scripts running on PS 1.0 will keep working on PS 2.0 ???
...
I am able to redirect the output of a ps1 file to a file by executing it like:
myfile.ps1 > mylog.log
or myfile.ps1 | out-file mylog.log
but how can I make sure that I write to the screen...
I'm a bit new to Powershell. I am looking for the ability configure an IIS6 website. More specifically I want to insert an Application Extension Mapping.
For an idea of what I'm trying to d...
HI
Is there a way to control the $? value, I know that this is set automatically when calling one of the error methods on a cmdlet or throwing an exception, In my application the PS client ...