Get computers in specific IP range

I am looking for a PS script that will get all computers in a specific IP range (i.e.. 10.10.0.0.). I know how to retrieve the similar query based and AD OU, but I need it based on specific IP range.  

As long as the IPv4Address property is properly populated, you can try:
Import-Module ActiveDirectory
Get-ADComputer -Filter * -Prop IPv4Address | Where-Object { $_.IPv4Address -like "10.10.0.*" }
This takes an extremely long time to execute. Noramlly to make things easier, you would just use the -Filter parameter like so
Import-Module ActiveDirectory
Get-ADComputer -Filter {IPv4Address -like "10.10.0.*"} -Prop IPv4Address
When I run the above command I receive an error that only Eq or Ne are the only operators supported for searching on extended attribute: 'IPv4Address' which I am unsure as to why.
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
Don't Retire Technet

Similar Messages

  • Count records for a specific date range

    Hi,
    I am using BI Publisher with Siebel 8.1.1.1. I have a monthly report where I want to count the number of service requests entered per customer per month.
    I am using the following expression that works for one month:
    <?count(ssServiceRequest[ssSeverity[.='1-Critical'] and xdoxslt:date_diff('d',psfn:getCanonicalDate(ssCreated), xdoxslt:current_date($_XDOLOCALE,$_XDOTIMEZONE), $_XDOLOCALE, $_XDOTIMEZONE) <=28])?>
    However, I want to be able to specify a specific date range for my count, i.e ssCreated >= '01/02/2011' and <= '28/02/2011', as opposed to count for the past 28 days. Can you please advise what syntax I can use to specify a date range?
    Any help will be greatly appreciated!
    Claire

    Hello,
    Many many thanks for your reply.
    I'm doing as you suggest and am using the date_diff to the end of the period in question. I've tried the following to get the number of Service Requests with Severity 1-Critical, created in Jan 2011, feb 2011:
    <?count(ssServiceRequest[ssSeverity[.='1-Critical'] and xdoxslt:date_diff('d', (psfn:getCanonicalDate(ssCreated), $_XDOLOCALE, $_XDOTIMEZONE), '2011-01-31', $_XDOLOCALE, $_XDOTIMEZONE) <=31])?>
    <?count(ssServiceRequest[ssSeverity[.='1-Critical'] and xdoxslt:date_diff('d', (psfn:getCanonicalDate(ssCreated), $_XDOLOCALE, $_XDOTIMEZONE), '2011-02-28', $_XDOLOCALE, $_XDOTIMEZONE) <=28])?>
    In my xml sample data that I'm using I have 2 service requests that mean the criteria for Jan, yet when I run my report I'm getting '0'. The problem seems to be with my end of period date '2011-01-31'. I've also tried with both start and end period date (using a negative value as per your suggestion), but I still get '0':
    <?count(ssServiceRequest[ssSeverity[.='1-Critical'] and xdoxslt:date_diff('d', (psfn:getCanonicalDate(ssCreated), $_XDOLOCALE, $_XDOTIMEZONE), '2011-01-01', $_XDOLOCALE, $_XDOTIMEZONE) <=-31 and xdoxslt:date_diff('d', (psfn:getCanonicalDate(ssCreated), $_XDOLOCALE, $_XDOTIMEZONE), '2011-01-31', $_XDOLOCALE, $_XDOTIMEZONE) <=31])?>
    Many thanks,
    Claire

  • Sync with Outlook ONLY for a specific date range

    I have a Zire 31 that I'm syncing with Outlook via latest Palm Desktop/HotSync.   I did just install the latest conduit.
    I was getting several repeating calendar entries that were not syncing with the Zire (annual birthdays, etc.) - turns out that they did not have an "end-date" specified when created in Outlook.  Creating an end-date solved the problem.
    However - I would like to know if it is possible to specify a certain date range for the device to sync (e.g., sync calendar only for years 2007 through 2050, or in other words sync from 1 year ago to 50 years in future, etc...)
    I recall specifying this once years ago, but I may have been using a third party to sync with Lotus Notes at the time.  I'm wondering if this option is also available with syncing directly with Outlook using HotSync???  I can't imagine it's not, but I can't find where you specify it.
    One more interesting note:  while my Zire 31 had issues syncing those repeating calendar entries - my much older HandSpring Visor Deluxe syncs them no problem!  Go figure.
    Thanks much -
    Post relates to: Zire 31

    I'm not actually looking to purge old items.
    Rather - I would like to ONLY sync calendar entries between a specified range of dates.  For example - ONLY sync for calendar entries between Jan 1 2007 and Jan 1, 2050.
    the problem is that I have some repeating entries (birthdays, etc.) that are set up in Outlook with no end date.  Apparently Palm/HotSync is having trouble syncing these (they don't show up at all - for any year.)
    One resolution is to apply an end-date for each repeating calendar entry.  However, this is just another step my wife needs to remember to do.  If you happen to forget to to this, then Hotsync will ignore that entry.  Fine if you realize that's happening, but if you forget and forget to check - you won't even know it didn't sync!
    The other possible resolution is to only have HotSync sync for a SPECIFIC date range - one that does not presumably go to infinity.  That is my question - how does one sync ONLY for a specific date range.  Has nothing to do with purging old entries.
    Thanks!!
    Post relates to: Zire 31

  • FM to get the date specific structural help

    I am working on structural help for Org id  for a selection screen parameter.
    I am using  FM RH_OBJID_REQUEST. It is giving the structure valid ion today. My requirement is to get the structure valid on given period in the above selection field.
    Please let me know is there any other way(other FM) to get the date specific structural help.

    Pass your dates to ORGBEG     & ORGEND                                                                               
    Description                                                                               
    This parameter only applies to the search function.                                                                               
    The parameters ORGEND and ORGBEG together determine the period in which          
         the organizational assignment data for positions is read. The entry in           
         ORGBEG specifies the start of the search period.                                                                               
    Value range                                                                               
    Allowed values are all dates smaller than the date in ORGEND.                                                                               
    Default                                                                               
    The default value is the smallest system date.                                                                               
    Function Module                                                                      
    ^Saquib

  • Issue with displaying QM control chart for specific date range

    Dear All
    In our chemical mfg organisation, we just implemented SAP QM solution and things are working fine. I have implemented control  chart functionalities as below:
    SPC Criteria in Inspection Plan: Task List Charateristics / Material (0020)
    Sampling Procedure: Fixed Sample / SPC Inspection (without inspection point)
    We use process orders to get the inspection lots for products (material) and record results for the MICs and UD the inspection lots.
    Currently all our Control Chart have status 1 (created) and we have not moved any of those charts to status 3 and 5 yet.
    Using QGC1 when user trying to run control chart for any particular material in the plant and for a specific date range, report showing all the charts for that material with different MICs as expected. Though the result is NOT restricted to the selection dates either against "Lot Created On" or " Insp. Start Date" ( may be due to SPC criteria????) , its always showing all the result for any particular MIC for that material starting from go live till today.
    How to restrict the dispaly of result on the chart for any particular MIC against the Material / Plant within a specific date range ?
    Looking forward for your response.
    Best Regards
    SK

    Hi,
    1. Even though when i give the Created on, and to date the system is displaying the report which is prior to the created on date.
    2. Similarly the report data is different when the field is maximum no of Hits is given. for example when i giving this field as 10, 20, 30, etc the report is showing only 10 line items. if i enter 50, 60 etc it is showing the list for half i given.
    Note that system is having more than 1000 line items to display..
    Regards,
    R. Loganathan

  • Ping Sweep on specific IP range

    Hello!
    I have a question concerning Ping Sweep On IP Range function in LMS 3.2.
    The costumer have MPLS cloud so CDP discovery is not functional.
    There are more then 400 branches.
    I would like to set the specific ip Range like following because the B class mask is to large for discovery process ( ~7,5 day )
    10.31.1-50.0 / 255.255.255.0
    10.32.1-50.0 / 255.255.255.0
    10.33.1-50.0 / 255.255.255.0
    10.34.1-50.0 / 255.255.255.0
    10.35.1-50.0 / 255.255.255.0
    10.36.1-50.0 / 255.255.255.0
    10.37.1-50.0 / 255.255.255.0
    10.38.1-50.0 / 255.255.255.0
    10.39.1-50.0 / 255.255.255.0
    What is the right syntax in this case ?
    Regards,

    Hi,
    i tried the following syntax in ping sweep seed devices.
    10.39.[1-50].240      255.255.255.240
    The log shows the following
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.31.[1-200].240: 10.31.[1-200].240
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.32.[1-50].240: 10.32.[1-50].240
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.33.[1-50].240: 10.33.[1-50].240
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.34.[1-50].240: 10.34.[1-50].240
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.35.[1-50].240: 10.35.[1-50].240
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.36.[1-50].240: 10.36.[1-50].240
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.37.[1-50].240: 10.37.[1-50].240
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.38.[1-50].240: 10.38.[1-50].240
    [Feb 26  12:29:02] FATAL  [PingSweepDiscoveryModule : main initialize]  : getting seed device ipaddress failed10.39.[1-50].240: 10.39.[1-50].240
    How can i strict the ping range for the discovery process???
    Thanks in advance!

  • Unable to get the Text proerty of Range class

    Hi,
    I am using the Text property of Range class for excel template development using VSTO.While reloading the template i am getting the error "Unable to get the Text proerty of Range class".If i skip this line of code,i am getting similar kind of errors while accessing the properties of Range class(like Range.copy() ,Range.Locked, Range.EntireRow.Hidden).In all these cases i am getting the similar kind of error "unable to get the property of Range Class".
    Waiting for a quick response...
    Thanks in advance..

    Hi Besse,
    Actully, the error is coming when i try to populate datatable with the the range values in one of the sheet.
    I am using the below code.
    //"wsInteropMetadata"  is the sheet object.
    //"RangeName" is the range name in the sheet.
    rngConfig = wsInteropMetadata.get_Range("RangeName", Type.Missing);
    for (int iRow = 1; iRow <= iRowCnt; iRow++)
        dRNew = dTMetadataTable.NewRow();
        for (int iCol = 1; iCol <= iColCnt; iCol++)
          rngCell = (Excel.Range)rngConfig.Cells[iRow, iCol];
          dRNew[iCol - 1] = rngCell.Text.ToString();
       dTMetadataTable.Rows.Add(dRNew);
    In the first load of the template,this code is working fine.In the reload i am getting the error at "rngCell.Text".If i see in quickwatch,most of the properties of  "rngCell" object are throwing "System.Runtime.InteropServices.COMException".See the below exception information.
     Exception Information
     Exception Type: System.Runtime.InteropServices.COMException
    Message: Unable to get the Text property of the Range class
    Source: Microsoft Office Excel
    ErrorCode: -2146827284
    Thanks
    Krishna.

  • Can't get to a specific spot on a website. Am being told I have used too many redirects?, Can't get to a specific spot on a website. Am being told I have used too many redirects?

    I am trying to get to a specific spot on a website. I have signed on and can get to all other sections, but when I try to get to this one section I get a message back saying Safari cannot get to that page, too many redirects? Help?

    Clear. Safari, close it and reset your iPad.
    Go to Settings>Safari>Clear Cookies and Data.
    To close an app, drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the Safari app and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • How to get the system specific hardware key.

    Hi all,
        I want to get the System specific hardware key(May be Hard disk related key which is unique for every System.) .Now i need to get it using a java program. if possible send me the related links and sample source code. pls help me out to resolve this issue.
    Regards,
    Kiran.

    hi,
       I can able to get the Mac address of computer using the java program. But when i am running a software called "PCQualifier.exe" i am getting the parameters like "uniqueID" and "unique code". so where and how he is getting those things please help me to get those things using a java programme. Any how i am sending the results that i have got after ruuning PCQualifier.Pls kindly help me out to resolve this issue.
    Computer Name  JAVADEV0005  
    Operating System  Windows XP 5.1 build 2600 (Service Pack 2)  
    Ethernet Details                   Name [00000008] Broadcom NetXtreme Fast Ethernet                   Adapter Type Ethernet 802.3                  
    MAC Address 00:11:25:F2:98:EF   
    Hard Disk Capacity    Total      39.06GB  
                          Used       84 %  
                          Free       6.16GB  
    RAM Capacity    Total      502 Mbyte  
                    Used       69 %  
                    Free       154 Mbyte  
    CDROM Status  CD-ROM Drive Present  
    USB Information   
    Total system supported Ports 0  
    Total Physical Ports 0  
    Total Devices Connected 0  
    Total Free Ports 0  
    Unique ID  5790315021  
    Unique Code  FNVVEFEFHIKO
    Thanks & Regards
    Kiran.

  • BW 3.5 - How can I select TADIR objects in a specific date range?

    Hi everybody,
    I have the necessity to obtain a list of BW objects in a specific date range. I have observed that using TADIR table it is impossible because a timestamp is not present. I have also the necessity to group the BW objects using the object type of the TADIR table (e.g. PROG for Program).
    Any idea?
    Many thanks in advance for your kind support.
    Regards,
       Giovanni

    Hi Giovanni
    I would suggest you try put table TADIR in SE11 and generating a "Where-Used List (CtrlShiftF5)" Also you should try double click on data element SOBJ_NAME in the database view of TADIR and generate a Where-Used List on that field, then you can see the relationships of the table/field.
    I hope this works for you
    Good Luck
    Ben
    Please Assign Points if Useful

  • Deleting emails with in a specific date range

    Is there a way to delete a specific date range of email using 10.9.3 or Gmail. Thanks

    Try making a rule or a Smart mailbox to delete them.
    Rules, Smart Mailboxes, and VIPS

  • Policies on specific time range

    Does Ironport has in the plan to set the policies to be applied in a specific time ranges, like apply a specific policy on morning then set another one at night?
    This feature is in the websense & smart filter and should be there in Ironport

    Moutaz,
    The WSA supports time ranges on versions 5.6.0+. This version is currently available to all customers upon request. The unofficial ETA for the 5.6 release to be generally available is within the next month.

  • CC01 how can i choice a specific number range ?

    Dear
    In trx. OS53 i have defined two different internal number range object for change master  record.
    When I create a new change master how can I choice a specific number range ?
    Thanks.

    Hello,
    If my understanding is correct then its internally in the system for the type - Change master and ECR the change number
    object used is AENNR and where in you can assign a common number range group and it will be used for creating change
    numbers of both these types.It's not as like the production order type where you can link a different number ange for each
    order type.
    In the standard SAP  to set of number range (one internal numbe range and one for external will be assigned) exists.so aaume for CC01 you can make use of the internal number range,where during CC01 without any value for the field change number you can proceed.When creating through CC31 you can make use of external number range by giving the change number as the input and you save the data.
    Hope the information is useful
    Regards

  • How to get Reports for specific User that how many password has been reset using FIM SSPR in FIM 2010 R2 SSPR

    Hi,
    How to get Reports for specific User that how many password has been reset using FIM SSPR in FIM 2010 R2 SSPR
    Regards
    Anil Kumar

    Hello there Anil,
    A simple way to quickly get a overview is to look at the request history within the portal environment (note that this will expire in a few day based on your environment, after that you would need to FIM Reporting Module - but you could increase this to
    maybe 60 days to so, watch the DB size).
    To do this you could create some custom search scopes of do some custom queries. The creator of the SSPR activities always has the same GUID so you can use that so search.
    In your search scope you can use the following XPath to play with.
    - All Password Reset Requests - /Request[Creator='b0b36673-d43b-4cfa-a7a2-aff14fd90522' and Operation='Put']
    - All Completed Password Reset Requests - /Request[Creator='b0b36673-d43b-4cfa-a7a2-aff14fd90522' and RequestStatus=‘Completed']
    You can play with the "RequestStatus".
    Hope this helps.
    Almero Steyn (http://www.puttyq.com) [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or "Helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer
    faster.]

  • I try to sinc. first i get "computers not authorized, would you like to authorize. I do that then it tells me its already authorized.  enter and it starts over.

    I try to sinc. first i get "computers not authorized, would you like to authorize". I do that then it tells me its already authorized.  enter and it starts over.

    Google is amazing...
    http://support.apple.com/kb/HT1420
    also you can:
    To deauthorize all computers associated with your account
    Click iTunes Store in the Source pane.
    If you’re not signed in to the store, click the Account button, then enter your account name and password.
    Click the Account button again (your ID appears on the button), enter your password, and then click View Account.
    In the Account Information window, click Deauthorize All.
    After that start from scratch

Maybe you are looking for