Script VBS IP Query to determine office/site location

Hi Guys,
I'm in desperate need of a VBS that can query an ip address which will determine location.
Example
Bristol office 192.67.0.46
Cardiff Office 192.67.2.40
Newcastle 192.67.23.1
So if a computers IP address falls within 192.67.0.1 - 192.67.0.255 we will know this device is in Bristol..
 If a computers IP address falls within 192.67.2.1 - 192.67.2.255 we will know this device is in Cardiff..
Once location is identified tell the script to goto Cardiff/Bristol/Newcastle section of script.
Hope this makes sense.
O

This is an End User forum for peer-to-peer discussions about the Windows 7 operating system.
VBS discussions are address in the appropriate application development MSDN Community.  You can find the link @
http://msdn.microsoft.com/en-us/library/t0aew7h6%28v=vs.84%29.aspx
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

Similar Messages

  • How can I determine what sites are being referenced within Central Admin Upgrade and Migration Manage Databases Upgrade Status?

    When I go to Central Admin > Upgrade and Migration  > Manage Databases Upgrade Status, I have 2 content databases which have the status:
    Database is up to date, but some sites are not completely upgraded.
    How can I determine which sites are not completely upgraded?

    Manage Databases Upgrade Status will provide you all active and offline DB details, you can get same result
    using below PowerShell cmdlet.
    Get-SPDatabase and Get-SPContentDatabase will provide all active database/Content DB in Farm which include Service application db, central admin DB.
    Get-SPDatabase | Format-Table Name, ID
    Coming back to your question, if you find that there are some site are not completely upgraded then run below command and understand the cause if issue on specific DB.
    Test-SPContentDatabase WSS_ContentDB_Name
    If you find any missing file issue in DB then resolve these issue to upgrade content database.
    (verify all customizations referenced within the content database are also installed in the web application. This cmdlet can be issued
    against a content database currently attached to the farm, or a content database that is not connected to the farm )
    Use the Upgrade-SPContentDatabase cmdlet
    to resume a failed database upgrade or begin a build-to-build database upgrade against a SharePoint content database
    Upgrade-SPContentDatabase WSS_Content
    reference:
    http://technet.microsoft.com/en-us/library/ff607813(v=office.15).aspx
    http://technet.microsoft.com/en-us/library/ff607941(v=office.15).aspx
    If my contribution helps you, please click Mark As Answer on that post and
    Vote as Helpful
    Thanks, ShankarSingh(MCP)

  • Configuring AD Sites and Services best practice for multiple office site ?

    Hi People,
    Can anyone here please suggest me or share the link of what is the best practice in configuring the AD Sites and Service for single AD domain with multiple office sites ?
    I'd like to know more about the number and the direction of the connection between Domain Controllers in one site to the Data Center and vice versa.
    Thanks.
    /* Server Support Specialist */

    Hi People,
    Can anyone here please suggest me or share the link of what is the best practice in configuring the AD Sites and Service for single AD domain with multiple office sites ?
    This series can be useful:
    Active Directory Structure Guidelines – Part 1
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • DiscoverSQL2005DBEngineDiscovery.vbs : The Query 'select * from __NAMESPACE where Name ='ComputerManagement'' returned an invalid result set.

    hi
    I am keep receiving this message in central administration running server in event viewer
    DiscoverSQL2005DBEngineDiscovery.vbs : The Query 'select * from __NAMESPACE where Name ='ComputerManagement'' returned an invalid result set.  Please check to see if this is a valid WMI Query.. Object required
    adil

    Hi adil,
    It seems to be not related to SharePoint issue, I find a similar error post from Operations Manager forum you can take a look
    Also another below article of basic troubleshooting of discovery scripts for your reference.
    And for the further better assistance regarding this issue, you may want to post Operations Manager forum here.
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/21e9de85-5cbc-4217-8d9b-921e13dc88dc/sql-mp-issues-with-discovery-vbs-scripts?forum=operationsmanagermgmtpacks
    http://blogs.technet.com/b/kevinholman/archive/2010/03/09/basic-troubleshooting-of-discovery-scripts.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Need help with Query to determine Credit Memos and Invoices

    Hi All
    Thanks for all the help here.
    I need a query to determine any credits or invoices issued within a given period.
    OINV and ORIN with UNION ALL?
    Please advise any help.
    Thank you!

    Hi Daniel,
    Please check below Query.
    SELECT T0.[DocNum] as 'Invice No', T0.[DocDate] as 'Invoice Date', T0.[CardName] as 'Invoiced Customer', T3.[DocNum] as 'Credit Memo No', T3.[DocDate] as 'Credit Mamo Date', T3.[CardName] as 'Credit Memo Customer' FROM OINV T0  LEFT JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry] LEFT JOIN RIN1 T2 ON T2.[BaseEntry] = T1.[DocEntry] AND T2.[BaseLine] =  T1.[LineNum] LEFT JOIN ORIN T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE T0.[DocDate]  >=[%3]  AND   T0.[DocDate] <=[%4]
    Hope this helps
    Regards::::
    Atul Chakraborty

  • Query to determine GL segment qualifiers

    I need a query to determine which of the GL segments is the natural account, cost center, balancing, and intercompany segments. Can someone tell me which table and columns these segment qualifiers are stored?
    Thanks in advance

    how about R12? what is the table name?
    i use the same table, but doesn't look like it is.
    i create a new value in the GL account (flexfield), set the qualifier and query:
    select * from FND_SEGMENT_ATTRIBUTE_VALUES   where creation_date>sysdate-1
    no records retrieved.

  • Determining what site(s) has not refreshed from master database

    Is there a way to determine what sites have refreshed at the master level ? Is there a system table or v$view that contains this information ?
    I have a master read-only snapshot setup with an oracle 8i master and oracle 8.04 snapshot sites(54). I want to prevent my mlogs from getting too large and determine which sites have not refreshed as an aid to keeping the system healthy.
    Any hints/help/pointers to documentation will be greatly appreciated !
    Thanks in advance !
    Darrell

    hi
    Working with flex involves learning at least 2 languages, the
    flex language both mxml and actionscript and usint it in a
    combination, but to have a dynamic site you also need to know a
    backend language like C# or VB.NEt, PHP , also is useful to know a
    little about Databases, because if you want a dynamic site it will
    involve data for sure and where do youget data from? A database.
    You will build much of your site in actionscript that is a certain,
    because mxml is very good but itself is not sufficent to do
    everything you want.

  • Query to determine what inventory org a user or person belongs to??

    I feel silly for asking this, but it's not obvious to me - does anybody have a query to determine what inventory org a user or person belongs to? I assumed there would be a simple join to hr_locations, but I'm not finding it. I'll check TRMs next, but I don't see a FK in fnd_users or per_people_f...so it might be more complicated than I thought.
    11.5.9 by the way...
    Thanks!
    Scott

    What I mean is,
    Where can I know the update capabilities for a Form or a function
    I was asked by my manager to make a report to input the UserName so that the output displays the UserNmae and its associated Responsibilities and the Menu prompts registered with the responsibility(Tree Structure) and the User Form Name and User Function Name and the Update Capabilities.
    For the Update Capabilities I have to display 'Yes' if the form/function has update capabilities or not.
    And have to check whether it has Job Scheduling Capabilities or not.
    For this (Update Capabilities), which tables I have to refer?
    Thanks.

  • Can I query to PowerShell scripts from Power Query ?

    Can I query to PowerShell scripts from Power Query ?
    I want to use PowerShell result for Data Visualization in Excel.
    Like importing from web, odata, hdinsight, etc,
    I want to import result of PowerShell script.
    PowerShell can do a lot of system management.
    Regards,
    Yoshihiro Kawabata 

    This is not possible today and is not something that's likely to be implemented. The combination of being able to easily share queries and being able to easily launch external scripts that can do anything supported by the current user's permissions is
    something of a security nightmare.

  • Query to create supplier site

    What is the query to create supplier site? I have to create 500 suppliers sites for a project, how do i do it? What is the query?

    Oracle provides a number of APIs to create such data.
    For your task, you can use the supplier api.
    See sample code at http://oracleapps88.blogspot.com/2011/09/supplier-supplier-site-creation-using.html
    Since you have to create only the sites, you can skip to supplier creation steps in the above website.
    Sandeep Gandhi

  • How to identify the bill-to-site location for a customer

    Hi All,
    How to identify the bill-to-site location for a customer.
    I want to determine the language output of the AR invoice report based on the bill-to site address.
    If the bill-to site is located in Sweden, the document should be in Swedish. If the bill-to site is located outside of Sweden, the document should be in English.
    I have defined a query but not able to identify from which column I can identify the bill-site-location.
    select --a_bill.org_id,party_name,account_number,a_bill.CUST_ACCT_SITE_ID
    from
    apps.hz_parties party
    ,apps.hz_party_sites party_site
    ,apps.hz_cust_accounts b
    ,apps.hz_cust_acct_sites_All a_bill,
    apps.hz_locations loc,
    apps.hz_cust_site_uses_all u_bill,
    apps.ra_customer_trx_all trx
    where party.party_id=party_site.party_id
    AND a_bill.party_site_id = party_site.party_site_id
    AND b.party_id = party.party_id
    AND loc.location_id = party_site.location_id
    AND u_bill.cust_acct_site_id = a_bill.cust_acct_site_id
    AND trx.bill_to_customer_id = b.cust_account_id
    AND trx.bill_to_site_use_id = u_bill.site_use_id
    Thanks,
    Joohi

    Hi ,
    Check this apps.hz_cust_site_uses_all here site_use_code will be there , you can find Bill_To Ship_to , from there you can find the site_use_id and location Id
    Thanks
    Shagul

  • Can't open office files located on a windows server fileshare

    Hi TechNet / Office for Mac Community,
    re: can't open MS Office files located on a windows server file share
    Is anyone else experiencing this issue and/or have a fix?
    Details:
    Clients: Mac OS X 10.6 / 10.7 / 10.8 / 10.9
    File share: Windows Server 2008 R2
    Connecting via SMB or CIFS
    Problem:
    When mounting the Windows Server file share, Mac clients are unable to open MS Office 2011 files (not just powerpoint) from that location.
    Error message: "there was an error accessing /Volumes/data/folder/presentation.pptx"
    There is no issue creating or deleting MS Office files from that location. 
    The Mac 'Preview' application is able to open the same MS Office file without issues.
    The file is not corrupted and can be opened when copied to the desktop.
    Windows clients have no problem opening the file.
    Only this particular file share is having an issue.
    Are there any known issues or requirements for Windows Server file shares and MS Office 2011 that would apply to this problem?
    Your assistance is greatly appreciated.

    WebPhoenix, recommend you post this question here instead:
    http://answers.microsoft.com/en-us/mac
    Thanks,
    Mike
    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is a standard response I’ve written up in advance to help many people (thousands, really.)
    who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support

  • Batch Determination at Storage location Level

    Dear All,
    I have one question on batches when I am entering stock against batches in Outbound Delivery Note (as batch split ) the batch determining the storage location is different not the one which it belongs to, I need the batch stock should be determine in same storage location not the different one.
    For example: I have 5 storage locations, each storage location contain 5 to 6 batches;
    Storage Location: WO1, WO2, WO3, W04 AND WO5
    Batches: A1,B1,C1,D1,E1 etc.
      Stor. Loc    Batches
    1. W01:             B1, B2, B3, B4, B5, B6
    2. W02:             A1, A2, A3, A4, A5
    3. W03:             C1, C2, C3, C4, C5
    4. W04:             D1, D2 D3, D4, D5
    5. W05:             E1, E2, E3, E4, E5
    I. If I enter B1 and stock 10kg then it automatically determining storage location as W02. Actually it belongs to storage location W01 it should be the same W01only
    II. If I enter C1 and stock some 15kg then also it automatically determining storage location as W02. Actually it belongs to storage location W03 it should be the same W03.
    Kindly give me the solution.
    Thanks in advance
    Regards,
    MH

    Clsing due to no reply

  • ATP and Route Determination at Storage Location Level

    Hi Experts,
    I'm working on a project currently and one of the requirements is to have ATP and Route Determination at Storage Location level. I know SAP standard for this is at plant level but was wondering if anyone has had this requirement before, and if so what course of action they took to solve this issue.
    Any help would be greatly appreciated.
    Thanks,
    Mark

    Hi Mark,
    in my previous project we have a customized table created for all the route determination and used mv45afzz move field to vbap to determined the route.
    not sure if there is a easier solution but at least it is doable through customization for sure.

  • Purchase info record for PO determine by Storage location

    Dear Guru,
    Can you please advice when during the creation of PO, is there possible to determine the Purchase info record by the Purchasing Org, material, Vendor as well as "Storage Location".
    Reason,
    Sometime we need to raise the PO those customer who will be exempted from the governamt VAT or duty which the goods has to delivery to the country Bonded warehouse.
    I created 2 Storage location;
    1.) 1000 for general WH
    2.) 2000 for Bonded Wh
    So i would like to know if we can create 2 different info record determine by Storage Location?
    Thank you very much,
    Regards
    Chee Wee

    Hi
    In Standard SAP it is not possible

Maybe you are looking for