Solved

Get-SubNetItems_v1_3.ps1 not running or displaying results

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

This article runs through the process of deploying a single EXE application selectively to a group of user.
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

828 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