PowerShell: How do I reliably set the IP address on an interface when the interface is not connected ?

Hello all,
I am in a bit of a bind - no pun intended.  I would like to know how to reliable set the persistent IP address of an interface that may be disconnected when the address is set.  I can set an address and it will be stored in the ActiveStore but
that does not really help if I need it next time I reboot.  I have tried using netsh and WMI but they don't seem to create a persistent address on the disconnected interface.  Now if I us ncpa.cpl I can do it all day long so it must be possible.
 In fact if I do it that way the registry settings change. So, I figured I would go that route (modifying the registry) but, alas, that does not work either - upon reboot the address shown in the interface properties show a blank IP address, gateway,
and netmask.  It is interesting that it is using a static address though. 
Thanks for your help
Robert
Robert Thompson

Look in the Gallery for numerous examples of setting a static address on an interface.
http://gallery.technet.microsoft.com/site/search?query=static&f%5B2%5D.Value=static&f%5B2%5D.Type=SearchText&f%5B0%5D.Value=networking&f%5B0%5D.Type=RootCategory&f%5B0%5D.Text=Networking&f%5B1%5D.Value=clientside&f%5B1%5D.Type=SubCategory&f%5B1%5D.Text=Client-Side%20Management&ac=2
¯\_(ツ)_/¯

