What are the netsh cmd line for windows server 2008,2012 ?

Hi
    I am try to config ip,subnet,gateway,preferred and secondary dns using netsh for windows server 2008,2012,
Before Netsh cmd support for all os including Win 8,win 8.1.
I need to config form client machine to server machine using netsh cmd lines,i will try in remote login also like i will give server name,username and password with netsh cmd.Below is sample cmd line,using process i will change ip config.
netsh -r Admin-pc -u admin-pc\administrator -p XXXXX interface ip set address name="Local Area Connection" Static 192.168.0.60 255.255.255.0 192.168.0.1
when i run in windows server using cmd prompt it show error like "some commands line not found in specified file"
This is my code in asp.net using vb
 Dim pip As New Process()
        Dim pipa As New ProcessStartInfo("netsh -r Admin-pc -u admin-pc\administrator -p XXXXX interface ip set address name="Local Area Connection" Static 192.168.0.60 255.255.255.0 192.168.0.1")
        pip.StartInfo = pipa
        pip.StartInfo.UseShellExecute = False
        pip.StartInfo.RedirectStandardOutput = True
        pip.Start()
        pip.WaitForExit()
And if change  ip,subnet and default gateway,internet not work,if i change preferred and secondary dns then only internet work and can browse.
I can change ip,subnet,gateway,both dns is some other way,below is the link
http://www.codeproject.com/Questions/795642/How-to-change-IP-Subnet-Gateway-DNS-Prefers-and-al?arn=0
but what problem is if server is logoff,changes not reflect in server machine,may be it logoff.
So i need is if server is logoff,need to change ip,subnet,gateway and both dns using netsh or some other vb codings in asp,net.I am try to change ip address form client machine also.
Pls reply asap
 Regards
     Aravind 

