Search found 99 matches

by EBrant
Wed Mar 20, 2013 10:18 am
Forum: Windows PowerShell
Topic: An ASDI interface and Method question.
Replies: 4
Views: 2639

Re: An ASDI interface and Method question.

Hello Jim Thanks very much for taking the time to reply, I will check out the parent property, and thanks for the clarification on the class Sorry for the long explaintion, thought it would help :) What I cannot explain is this bit if ($user.PSBase.Properties.memberof | where {$_ -match "CN=Group1"}...
by EBrant
Wed Mar 20, 2013 6:34 am
Forum: Windows PowerShell
Topic: An ASDI interface and Method question.
Replies: 4
Views: 2639

An ASDI interface and Method question.

Hello Can someone please help me with the following question? In some respects it is a little unusual and quirky. I understand what went wrong and how to fix it, but there is an element I am a bit unclear on (the interesting bit), I have a hunch but not certain, help most appreciated. I am dealing w...
by EBrant
Thu Mar 07, 2013 11:20 am
Forum: Windows PowerShell
Topic: Question re ADSISearcher and early filtering
Replies: 2
Views: 1663

Re: Question re ADSISearcher and early filtering

Hello Jim, thanks very much again for your help,

That's right what I meant by early filering is like with WMI i.e. I wanted to get ADSI to reduce the amount of data returned in the first instance before I send down the pipeline to where-object.

Thanks again I will check out the Link

Ernie
by EBrant
Thu Mar 07, 2013 1:46 am
Forum: Windows PowerShell
Topic: Question re ADSISearcher and early filtering
Replies: 2
Views: 1663

Question re ADSISearcher and early filtering

Hello All Can someone please help me with the following question please. I want a acheive early filtering using ADSISearcher, please see below #works ([DirectoryServices.DirectorySearcher]"objectCategory=Computer").findone().psbase.properties # does not work i.e. returns nothing ([DirectoryServices....
by EBrant
Thu Feb 28, 2013 8:01 am
Forum: Windows PowerShell
Topic: WMI GetMultiStringValue question
Replies: 3
Views: 1417

WMI GetMultiStringValue question

Thanks Jim, your right :)
tried it on my home PC works as expected, tried it on works PC did not work as expected. Must be some thing weird going on at work.

Thanks again Jim, I am off to Pombal in Portugal in 4 weeks thank good :)

Ernie
by EBrant
Thu Feb 28, 2013 12:52 am
Forum: Windows PowerShell
Topic: WMI GetMultiStringValue question
Replies: 3
Views: 1417

WMI GetMultiStringValue question

Hello All I have a registry key as follows HKLMSYSTEMCurrentControlSetservicesTcpipParameters which contains a Multi String value called ReservedPorts the value data for this Multi String value name is 1433-1434 1024-3343 i.e. two lines of text. I am using the following code to output the above $HKL...
by EBrant
Tue Feb 19, 2013 5:59 pm
Forum: Windows PowerShell
Topic: Long pause waiting for prompt to return following query of Windows Event Log
Replies: 2
Views: 886

Long pause waiting for prompt to return following query of Windows Event Log

Thanks Jim,
I better get used to using get-winEvent

All the best
Ernie
by EBrant
Tue Feb 19, 2013 6:31 am
Forum: Windows PowerShell
Topic: Long pause waiting for prompt to return following query of Windows Event Log
Replies: 2
Views: 886

Long pause waiting for prompt to return following query of Windows Event Log

Hello All Can someone please enlighten me of a what is going on here and hopefully a way to resolve it. no matter which way I query the Windows Event Log i.e. Get-WmiObject -Query "select * from win32_NTLogEvent where LogFile = 'Application' AND TimeGenerated >= '20130219 18:40:00'" -computername Re...
by EBrant
Tue Feb 19, 2013 12:08 am
Forum: Windows PowerShell
Topic: Cannot load type from command line or script or ISE but can from PowerGUI script editor
Replies: 6
Views: 2772

Cannot load type from command line or script or ISE but can from PowerGUI script editor

The answer has got to be here [reflection.assembly]::LoadFile('C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.IO.Compression.FileSystemv4.0_4.0.0.0__b77a5c561934e089System.IO.Compression.FileSystem.dll') Exception calling "LoadFile" with "1" argument(s): "This assembly is built by a runtime newer than...