Solved

Get-SubNetItems_v1_3.ps1 not running or displaying results

Posted on 2013-01-03
5
805 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
  • 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

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now