Search found 15436 matches

by jvierra
Fri Jul 25, 2008 5:28 am
Forum: PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 38257

help with Get-Mailbox methods

What happens when you just type $table

Do you see all of the data?


I am beginning to feel that you are not telling me some critical piece of information. What could that be?
by jvierra
Fri Jul 25, 2008 5:04 am
Forum: PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 38257

help with Get-Mailbox methods

Try this with table.

$table[0].Alias

Does this give you a value or nothing?

by jvierra
Thu Jul 24, 2008 8:04 am
Forum: PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 38257

help with Get-Mailbox methods

I don't understand. We haven't done anything other than prove you can enumerate teh table. There is something wrong with what yo are typing into the PS session. We need to try the next step. $DebugPreference = "Continue" $table | % { [string]$alias = $_.alias; write-debug $alias; Get-Mailb...
by jvierra
Thu Jul 24, 2008 6:22 am
Forum: PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 38257

help with Get-Mailbox methods

If that fails then try this:

$table | % { $_.alias }

If this doesn't work then something is wrong with you table builder code.
by jvierra
Thu Jul 24, 2008 5:45 am
Forum: PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 38257

help with Get-Mailbox methods

Try this: $alias = "some alias" # replace with valid alias Get-Mailbox -Identity $alias If you are running your code from a file or from a cut and paste tehn try just typing it inas the file may have bad chars in it. If the above test works then yuor code should work. If it doesn't then yo...
by jvierra
Thu Jul 24, 2008 2:34 am
Forum: PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 38257

help with Get-Mailbox methods

The return type of "alias" is probably not a string. I would bet that it is a char array. You need to convert it. It may also be unicode and may need to be converted. Much of this would depend on teh installation of you remail system. Use "GM" on "$table[0]" to check ob...
by jvierra
Wed Jul 23, 2008 3:32 am
Forum: VBScript
Topic: Hiding cscript window
Replies: 4
Views: 2959

Hiding cscript window

The sad answer is no. This has been done, I believe, to prevent rogue scripts.
by jvierra
Tue Jul 22, 2008 2:11 pm
Forum: VBScript
Topic: Add more than one record to a database
Replies: 2
Views: 1118

Add more than one record to a database

Just change the value of "strComputer" to the name of the other computer.

You could also read computer names from a file, a spredsheet or from Active Directory.
by jvierra
Tue Jul 22, 2008 5:06 am
Forum: PowerShell
Topic: Copy-Item E:\Path -recurse -force
Replies: 10
Views: 17227

Copy-Item E:\Path -recurse -force

Note also - On WS2003 SP1 and later files that are copied or moved from an "unsafe" network location cannot be copied or moved to some local locations without first removing the "block" flag. THis is normally done by using Explorer to view the properties of the file and uncheckin...
by jvierra
Tue Jul 22, 2008 4:52 am
Forum: PowerShell
Topic: Copy-Item E:\Path -recurse -force
Replies: 10
Views: 17227

Copy-Item E:\Path -recurse -force

The following construct works correctly for all files DLL included. Copy-Item -path C:Test -destination C:Test2 -recurse -force Notice NO "" in "c:test2" so it puts contents and structure frm "c:Test" INTO c:test2. It will create "C:Test2" if it doesn't exist ...