Similar Messages

  • Hi i use iphone 4 with iso 6.1.3!! Am not getting an option to register my phone number in imsg!! Am just getting an option to set my email address for sending and receiving the imsgs!! How do i register my phone number??

    Hi i use iphone 4 with iso 6.1.3!! Am not getting an option to register my phone number in imsg!! Am just getting an option to set my email address for sending and receiving the imsgs!! How do i register my phone number??

    Hello Nikkii,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Troubleshooting telephone-number activation (iPhone only)
    After each step, toggle FaceTime and iMessage off and then on in Settings > Messages and Settings > FaceTime.
    Update to the latest version of iOS.
    Ensure that your iPhone is set to the correct time zone. Tap Settings > General > Date & Time.
    Note: If Set Automatically is on but the incorrect time zone is displayed, turn Set Automatically off and then choose the correct time zone, date, and time. Then turn Set Automatically on again.
    Ensure that FaceTime has not been restricted: Settings > General > Restrictions > FaceTime.
    Verify that you can send SMS messages. You need a valid SMS messaging plan to activate FaceTime.
    Contact your carrier to verify that there are no restrictions or blocks on text messages. Blocks on text messaging will prevent iMessage and FaceTime registration.
    If you are unable to activate iMessage or FaceTime on a device after remote wiping it, wait at least 24 hours and try again.
    If "Waiting for Activation" is displayed, leave FaceTime and iMessage enabled for 24 hours. Toggling FaceTime or iMessage off and on will cause the registration process to start over.
    Best of luck,
    Mario

  • How do you "pause" an open application, like Mac automatically does when the memory is full?

    How do you "pause" an open application, like Mac automatically does when the memory is full?
    I would like to do so proactively when I am not using a certain program but need to keep it open, and I want to free up computer resources.
    In other words, I want to keep a given program open, but stop it from "thinking".

    There is an application that I can only open a set number of times before it expires.  Every time the program closes, you get one less use out of it.  I want to use it as long as possible, so I thought I would just keep it open all the time.  However, it consistently turns on the fan on the computer, so I imagine it uses a lot of resources.  I got the idea after the Force Quit program "paused" it once after getting overloaded with all the apps I had open.  It stopped the fan, and I was able to open it and run it again later with no problems.  The tricky thing with trying to intentionally overload the system is that it's a hit or miss on which open program the OS will pause (to my knowledge).

  • How do I import addresses from Address Book Ver 4.1.2 to the Lion Address Book version 6.1? Lion will not allow me to open Address book Version 4.1.2

    How do I import addresses from Address Book Ver 4.1.2 to the Lion Address Book version 6.1? Lion will not allow me to open Address book Version 4.1.2 to get to the addresses to copy

    Do you have any addresses in the Lion version?
    If not, copy the AddressBook folder from your username/Library/Application Support/ folder on the old mac (or backup).
    Copy it to the same location on your new Mac, replacing the one that is there. Start Address Book in Mountain Lion and it should convert the files to the correct format.
    If you do have addresses, it is a little more complicated.
    First, create a Contacts Archive (from File>Export menu). This will be your backup.
    Next, export the current contacts as vCards.
    Then, follow the steps above.
    Then, import all the cards you exported. If you select all and double-click, it will ask if you want to add them. You'll then have to add them to whatever groups you had set up.

  • I lost power to my MacBook Pro before I had saved anything that I was working on...usually I plug my computer it and power it back on and the documents pop right back up when the computer turns on. That did not happen this time.How can I recover this data

    I lost power to my MacBook Pro before I had saved anything that I was working on...usually I plug my computer it and power it back on and the documents pop right back up when the computer turns on. That did not happen this time. How can I recover my documents?

    If you never saved, auto save does not kick in.
    Peter

  • Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How do I verify my iCloud account when the email address apple wants to send the instructions to no longer exists?

    How do I verify my iCloud account when the email address Apple wants to send the instructions to doesn't exist?  I know I need to change the email account associated with iCloud but there doesn't seem to be a way to do so.  Any help would be greatly appreciated!! 

    Did you create an entirely new ID or did you just change the Gmail address to a new email address on your existing ID?

  • I have an iCloud email address on my iMac. How can I create an icloud email address for my wife on the same computer?

    I have an iCloud email address on my iMac. How can I create an icloud email address for my wife on the same computer?

    If all you want is an additional email address you can create up to three 'email aliases'  - these are additional addresses (not accounts) which deliver into the same inbox as the main account.
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account, move it to another account, or reactivate it if you delete it.
    More information on aliases here:
    http://help.apple.com/icloud/#mm6b1a490a
    If you want to keep her email separate from yours she will need to create a new Apple ID, and use it to create a new iCloud account either on a separate computer or on a separate User Account on your Mac.

  • How can i add a special user to the "site collection administrators" of the personal site on sharepoint online when the personal site is creating ?

    when a new personal site is created on the sharepoint online 2013, then the administrator of this personal site will be himself. we can add another person to the "site collection administrators", then this person have full control of this personal
    site.
    but my request is : add this personal to the personal site when the personal site is creating, but not after the personal site has created ?
    Is anybody know how to do that?

    Hi,
    According to your post, my understanding is that you want to add a special user to the "site collection administrators" of the personal site on sharepoint online when the personal site is creating.
    Per my knowledge,
    there is no out of the box way to accomplish this with SharePoint.
    This is a forum which is supported for SharePoint On-Premise.
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • I have a 4s iPhone which I loaded the new Os on last night. Now I can not connect to iTunes. A message comes up saying i need 10.6.3 or later but I am running 10.6.1 as I have an older Mac. Anyone have ideas how to get this to work?

    I have a 4s iPhone which I loaded the new Os on last night. Now I can not connect to iTunes. A message comes up saying i need 10.6.3 or later but I am running 10.6.1 as I have an older Mac. Anyone have ideas how to get this to work?

    Its not telling you to update your iPad, its telling you you need to download a recent version itunes on your computer.
    Go here to download the newest version of iTunes.
    http://www.apple.com/itunes/?cid=OAS-US-DOMAINS-itunes.com

  • In Acrobat, I wrote a script to turn fields gray if a checkbox was checked. How can I get it to reset to white (or clear) when the reset form button is clicked?

    In Acrobat, I wrote a script to turn fields gray if a checkbox was checked. How can I get it to reset to white (or clear) when the reset form button is clicked?

    Thank you so much for your reply . . . but . . . I should have shared my original script with you -- it was a little more complicated than I led you to believer. I was triggering a group of text fields to become disabled as well as gray. Below is the original script so that when the checkbox is checked, it causes several "Co" fields to be disabled and gray.
    // Mouse Up script for check box 
    // If checked, certain fields should be disabled 
    var f_prefix = "Co"; 
    // Get a reference to all of the "Co" fields 
    var f = getField(f_prefix); 
    // Reset the Co fields 
    resetForm([f_prefix]); 
    if (event.target.value === "Off") { 
        // Enable the Co fields 
        f.readonly = false; 
        f.fillColor = color.transparent; 
    } else { 
        // Disable the Co fields 
        f.readonly = true; 
        f.fillColor = color.gray; 
    To recap -- my goal is to get those gray fields to revert to transparent if the form is reset. I'm willing to create my own custom "Reset Form" button but I'm not sure I understand how that would look. Wouldn't it be quite lengthy? I think I'm having a brain freeze -- can't figure it out!

  • Despite ticking the box "remove all website data", when I reset Safari not  all stored cookies are eliminated. How can I overcome the problem? Or is it a bug?

    Despite ticking the box "remove all website data", when I reset Safari not  all stored cookies are eliminated. How can I overcome the problem? Or is it a bug?

    I have done a little experimenting: 1-close all open windows (I found that I had to do this step in order to keep Safari from hanging-will be explained later). 2: Remove all data in Prefs. 3: Immediately close the prefs window (no window should be open at this point) and quit Safari. Try to complete step 3 fast as possible; I have it down to a few seconds. The reason I urge you to close all windows is that Safari hangs until forced to quit upon immediately quitting after removing cookies. I think the auto page reload in Lion is the cause of these hiccups but I can't be sure about that. The hasty quit I found is crucial to success. Don't know why that is but it could prevent the data from re-populating. A quick flush, if you will.  Hit me back if you need any of my suggestions clarified; a bit wordy, I know

  • Why is my iPhones volume silent only between the hours of 8pm and 7am when the night selection isn't selected? How can I fix my iPhone 4 problem?

    Why is my iPhones volume silent only between the hours of 8pm and 7am when the night selection isn't selected? How can I fix my iPhone 4 problem?

    May be you have turned the DO NO DISTURB in your iphone settings.
    Check as below DND settings
    Settings>>Do Not Disturb
    If you are iPhone is on version iOS 5.X there was a bug which does not let the DO NOT DISTURB function properly.
    SO, its better you to latest iOS version 7.0.4, no other versions of iOS are signed by APPLE hence forth.

  • I can´t set the control panel iCloud. PC writes this: you can not connect because the server error occurred. What´s matters?

    I can´t set the control panel iCloud. PC writes this: you can not connect because the server error occurred. What´s matters?

    Whenever I log into icloud.com
    Using what version of which browser?
    iCloud.com requires Safari 6 or later, Firefox 22 or later, or Google Chrome 28 or later. Have you tried all of those?
    If you have, have you tried clearing your browser cache and cookies?
    For the first tine since 1989 I'm thinking about buying a PC.
    You'd have exactly the same problems on an 8 year old PC too. It's a bit unreasonable to expect such an old Mac to continue to be compatible as software is constantly updated.
    Saying that, I'm still able to access iCloud.com successfully in Safari v5.0.6 on a PowerPC Mac running Mac OS X 10.5.8, so the problem you're having is likely to be a browser issue, not something inherently wrong with the computer.
    Since all this crap started, Mail won't download my Mac.com or me.com email.
    The iCloud.com website is totally unconnected to Mail's ability to download email via IMAP. Have you checked the mail server settings are correctly setup and up-to-date?

  • How to automatica​lly disable the wireless interface when the LAN interface is connected

    Hi,
    Is there a way to automatically disable the wireless interface when the LAN interface is connected on  R61s and X61s?
    Thank you!

    Hi,
    Thanks for the answer. I'm trying to deploy the profile that I've created on all my laptops. But i'm facing an issue for a while.
    When the profile is deployed on a laptop, Access Connections finds a new ethernet port and asks to assign it a profile. But the problem is that Access Connection don't allow me to assign it to my wired profile, only to my wireless profile and that doesn't make sens to me. Besides, it is written in the dialogue box that ethernet profiles are disable for the match of the new port...
    Is there any way to assign the new port to the new profile without human interaction or just how to make the wired profile available when access connection is launched and find a new ethernet connection
    Thanks in advance!

Maybe you are looking for