Search found 99 matches
- Wed Mar 20, 2013 10:18 am
- Forum: PowerShell
- Topic: An ASDI interface and Method question.
- Replies: 4
- Views: 3716
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=Gro...
- Wed Mar 20, 2013 6:34 am
- Forum: PowerShell
- Topic: An ASDI interface and Method question.
- Replies: 4
- Views: 3716
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...
- Thu Mar 07, 2013 10:20 am
- Forum: PowerShell
- Topic: Question re ADSISearcher and early filtering
- Replies: 2
- Views: 2782
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
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
- Thu Mar 07, 2013 12:46 am
- Forum: PowerShell
- Topic: Question re ADSISearcher and early filtering
- Replies: 2
- Views: 2782
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 ([Director...
- Thu Feb 28, 2013 7:01 am
- Forum: PowerShell
- Topic: WMI GetMultiStringValue question
- Replies: 3
- Views: 2423
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
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
- Wed Feb 27, 2013 11:52 pm
- Forum: PowerShell
- Topic: WMI GetMultiStringValue question
- Replies: 3
- Views: 2423
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...
- Tue Feb 19, 2013 4:59 pm
- Forum: PowerShell
- Topic: Long pause waiting for prompt to return following query of Windows Event Log
- Replies: 2
- Views: 1821
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
I better get used to using get-winEvent
All the best
Ernie
- Tue Feb 19, 2013 5:31 am
- Forum: PowerShell
- Topic: Long pause waiting for prompt to return following query of Windows Event Log
- Replies: 2
- Views: 1821
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'" -compu...
- Tue Feb 19, 2013 12:45 am
- Forum: PowerShell
- Topic: Cannot load type from command line or script or ISE but can from PowerGUI script editor
- Replies: 6
- Views: 4680
Cannot load type from command line or script or ISE but can from PowerGUI script editor
Looks like one of my heros Mr Thomas Lee has the answer here
http://tfl09.blogspot.co.uk/2010/08/usi ... -with.html
Thanks All
Ernie
http://tfl09.blogspot.co.uk/2010/08/usi ... -with.html
Thanks All
Ernie
- Mon Feb 18, 2013 11:08 pm
- Forum: PowerShell
- Topic: Cannot load type from command line or script or ISE but can from PowerGUI script editor
- Replies: 6
- Views: 4680
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 buil...