Solved

Get-SubNetItems_v1_3.ps1 not running or displaying results

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

Create Professional Looking Email Signatures

Create "Professional HTML Email Signatures" with ease.
7 Day Money Back Guarantee if not 100% Satisfied.
Affordable - Try it out for 7 Days Totally Risk Free.
Installers provided for over 45 Email clients.
Both Windows & MAC Supported.
Highly Recommended!

Question has a verified solution.

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

Suggested Solutions

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
A hard and fast method for reducing Active Directory Administrators members.
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…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

752 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