Solved

Get-SubNetItems_v1_3.ps1 not running or displaying results

Posted on 2013-01-03
5
828 Views
Last Modified: 2013-01-25
I am trying to run this PS script: http://gallery.technet.microsoft.com/scriptcenter/SubNet-Scan-dad0311f#content

Environment:
Windows 7 Pro SP1, Powershell 2.0

Steps:
PS> ./Get-SubnetItems_v1_3.ps1
PS> ./Get-SubNetItems_v1_3.ps1 -StartScanIP 192.168.1.1 -EndScanIP 192.168.1.254
PS>

However, no response/results return....?

Can someone shed light on this please?
0
Comment
Question by:Lee Seeman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 38741511
It's written as a function.. Simply copy paste the script content in to PowerShell console and press Enter key. Once it return to PS prompt run

Get-SubNetItems -StartScanIP 192.168.1.1 -EndScanIP 192.168.1.254

Or load script file with cmdlet definition. You can do this by typing a Dot, a space, and then the path to the file. There has to be a space between the dot and the file name, otherwise it wont work.

1)
PS>. C:\Get-SubnetItems_v1_3.ps1

2) And next try use function.
PS>Get-SubNetItems -StartScanIP 10.10.10.1 -EndScanIP 10.10.10.254
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 38818413
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
LVL 40

Expert Comment

by:Subsun
ID: 38818414
Sorry to object.. The answer is correct... The requester was running the script in wrong way, I have mentioned the details in my comment..
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Let's recap what we learned from yesterday's Skyport Systems webinar.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question