Support Forums

Search found 10934 matches

by jvierra
Wed May 05, 2010 2:36 am
Forum: Windows PowerShell
Topic: Collecting values from pipeline
Replies: 9
Views: 1337

Collecting values from pipeline

As I tried to point out earlier. Here is code that adds all of the properties of an object to all or selected properties of another object. # get all services and select name, status properties get-service | select name,status | %{ # try to find matching process $proc=Get-Process $_.Name -ErrorActio...
by jvierra
Wed May 05, 2010 1:04 am
Forum: Other Scripting Languages
Topic: Modify Script
Replies: 9
Views: 4947

Modify Script

ras- no idea what teh poster is trying to accomplish or why. Just don't want to see someone waste days trying to re-invent the wheel only to find it won't be round.

by jvierra
Tue May 04, 2010 4:40 pm
Forum: Windows PowerShell
Topic: Collecting values from pipeline
Replies: 9
Views: 1337

Collecting values from pipeline

You need to go back and look closely at teh examples. If you are getting more than one Calendar per mailbox - which is possible - yu need to rething what you are doing. I would run Get-MailboxCalendarSettings and use it to get the associated mailbox and add the needed mail box settings to each calen...
by jvierra
Tue May 04, 2010 10:07 am
Forum: Windows PowerShell
Topic: Collecting values from pipeline
Replies: 9
Views: 1337

Collecting values from pipeline

Just follow the examples I gave. Add all properties from both objects to a new PSObject by enumerating the 'Properties' collection. However I believe that you will have to enumerate the names and retrieve the values using the names as I don't think there is a collection of properties objects as in W...
by jvierra
Tue May 04, 2010 7:38 am
Forum: Other Scripting Languages
Topic: Modify Script
Replies: 9
Views: 4947

Modify Script

Just enter the share name into the text box as teh script requests.
by jvierra
Tue May 04, 2010 3:47 am
Forum: Windows PowerShell
Topic: how to create GUI tool and run a PSshell script
Replies: 18
Views: 2190

how to create GUI tool and run a PSshell script

Here is the tool you are looking for:

It's PowerGUI which does exactly what you are trying to create a script for. It's free and works exteremely well.




by jvierra
Tue May 04, 2010 2:17 am
Forum: Windows PowerShell
Topic: how to create GUI tool and run a PSshell script
Replies: 18
Views: 2190

how to create GUI tool and run a PSshell script

Here is the Forms sample updated to run any script by browsing with the Windows File Browser and then execute the script and return any output text to a textbox. This whole piece of code requied only 6 lines of hand typed code. uploads/2491/Out-TextboxSample2.ps1.txt Try it. You will see that Primal...
by jvierra
Tue May 04, 2010 1:24 am
Forum: Windows PowerShell
Topic: Collecting values from pipeline
Replies: 9
Views: 1337

Collecting values from pipeline

Objects are passed in the piupeline. Each step then uses teh object from the previous step and derives it's own output. THe exact behavior of this is dependent on each CmdLet as each one is completely independent of all of the previos CmdLets. What the CmdLet output looks like and contains can be fo...
by jvierra
Mon May 03, 2010 11:02 pm
Forum: Windows PowerShell
Topic: how to create GUI tool and run a PSshell script
Replies: 18
Views: 2190

how to create GUI tool and run a PSshell script

The output will only display if it is text.

What is in the variable $output?

by jvierra
Mon May 03, 2010 2:40 pm
Forum: Windows PowerShell
Topic: Collecting values from pipeline
Replies: 9
Views: 1337

Collecting values from pipeline

Hi - Welcome to the forum.


For some ideas on how to approach this see this thread. Read it through to the end for many methods to solve this issue.





Go to advanced search

cron