Search found 99 matches

by EBrant
Mon Oct 29, 2012 3:21 am
Forum: Windows PowerShell
Topic: Extracting Computer Names (or IP Addresses) from an NT 4 Domain using [ADSI] or Get-WMIObject
Replies: 1
Views: 608

Extracting Computer Names (or IP Addresses) from an NT 4 Domain using [ADSI] or Get-WMIObject

Hello All, Can someone please help me with the following query, I created the following script to produce a hardware inventory of our Windows 2000 AD Domain, the script works fine. I now want to amend this to be able to do the same thing on an NT4 Domain. I presume the WMI elements will be OK, there...
by EBrant
Thu Oct 18, 2012 7:32 pm
Forum: Windows PowerShell
Topic: Select-String not working as expected.
Replies: 3
Views: 1175

Select-String not working as expected.

Thanks very much Jim,

I thought that may be the case, so I tried to ensure it was a literal string using single quotes instead of double. I guess that does not work with Select-String hence the -SimpleMatch parameter.

Thanks again Jim
Ernie
by EBrant
Thu Oct 18, 2012 4:22 am
Forum: Windows PowerShell
Topic: Select-String not working as expected.
Replies: 3
Views: 1175

Select-String not working as expected.

Hello All, Can someone please help me with the following question please why does example 2 and 3 below not work? does Select-String have a maximum number of characters? cls "fred" | Select-String "fred" "CN=xxxxx Service Account, Good,OU=xx-ServiceAccounts,DC=xxx,DC=net10/18/2012 00:00:00" | Select...
by EBrant
Tue Sep 25, 2012 3:11 am
Forum: Windows PowerShell
Topic: And alternative to Posh v3 | out-grid -passthru in Posh v2
Replies: 2
Views: 690

And alternative to Posh v3 | out-grid -passthru in Posh v2

OK thanks Jim, I will check out PowerShell Studio 2012

Best regards
Ernie
by EBrant
Tue Sep 25, 2012 12:30 am
Forum: Windows PowerShell
Topic: And alternative to Posh v3 | out-grid -passthru in Posh v2
Replies: 2
Views: 690

And alternative to Posh v3 | out-grid -passthru in Posh v2

Hello All I need to read in a csv file and display to result to the user, I was therefore thinking about using Out-Gridview. Now the user needs to review the information display and then click OK to act on the information i.e. pass down the pipeline (one way or another) to execute the next step in t...
by EBrant
Mon Sep 24, 2012 5:37 am
Forum: Windows PowerShell
Topic: aligning import-csv -header when using | out-file
Replies: 2
Views: 953

aligning import-csv -header when using | out-file

Hello All I have a problem with output formating. If I have a CSV file called myfile.csv containing for example aaaaaaaaaaaaaaa,bbbbbbbbbbb,ccccccccccccc dddddddd,eeeeeeee,ffffffffffffffffffffffffffffffffff hhhhhhhhhhhhhhhhh,iiiiiiii,jjjjjjjjjjj I then import this import-csv ./myfile.ps1 every thing...
by EBrant
Mon Sep 24, 2012 3:16 am
Forum: Windows PowerShell
Topic: changing out-default to a text file rather than the out-host
Replies: 2
Views: 818

changing out-default to a text file rather than the out-host

Hello Jim

Thanks very much for reply, (appologies lost track of the post, and reasked the same question again).

Thanks again
Ernie
by EBrant
Mon Sep 24, 2012 1:45 am
Forum: Windows PowerShell
Topic: Redirecting Default Out
Replies: 1
Views: 348

Redirecting Default Out

Hello All can someone please assist me with the following question, Is there a way to change default out from out-host to out-file (naming a spacific file) As I do not want any thing to appear on the screen, and I do not want to run as a PS Job. I have tried start-transcript and stop-transcript but ...
by EBrant
Sun Sep 23, 2012 6:44 am
Forum: Windows PowerShell
Topic: changing out-default to a text file rather than the out-host
Replies: 2
Views: 818

changing out-default to a text file rather than the out-host

Hello All, Is there any easy way to change out-default from out-host to out-file If I want to log the all output from a script to a file I can use start-transcript stop-transcript, however the output still appears on the console. If I want to suppress all console output without running as a job can ...