Search found 15436 matches

by jvierra
Thu Jan 14, 2010 1:32 am
Forum: PowerShell
Topic: remote app pool [WMICLASS] AuthenticationLevel
Replies: 4
Views: 4054

remote app pool [WMICLASS] AuthenticationLevel

The trick - I tested it - is to just use PacketPrivacy.

gwmi -list <class> -name <namespace> -computer <computername> -Authentication PacketPrivacy

Haven't found out why IIS6 is set up that way.
by jvierra
Wed Jan 13, 2010 11:13 pm
Forum: PowerShell
Topic: remote app pool [WMICLASS] AuthenticationLevel
Replies: 4
Views: 4054

remote app pool [WMICLASS] AuthenticationLevel

Hi and Welcome to Scripting Answers $appPoolSettings = gwmi -list ISApplicationPoolSetting -namespace rootMicrosoftIISv2 -computer $server -credential This will get the remote class object with alternate credentials. WMI should automatically set up correct level of packet connection. If you are usin...
by jvierra
Wed Jan 13, 2010 7:02 pm
Forum: PowerShell
Topic: Batch Rename
Replies: 6
Views: 2267

Batch Rename

Easy as cake or maybe just cookies. $filename = 'filer.txt' $name=cat $filename | %{ if($_.Contains("Probe :")){ ($_.Split(":")[1]).Trim() }} $name will contain the value to the right of the string "Probe :". You can use the $name variable in your rename file routines. ...
by jvierra
Wed Jan 13, 2010 9:08 am
Forum: PowerShell
Topic: How to redirect/catch Console.WriteLine() output ?
Replies: 9
Views: 8503

How to redirect/catch Console.WriteLine() output ?

You can NEVER catch and redirect DLL exceptions. Even in PowerShell CmdLets the erros are not specifically redirectable. If the error were to be allowed to surface in the caller tehn PowerShell could handle it. Why not re-write the code. It shouldn't be writeing to teh COnsole error handle anyway in...
by jvierra
Wed Jan 13, 2010 8:33 am
Forum: VBScript
Topic: Update a Sharepoint list using VBSCRIPT via Web Se
Replies: 23
Views: 21077

Update a Sharepoint list using VBSCRIPT via Web Se

I have just posted a completely tested set of examples updating a SharePoint list including querying for the list ID , Updating an item, adding a new item and deleting an item. I have tested these with PowerShellV2 and Sharepoint 3.0. THe examples should work with all versions of Sharepoint through...
by jvierra
Wed Jan 13, 2010 5:50 am
Forum: PowerShell
Topic: interactive winforms + powershell
Replies: 3
Views: 2187

interactive winforms + powershell

That is very possible.

Promalforms has many sample scripts.

Hi,
Welcome to Scripting Answers.

Use Google to search web for more examples of forms and PowersHell there are thousands.

YOu will have to figure out exactly what you want to do. If having problems post back.
by jvierra
Wed Jan 13, 2010 4:10 am
Forum: PowerShell
Topic: NullRefException when using New-WebServiceProxy
Replies: 14
Views: 8481

NullRefException when using New-WebServiceProxy

Looks OK - I suspect therre may be a bug in a one way call wrapper in PowerShell. Can you temporarily buid it as two way. Let it return an integer. If that fixes it then it's most likely a PosH bug. Still = can you call any other methods on that service? If you can't then it may be permissions or ev...
by jvierra
Wed Jan 13, 2010 3:28 am
Forum: PowerShell
Topic: NullRefException when using New-WebServiceProxy
Replies: 14
Views: 8481

NullRefException when using New-WebServiceProxy

What about the underlying code?

Don't you have a test harness for this in Visual Studion. Are you sure this call works?

What about permissions on the web site? It will appear null if you have not authenticated correctly.

by jvierra
Wed Jan 13, 2010 3:19 am
Forum: PowerShell
Topic: NullRefException when using New-WebServiceProxy
Replies: 14
Views: 8481

NullRefException when using New-WebServiceProxy

What is teh definition for the method call. In PosH $proxy.SendNotifications - without parens will print what the proxy thinks the definition is. It may be that your interface definitioon is nto working. It looks like something is null that is supposed to be an objec. Perhaps no void on a return?