For the shell scripting I'd try them here.
Scripting forum on MSDN
Scripting Guys forum on TechNet
For the asp.net I'd ask over here.
Microsoft ASP.Net forums
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Similar Messages

  • What is the most powerful books for Windows server 2008 and R2?

    Hi,
    There are many books out there that cover Windows server 2k8 and its R2 successor but i wonder which ones to focus on. In the same time, all books are for one purpose, "Windows Server 2008". Each author has his/her own view on the platform. I don't
    want to read them all just to avoid confusions and complications.
    These are the list of books that i have along with books that i finished reading them:
    Exam 70-640 Configuring Windows Server® 2008 Active Directory® (Finished this)
    Exam 70-642 Configuring Windows Server 2008 Network Infrastructure (Finished this)
    Exam 70-643 Configuring Windows Server 2008 Application Infrastructure
    (Finished this)
    Exam 70-646 Windows_Server__2008_Server_Administrator_Second_Edition (Finished this)
    Mastering_Windows_Server_2008_R2 (Finished this)
    McGraw.Hill.Microsoft.Windows.Server.2008.Administration.Feb.2008
    McGraw.Hill.Microsoft.Windows.Server.2008.The.Complete.Reference.Feb.2008
    OReilly.Windows.Server.2008.The.Definitive.Guide.Mar.2008
    Sams.Teach.Yourself.Windows.Server.2008.in.24.Hours.May.2008
    Sybex.MCTS.Windows.Server.2008.Active.Directory.Configuration.Study.Guide
    Windows Server 2008 Active Directory Resource Kit (Finished this)
    Windows Server 2008 Networking and Network Access Protection (Finished this)
    Windows Server 2008 Unleashed
    Windows Server 2008 R2 Unleashed
    Do you think the unfinished books worth reading?
    Appreciate your help.

    Thank you for the reply. My goal is to read everything (ins and outs) about Win 2008 and R2 platforms before i jump into Win 2012. I have pretty good experience in certain roles in Win 2008 such ADDS and ADCS. As clarified, i've finished a good number of
    books but i want to make sure that i didn't miss a single piece of information that maybe covered in another book.
    Honestly, i find the Technet docs are informative but daunting. On the other hand, books written by authors are more friendly because authors can throw jokes while explaining a certain technology, which makes the reader more attracted to the topic. In addition,
    examples, practices, labbing, and quizzes in the books are more fun.

  • Where can I download the Crystal Run Time for Windows Server 2008 64 bit ?

    Hi,
    Where can I download the Crystal Reports 08 RunTime for Windows Server 2008 64 bit ?
    Rock
    Edited by: Rock_1234 on Aug 5, 2009 9:25 AM

    Thanks all for your replys.
    As I know there is no Crystal Reports 2008 runtimes for 64 bit machines, there are only 32 bit runtimes for that product.So,I need to know when will be the 64 bit runtimes will be released or will be available.
    Also,for the CR bundled with VS 2008 (10.5), there are 64 bit runtimes which you could find on your development machine under -
    ' C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\CRRedist2008_x64.msi '
    When will be 64 bit runtimes for CR 08 will be available?
    Thanks

  • Does the lnkfix_vista.zip work for window server 2008 R2 enterprise ?

    All icons on my exchange 2010 server show as .lnk, any icon I click on starts notepad... does the lnkfix_vista.zip work on Windows server 2008 R2 enterprise ?
    thank you.

    This issue because there is no SPN for the Front End pool FQDN. Rather than adding an SPN I just deleted my front end server from the topology builder and added a new one using the FQDN of the actual lync server and it worked fine.
    Also you can refer below link
    http://howexchangeworks.com/2013/07/creating-central-management-store-fails-while-publishing-lync-2013-topology.html
    Please remember, if you see a post that helped you please click (Vote As Helpful" and if it answered your question, please click (Mark As Answer).

  • What are the Jar files required for Tomcat server of jdev 11.1.2.0.0

    Hello Experts,
    My client wants to just check the adf application on tomcat server
    how do I create a war file and then deploy it into Tomcat server
    and what all JAR files do I require to do it??
    I am using jdev 11.1.2.0.0 and tomcat server is 6.0.35
    Thanks for the help..
    933601.

    https://blogs.oracle.com/dana/entry/how_to_deploy_a_11g_adf_applic_1
    http://docs.oracle.com/cd/B31017_01/web.1013/b28967/deployment_topics012.htm
    Tomcat Extension for JDeveloper is available.
    http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/130355.xml#shay.tomcat

  • Management Pack for Windows Server 2008 Enterprise SP1

    Hello,
    I tried to manage the performance of a Windows Server 2008 Enterprise SP1 (6.0.6001) but SCOM 2007 R2 just check the availability with a ping status.
    I have installed the normal management packs:
    On the same SCOM, I have servers with Windows Server 2008 R2 and they work perfect.
    What can I do?

    Hi Journey Tinoco,
    Performance can be monitored by using the active alerts TAB where a alert / alerts will be triggered based on the default management pack which you have installed / imported or if you have created a custom monitor based on your preference on what performance
    counter you want to monitor on windows server 2008 servers VIA SCOM.
    Or you can pull server performance report specific for Windows server 2008 from the reporting TAB as per the below screen shot for details.
    The one which you are opened is the health explorer view which is not showing much details.
    Go to reporting TAB ===> Select Windows server 2008 operating system monitoring and then What ever appropriate report you need to pull based on your requirement. For example i have pulled a report below for "Operating system performance.
    Over here Click object and select the computer name and the icon should be a Windows serve / Computer as per the icon in my screen shot below. Select the time and date from and to the report you want and dont touch the add object option. Once done click
    the Run button on the left to you will get the report as below.
    Please note: If the below report is what you are looking for is not available in your SCOM's  reporting TAB. Then you have not installed the reporting Management pack for Windows server 2008 monitoring. Download
    it from the below link.
    http://www.microsoft.com/en-in/download/details.aspx?id=9296
    Hope this helps you.
    Gautam.75801

  • Performance Tuning Guidelines for Windows Server 2008 R2 mistake?

    Hi all,
    I'm reading the "Performance Tuning Guidelines for Windows Server 2008 R2" and I think there is same kind of error. At page 53 there is a sub chapter "I/O Priorities" that explain how to handle I/O priorities.
    In the guide it is said that in the registry I have to have a key:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceClasses\{Device GUID}\DeviceParameters\Classpnp\
    Where {Device GUID} I think it is the value I get in device manager under one of my disks -> properties -> details -> "Device Class GUID"
    the trouble is that under the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceClasses\ I've no subkey matching my disk's device class guid! Maybe I'm drunk but I've checked every sub key under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceClasses\
    but neither of them as a subkey named "DeviceParameter"!!
    So am I wrong? 

    Hi Andrea,
    To find the "DeviceParameter", please try to follow the steps below:
    1.Find this registry key and note the DeviceInstance value:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\
    2.Find the device instance registry key under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum" which contains information about the devices on the system and get the device interface GUID:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\<hardware id>\<instance id>\Device Parameters
    I hope this helps.

  • USB Controller Driver (3.0) for Windows Server 2008 Standard Edition 32-bit

    Hi,
    I have recently built a HP DL320e Gen8 v2 server with Windows Server 2008 Standard Edition 32-bit & it's missing the USB Controller Driver which HP don't have. I have searched endlessly online without success. HP suggest I try Windows but I couldn't
    find it in the Download Center either.
    Can somebody please provide me with the USB Controller Driver for Windows Server 2008 Standard Edition 32-bit?
    Regards
    Naz 

    Hi,
    Thanks for your posting.
    For this issue, i think you need to search in the HP official website or contact the HP support.
    Regards.
    Vivian Wang

  • What are the best export settings for a HD video in Premier Pro CS4?

    Hi!
       I've been having so much trouble with this issue and it's something that continually frustrates my boss. I have a HD video the settings for it are
    FPS 23.98
    1920 x 1080, then a few lines down it says 1408 x 792
    16 bit,
    2 channels
    48000 Hz
       What should the settings be when I make a new sequence?
                 When I look at it in the window in Premiere Pro I have to contantly 'shrink' the image to fit the window, is that something I should be doing or does it indicate the sequence settings are incorrect?
    But more importantly what should the export settings be? I exported a 4 minute long video and the size was 1 GB, I know that's too big.
    I need to export it without loosing any quality and export another one that meets the Youtube and Vimeo limits on size.
    Vimeo is 500 MB per week, sometimes I upload 4 videos per week. I think Youtube you can only upload 500 MB at a time.
    I need to get smaller sizes with loosing the least amount of quality possible AND the best export settings for quality, so I guess I have 3 separate questions-
    What are the best sequence settings for HD video?
    What are the best export settings for HD without loosing any quality?
    What are the best export settings for the size to come out around 500 MB with loosing the least amount of quality possible?
    Thank You!
    http://forums.adobe.com/thread/713070
    On the above thread I used the 5th anwer, and it's going to take about 7 hours to export a 4 minute video :/

    It Stands for "Coder Decoder."
    Your format is like a container for your video file. Certain containers can hold certain codecs and not others. Other containers can hold other codecs. Sometimes different containers can hold the same codecs.
    This might be a bad analogy but I'll give it a try.
    A coffe cup (container) can hold pretty much any liquid you drink, where a red solo cup (container) won't hold scolding water. So, the coffe cup would be your container of choice most likely because it has the most options for liquids (codecs). But, you might want a red solo cup for just a single crappy beer at a party (a moderate quality streaming video on the web). In that case, you don't need all the optoins of another container.
    In Premiere Pro CC H.264 is a Container and the Codec in one option. This has been streamlined for web distrobution of video to be played in browsers without things like Flash or special players.
    Were as if you choose the QuickTime Container there are over 40 codec optoins (at least on my machine with additinal ones installed) but you may run into an issue where your browser doesn't support QuickTime playback.
    I would say that your container is for compatability with players and your codec is taken into consideration when looking at the quality of the compression.
    Yesteraday I wrote a blog entery on Exporting from Premiere Pro and found that the MPEG-4 codec inside of the QuickTime container gave me much richer colors than the H.264 container/codec option.
    I posted the link before but here it is:
    http://goo.gl/8GZq4i

  • What are the cause and fix for the following error message? NS_ERROR_FILE_ACCESS_DENIED failure code: 0x80520015

    Every time I close my Firefox browser I receive the following error message (see details below).
    FYI:
    -- I am running the current version of Firefox.
    -- I had no problems with this error message until my computer was recently attacked by 2 viruses:
    ` SystemFix
    ` Win7 Antivirus 2012
    Both viruses have since been cleaned from my computer. However, I am still receiving this error message.
    Here are my questions:
    * What are the cause and fix for this problem?
    * Do I need to uninstall and reinstall Firefox?
    * Is it possible that this error message is related to an add-on and that it has nothing to do with the recent virus attacks?
    I look forward to any feedback and support you might be able to provide.
    Thanks,
    Metta
    Error Message
    NS_ERROR_FILE_ACCESS_DENIED
    Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)
    [nsIFileOutputStream.init]
    File: undefined
    Line: 857
    Stack: undefined

    Every time I close my Firefox browser I receive the following error message (see details below).
    FYI:
    -- I am running the current version of Firefox.
    -- I had no problems with this error message until my computer was recently attacked by 2 viruses:
    ` SystemFix
    ` Win7 Antivirus 2012
    Both viruses have since been cleaned from my computer. However, I am still receiving this error message.
    Here are my questions:
    * What are the cause and fix for this problem?
    * Do I need to uninstall and reinstall Firefox?
    * Is it possible that this error message is related to an add-on and that it has nothing to do with the recent virus attacks?
    I look forward to any feedback and support you might be able to provide.
    Thanks,
    Metta
    Error Message
    NS_ERROR_FILE_ACCESS_DENIED
    Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)
    [nsIFileOutputStream.init]
    File: undefined
    Line: 857
    Stack: undefined

  • What are the video card requirements for running a 23" cinema display

    What are the video card requirements for running a 22" cinema display(clear acrylic case) w/ a PC? My motherbaord is AGP. Thanks to anyone who can help.
    Intel P4 3.0ghz   Windows XP  

    Hi Lionel,
    As a general rule of thumb, the ATI Rage 128 Pro will not support a 20" LCD. That being said, there are reports of it doing just that (possibly the edition that went into the cube).
    I'm not that familiar with the ins and outs of the Cube, so I can't give you authoritative information on it.
    A good place to start looking for answers is:
    http://cubeowner.com/kbase_2/
    Cheers!
    Karl

  • What are the dependent master data for running MRP

    Hi Experts,
                      My client wants to Run MRP After 8 Months of implementation. Now i want to know
    1) What are the Master Data need to be check. They are Using the Strategy 20.
    2) They have confirmed sales order for few customers. Forecast sales orders for few customers.How to map it in sap.
    3) Where will i get Gross Requirement in SAP. Because  MRP run will generates the net requirements.
    4) Is there any report in SAP displays the Forecast values for the selected material.
    Please help me on the above points.
    Thanks
    Satheesh

    HI Vishwa Upadhyay,
                                     Thank you Once again,
    The first point is cleared. Can you please suggest me on the 2,3& 4 points please. What are the configuration settings needed for the different sales order type( i.e.. confirmed and forecast)
    Thanks
    Satheesh.N

  • What are the master data tables for 'Plant'?

    Hi friends,
    What are the master data tables for 'Plant' that contain below data?:
    PLANT
    NAME1
    NAME2
    LANGUAGE
    HOUSE_NUM_STREET
    PO_BOX
    POSTAL_CODE
    CITY
    COUNTRY_KEY
    REGION
    COUNTRY_CODE
    CITY_CODE
    TIME_ZONE
    TAX_JURISDICTION
    FACTORY_CALENDAR
    Thanks a lot!

    Hi,
    Plz try out following tables for your requirement.
    TOO1W
    ADRC
    J_1IMOCOMP
    T001W :  werks TYPE t001w-werks, "PLANT
            name1 TYPE t001w-name1, "PLANT DESCRIPTION
            adrnr TYPE t001w-adrnr, "PLANT ADDRESS NUMBER
    ADRC:  addrnumber TYPE adrc-addrnumber,  "ADDRESS NUMBER
             str_suppl1 TYPE adrc-str_suppl1,  "STREET2
             str_suppl2  TYPE adrc-str_suppl2, "STREET3
             street TYPE adrc-street,          "STREET
             city1 TYPE adrc-city1,            "CITY
             post_code1 TYPE adrc-post_code1,  "CITY POSTAL CODE
             post_code2 TYPE adrc-post_code2,  "PO Box postal code
             tel_number TYPE adrc-tel_number,  "TELEPHONE NUMBER
             fax_number TYPE adrc-fax_number,  "FAX NUMBER
             str_suppl3 TYPE adrc-str_suppl3,  "STREET4
             location TYPE adrc-location,      "STREET5
             city2 TYPE adrc-city2,  
    For Tax Details :
    J_1IMOCOMP :   werks TYPE j_1imocomp-werks,
                              j_1icstno TYPE j_1imocomp-j_1icstno,
                              j_1ilstno TYPE j_1imocomp-j_1ilstno,
    Hope this will help.
    Regards,
    Archana

  • What Are the Exact Basic rules for Replying a Thread...... -:)   @};-

    Hi Experts,
    After Looking into the forums many days I had a small conclusion about forums,
    SAP Forums are better place I have seen for getting a goo dhelp & Knowledge...
    Why can't we make it a BEST Place.
    This is just a small doubt which I would like to clear myself first,
    I have seen many users In the forums asking for a Basic Questions
    When cleared, But still they want to have a Spoon feeding with a Sample Code.
    When Sample Code Given they will provide the original code and requests for Modifications.
    These always looks to me as crazy.
    I have seen somelong time agin by moderators posting that In SCN there will be no SPOON FEEDING.
    I am not sure whether if still this Rule AVAILABLE or NOT.
    Ok if the task is really difficult let them ask again and again,
    And it was not replied, let them repost, I agree with them.
    And How about a User Registered in SDN very long back and asking for a silly question in below thread,
    [Sendin Email to the recipent list -Need correct FM |Getting the address from shipto partner of Bil. item not directly from C.ma]
    This is one more example, really funny, The thread poster needs the solution at any cost, he doesn't require and Suggetions,,, {He Only needs Solution}
    [Radio Buttons |Radio Buttons;
    [Turning Off Debugger |Turning Off Debugger;
    [Regarding Amount in words|Regarding Amount in words;
    There are 100's of threads like this....Everyone knows this facts.
    Check this who answered this one and who replied correct answer, who copied, finally who was rewarded...!
    [how to validate POsting period |Re: how to validate POsting period]
    Now My Real Problem is....!
    User is always intelligent, Only the weakness is in Contributor, trying to help them,..,
    And I openly say that Someone requesting for basic help is not DUMB, But the Contributor replying forgets
    the basic rules " Why Contributing ?"
    According to me It's not the Requestor to see Rules & Requlations before posting the threads,
    But its responsibilty for the Contributing person to see th Rules & Requlations before replying the threads,
    If we follow the rules and stand on a single word or rule or anything there will be Good Result.
    Major Problem is in US not anyone else.
    Example Some one saying search in the forum,,, then please no replies after that...
    But we are very pity hearted again we post the solution,,,
    But it is not at all enough(for cintribtor's)... they will copy the solution and post again by slight Modifications,
    And Some users are having 500,600,700,800 Posts with 0 points, registered long long back.
    They are completly dependent on forums,,, As they goto office and as they eat, The same they open forums and ask Queries...
    They will never realize what they are doing,, and we will never let them improve better...
    Finally Lets Discuss About this and Correct & Suggest me if I am wrong,
    Is my thoughts are going in the right way or not I am not even sure... Please Aslo Correct me if I did any mistakes.
    Thanks & regards,
    Dileep .C
    Edited by: Dileep Kumar Chinnaiah on Apr 29, 2009 12:33 PM
    Title Changed Form
    "What to do when someone asking for Basic Questions" to "What Are the Exact Basic rules for Replying a Threads...... "

    Hi Stephen,
    Very useful Information,
    First tell me a little something about my self...
    After completion of my certification(as a fresher) I was down the streets hunting the job,
    with the insufficient knowledge and being a non-experienced person, I never got one.
    And mean while when I got my "S-UserID", I used to be proud, To say frankly, I registerd in SDN & SAP all at a time, without even knowing what I can do there..,
    When I got a job afterwords I was doing the job and never seen SDN page for many months,
    when I came to know that of we have doubts we can post at SDN. then started requesting help,
    I posted only a little, I didnot got the proper response. on that day I decided,
    still there are some places where we cannot get help on time and there will be people waiting to get help,
    Why cant I put some of my efforts to help others.
    Then I searched some topic by Topic in SDN topic by Topic I used to read threads just for knowledge.
    when I feel my self comfort for contributing, I started contibuting...!
    If you haven't read it, take a look first, so you can understand where things are now.
    I dont know where things are now. But these in this thread I mentioned clearly what I seen from the day I started contributing.
    I searched with the terms of 'Rules for replying', The results are not as I expected, and this link has subject as
    "O SDN, where art thou?" So it dosent hit my in the list.
    Like everybody until a certain stage I am also rushing for points.
    But I most cases I never tried to copy paste answers. If I done some then that is just to point it myself some day,
    I have no hopes or no intrest on the points...! This was discussed with Rob & Matt, at my inital contribution where my points are 36.
    From that day till date I have changed a lot to myself.
    Everyone cannot change like me because they are not like me & And I dont even expect that...!
    I will be online almost 6-8Hrs a day, Not even getting intrest to see the forums just because of the co-contributors.
    My only point is I am just requesting to a co-contributor,
    Clearly In a example : Lets say contributor has replied to a thread, and if you know that is a correct solution,
    please dont reply any more, If you have a better solution than that, then only reply,
    Even there is one reply in the thread not a matter, if correct answer leave that query.
    If still error persists, Show up with your Idea's...
    Dont let down the contributor, by copying his reply and editing and pasting(edit only if incorrect).
    I am just looking for this one exactly to circulate between ourselfs.
    For this we a little support from moderators to circulate(may be as a rule or may be as a mail to them)
    You may say again how many mails we have to send, It dosent matter, one mail to one person one time,
    and +ve factors will show up definetly.
    A real contributor always understand what I am talking about, but some one who hunts for points will never.
    I am really sorry if I am troubling with my doubts & requests,
    If so, Pleae forgive me,,
    Thanks & regards,
    Dileep .C

  • What are the scaling co-efficients for Accelerometer input in Daq-mx ?

    hi
    im using daq-mx to take accelerometer input.
    i want to read the raw data and scale it myslef later.
    i want to know what are the scaling co-efficients for the accelerometer input in daq-mx and what is the process of determining them.
    thanks.

    Rahul,
    I've answered your question in another thread you can check using the
    following link:
    http://forums.ni.com/ni/board/message?board.id=250&message.id=14353
    I hope this helps answer your question.
    Jason

Maybe you are looking for

  • Issue with Refresh link avaiable in standard UWL iView

    Hi All, We have added the custom column "Comment" in the Tasks tab of UWL iView.In the Tasks tab we can view some rows in the table.When we click on one row it is opening the ABAP ADOBe forms.In this Form when we change the text for the field Comment

  • Photoshop Elements 6 online gallery blank pages

    I've created a few online galleries to put on my Windows Home server website. They look good on the local network, but when accessed on my website, the browser pages are usually blank. Sometimes I can get something to show up, but usually not. I disc

  • Sort 'albums' to date order

    I recently upgraded to OS Yosemite X and my photos transferred from iPhotos to Photos. Frankly, Photos is a mess and not user friendly. My problem is that my hundreds of 'iPhoto events' appeared in an 'iPhoto Events' folder within 'Photos albums'. I

  • IPhoto missfonction

    IPhoto freeze at the opening. I did the repair of the library but it freeze often. Also, it happens that IPhoto make the computer to shut down completely. Are these two problems with IPhoto related, and how to solve them ?

  • My MacBook won't install any new Apple applications

    Ok, I have a problem. When I try to install anything from software update it doesn't work. I get messages like the following... "The following install step failed: run preinstall script for JavaForMacOSX10.5Update4. Contact the software manufacturer