Server 2008 R2 Powershell version 4 cannot use Get-Net* (anything) commands

Brand new to PS here.
I have a new install of 2008R2 and have updated to Powershell 4 by installing Windows
Management Framework 4.0. The system has DotNET 4.5.1 on it as well.
I am trying to run a script for setting IP which is part of the example shown in the following blog:
http://blogs.technet.com/b/heyscriptingguy/archive/2013/01/03/use-powershell-to-deploy-a-new-active-directory-forest.aspx
So far I have run into a brick wall as I am unable to break the code for using the Get-NetAdapter command.
In the example, the following is shown:
  $ipif = (Get-NetAdapter).ifIndex  New-NetIPAddress -IPAddress $ipaddress -PrefixLength $ipprefix -InterfaceIndex $ipif -DefaultGateway $ipgw
When running the script, PS errors with
"Get-NetAdapter : The term 'Get-NetAdapter' is not recognized as the name of a cmdlet, function, script file, or operable program"
I found that by using "$ipif = Get-Command -Module NetAdapter -InterfaceIndex" , I get nothing. When I use the PowerShell ISE, no error
is given either and the Intellisense feature is no help.
I have executed
Get-Module on my system and this is the output:
ModuleType Version    Name                              
            ExportedCommands                                        
Script     1.0.0.0    ISE                                
                   {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}     
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Computer, Add-Content, Checkpoint-Computer, Clear...
Manifest   3.0.0.0    Microsoft.PowerShell.Security              {ConvertFrom-SecureString, ConvertTo-SecureString,
Get...
Manifest   3.1.0.0    Microsoft.PowerShell.Utility                {Add-Member, Add-Type, Clear-Variable,
Compare-Object...}
Manifest   3.0.0.0    Microsoft.WSMan.Management             {Connect-WSMan, Disable-WSManCredSSP, Disconnect-WSMan...
Executing the command
$psversiontable returns the following:
Name                           Value
PSVersion                      4.0
WSManStackVersion       3.0
SerializationVersion        1.1.0.1
CLRVersion                    4.0.30319.18408
BuildVersion                   6.3.9600.16406
PSCompatibleVersions    {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2
I would welcome suggestions, comments and/or pointers for the correct direction in which to travel.
Thanks in advance

another joke from Microsoft...... there are many documents on the TechNet referring to Windows Management Framework 4.0 containing NetAdapter cmdlet... even pointing to the right download location.... but forget to mention that the damn thing does
not work on Windows Server 2008 environment... again... a joke
It's right at the top of the documentation page for the cmdlets.
http://technet.microsoft.com/en-us/library/jj130867.aspx
Perhaps you need to get your eyes checked.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)

Similar Messages

  • Installing a New Windows Server 2008 R2 Child Domain by Using the Command Line

    Installing a New Windows Server 2008 R2 Child Domain by Using the Command Line:
    http://technet.microsoft.com/en-us/library/cc731873%28v=ws.10%29.aspx
    dcpromo /unattend /InstallDns:yes /ParentDomainDNSName:mysite.com /replicaOrNewDomain:domain /newDomain:child /newDomainDnsName:gridview.mysite.com /childName:gridview /DomainNetbiosName:gridview
    /databasePath:"c:\Windows\ntds" /logPath:"c:\Windows\ntds" /sysvolpath:"c:\Windows\SYSVOL" /safeModeAdminPassword:pass1 /forestLevel:4 /domainLevel:4 /rebootOnCompletion:yes
    Error Code:
    The specific argument 'childName' is not recognized.
    I am trying to insert gridview as a childname.

    Hi,
    Before going further, can we try another domain name to see what will happen?
    Besides, if the issue persists, we can try installing a new child domain by using the GUI.
    Installing a New Child Domain by Using the Graphical User Interface (GUI)
    http://technet.microsoft.com/en-us/library/cc771856(v=ws.10).aspx
    Best regards,
    Frank Shen

  • Management Pack for Server 2008 OS Monitoring version 6.0.7296 cannot be installed or downloaded from the catalog

    In our newly installed Operations Manager I'm trying to install the MP's for monitoring Windows Server 2008 OS through the catalog option. Every attempt (including downloading it through the OpsMgr console) fails with the following error:
    Windows Server 2008 Operating System (Monitoring) did not pass the security verification. 
    The management pack cannot be downloaded and the temporary file has been deleted.
    Could not load management pack [ID=Microsoft.Windows.Server.2008.Monitoring, Keytoken=31bf3856ad364e35, Version=6.0.7296].
    This includes the required packs: "Windows Server Operating System Library v6.0.7296" and "Windows Server 2008 Operating System (Discovery) v6.0.7296".
    The only option I found was downloading it directly from the website http://www.microsoft.com/en-us/download/details.aspx?id=9296 but I'm a bit anxious if it can't be downloaded from the catalog. Is this pack revoked? Or could there be something wrong
    in our environment that prevents us from downloading it from the catalog?

    I have the exact same issue - and when I select to download from the catalog, I get an error that the security certificate cannot be verified. I checked it, and it is valid till 2016, so I selected continue and then it works normally. however I do get the
    same list of errors.
    The normal "manual" download is available, and if it was pulled by MS, they would block the download button there too ?
    I downloaded the MP manually and installed it without any issues. same for the sharepoint 2010 MP 14.0.7135.5000 mp. installing via the catalog failed while the manual download was available and works OK.
    (and the weird thing is - I downloaded / installed a few other updates via the catalog fine....)
    System Center Management Pack for Windows Server Operating System (mp download)
    Microsoft SharePoint 2010 Products Management Pack for System Center Operations Manager 2007 (mp download)

  • Is SQL Server 2008 R2 earliest version that can be used for RD Connection Broker in Windows Server 2012?

    I am setting up redundancy for another RD Connection Broker? What is the earliest version of SQL that i can use in Windows Server 2012?

    Hi,
    SQL Server 2008 R2 is listed as the minimum version.  I have not tried earlier versions for use with RDCB.
    RD Connection Broker High Availability in Windows Server 2012
    http://blogs.msdn.com/b/rds/archive/2012/06/27/rd-connection-broker-high-availability-in-windows-server-2012.aspx
    -TP

  • Windows Server 2008 R2 - Trial Version Activation Error

    I downloaded a trial of Windows Server 2008 R2 a few months ago.  I may have loaded the ISO onto another PC for testing, but the testing is no longer active.  However,  I am testing a new environment where I need to load Server 2008 R2 onto
    2 different servers for testing, before I activate.  I will be purchasing keys once my lab is fully functioning if needed.  One Virtual Machine will be moved to a server which will be running Server 2012 R2 Datacenter in the future.
    Back to the problem at hand.  When I try to Activate my Server 2008 R2 copy to get 180 days trial started, it errors out with 0xC004F074.  We don't use a KMS Server, and anything I can find seems to refer to this as an error.  I just need
    to activate a trial version.

    Hi,
    Thanks for posting here.
    Regarding the current issue, please understand this error code appears only during the time of activation when the Software Licensing Service reports that it cannot activate the product key
    since the Key Management Service cannot be contacted. Please follow the steps below to activate the machine again to see if it works.
    1) Open cmd(command prompt) with administrator rights
    2) Type slmgr.vbs –ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (x should be replaced by your 25 digit product key)
    3) Hit enter
    4) Type slmgr.vbs –ato (This will change the product key)
    5) Hit enter
    For details, please refer to the following article.
    Windows Server 2012 and Windows 8 - Activation Error 0xC004F074
    http://www.petenetlive.com/KB/Article/0000766.htm
    How to Fix Activation Error 0xC004F074 in Windows 8 and 8.1?
    http://atechjourney.com/how-to-fix-activation-error-0xc004f074-in-windows-8.html/
    Hope it helps.
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • SQL Server 2008 R2: which version of Visual Studio do I need to keep database projects and SSIS projects in the same solution

    I need to build a solution containing a database project and an integration services project for SQL Server 2008R2.  Apparently, the subset of Visual Studio tools that comes with SQL Server 2008R2 does not include database projects and does not have
    Team Foundation Server support.  Because of those limitations, I am trying to determine which version of Visual Studio will allow me to:
    1. Build a single solution that includes both a database project and an Integration Services project
    2. For the database project, be able to import a database schema from an existing SQL Server 2008 R2 database, do schema compares and update the project from the database and vice versa
    3. For the Integration Services project, be able to deploy the packages to SQL Server Integration Services on SQL Server 2008 R2 (that is, to the msdb database).
    4. Use Team Foundation Server for source control of the whole solution, including both project types.

    Hi G Britton,
    To build a solution containing a database project and an integration services project for SQL Server 2008 R2 and use Team Foundation Server for source control.
     You can choose to install Visual Studio 2008.
    And as you want to utilize Schema compare and/or Data compare functionalities in Visual Studio, you will need to install the
    Visual Studio Team System 2008 Database Edition or Visual Studio Team System 2008 Team Suite.
    In addition, for Visual Studio issues, I would like to recommend you post the question in the
    Visual
    Studio forums to get better support.
    Reference:
    Team Foundation Version Control
    Compare and Synchronize Database Schemas
    Interoperability and Coexistence (Integration Services)
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • When trying to start my Windows server 2008 R2 Data Center, I am getting "ramdisk device creation failed due to insufficient memory",

    I have the following:-
    VMWare workstation version 9 , with windows server 2008 R2 data center installed.
    - I have installed the windows 2008 R2 inside the VM using an iso image.
    - The host is windows 7.
    I use to work well with the VM, but after adding a new VM to the same workstation . I start getting the following error when starting my old VM
    ramdisk device creation failed sue to insufficient memory.
    And on the windows boot manger screen they mentioned to :-
    inset my windows installation dis and restart my PC.
    click “repair your computer”
    but not sure if this will fix the problem , baring in mind that the RAM assigned to the VM
     is 24 GB & 80 GB hard disk.
    The error is 
    Link.
    so can any one advice what is causing this error?
    Thanks

    You might start by checking the RAM.
    http://windows.microsoft.com/en-US/windows7/Diagnosing-memory-problems-on-your-computer
    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.

  • Hi I am trying to install SQL Server 2008 R2 Express edition, I am getting error like "unhandled exception has occurred in your application"

    In that system Microsoft Framework 4.o and 3.5.1 is installed even then i am getting the error then i uninstalled and again installed framework same error occurring.

    Hi Chandra,
    As other post, please help to post the summary and detail logs for analysis.
    Based on my knowledge, the error “unhandled exception has occurred in your application” always happens along with the following message when installing SQL Server 2008 R2:
    “An error occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    or one of its dependencies. The system cannot find the file specified. “
    If you encounter such issue, please perform the following steps to solve it.
    1.Go to your app data directory by going to start > run > %appdata% .
    2.This will by default take you to the "roaming" folder, go up one directory and move into the "Local" folder.
    3. Go to the "Microsoft_Corporation" folder.
    4. Delete the relevant folders from the "Microsoft_Corporation" folder.
    For more details, please review the following blog.
    SQL Server 2008 R2 will not install - Unhandled Exception has occurred in your application
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • "Access Control - Do Not Inherit" Grayed out when setting up a backup on Server 2008 R2 when trying to use remote NAS

    I see one response here:
    http://social.technet.microsoft.com/Forums/en-US/c99eead0-e2fc-4c83-8cb2-959d03512667/server-2008-r2-dc-backup-greys-out-do-not-inherit-option-for-file-share-backup
    But it makes no sense to me. Running that command doesn't do anything.
    How do I make the box stop graying out when setting up a backup with the GUI interface? This should be really simple I would think and for some reason the backup utility is graying out the "Do Not Inherit" option so I can backup to the NAS
    device that has access control enabled in order to backup to the NAS.
    Thanks in advance!

    Hi,
    From this article, it mentioned that it is by design that we cannot choose "do not inherit" in backup schedule when backup target is a remote shared folder.
    Checklist: Schedule Automatic Backups
    http://technet.microsoft.com/en-us/library/cc732540.aspx
    If you use a remote shared folder, make sure that the folder is available, that you have write access to the folder, and that you are a member of the Administrators group or Backup Operators group on the computer hosting the folder. Each time you create
    a backup, it will overwrite the older backups so that you will only have one backup at a time.
    The backup will inherit the access control list (ACL) permissions of the folder.
    For the account it required, as mentioned above, it should be "a member of Admin group or Backup Operators group, and it should have write permission on target folder".
    Also map a network folder as a drive will not help show the mapped drive letter in backup destination. It is still a remote shared folder.
    TechNet Subscriber Support in forum |If you have any feedback on our support, please contact [email protected]

  • Exchange Server 2010 - Problem configuring my server 2008 so my clients can use Outlook to send/receive e-mails

    Hi,
    I am new to the servers and domains stuff. Therefore i have setup succesfully a Server 2008 R2 server with AD, DHCP, DNS roles installed. I configured the roles as i wanted and then i installed Exchange Server 2010 so the clients can use Outlook to send
    receive mails in and out of the domain.
    I can send/receive mails inside the domain (disalfa.com) but i cannot send/receive mails outside the domain. I configured the Exchange properly, i am sure of that. I am 99,9% i did something wrong with the DNS (A records, MX records, etc.).
    Also is there something i must do from the control panel of the site i purchased the domain name and the mails?
    Can someone guide me so i can manage to work this out?
    Server 2008 -  192.168.1.250
    Registered Domain - disalfa.com
    Thank you in advance

    Hi ,
    I recommend you refer to the following article to configure your external mail flow:
    Configure Internet Mail Flow Directly Through a Hub Transport Server
    Prerequisites
    Register MX resource records for all accepted domains in a public domain name system (DNS) server. Consult the documentation of your DNS provider for information about how to register MX records for your domain. Detailed procedures about how to complete
    this step are outside the scope of this topic.
    Configure network gateways to allow SMTP traffic to and from the Hub Transport server. Consult the documentation for your network routers and firewalls for information about how to route SMTP traffic to and from the Hub Transport server. Detailed procedures
    about how to complete this step are outside the scope of this topic.
    Best regards,
    Niko Cheng
    TechNet Community Support

  • Windows itunes 10.7 update break itunes (windows server 2008 x64) older version of itunes works fine

    Hi!
    I just update itunes 10.7 to my (windows server 2008 R2) PC.
    After update it stops to work...
    Itunes just closes when tryning to start.
    I did try repairn installation but status is same.
    Old version was workin fine, how i can fix this?

    windows Eventlog error message:
    Faulting application name: iTunes.exe, version: 10.7.0.21, time stamp: 0x504d85d9
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
    Exception code: 0xe06d7363
    Fault offset: 0x0000b9bc
    Faulting process id: 0x7f0
    Faulting application start time: 0x01cd9776417ddf4b
    Faulting application path: C:\Program Files (x86)\iTunes\iTunes.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: 97b52139-0369-11e2-83a8-6c626d917f87

  • Adobe after effects cs4 trial version, cannot use ,ffx presets.

    i cannot apply and see priview of .ffx presets eg.sound presets.
    plz help

    There is no such thing as a preview for third-party presets. Only the presets that come with AE contain previews and even those do not preview audio, only animation.
    Mylenium

  • Firefox wont resolve any single website anymore. i tried clearing cache, disabling dns prefetching and ipv6, nothing is working, i cannot use firefox for anything anymore. what to do?

    firefox no longer is able to resolve any website. nothing is loading, absolutely nothing. i tried disabling dns prefetching as well as ipv6. i als cleard all my cache and cookies. nothing is working

    firefox no longer is able to resolve any website. nothing is loading, absolutely nothing. i tried disabling dns prefetching as well as ipv6. i als cleard all my cache and cookies. nothing is working

  • Set SPN for a local SQL Server 2008 R2 Express database used for local "Offline Mode" application

    Hi - I have tried searching the web for tips on this situation. Basically, I am trying to recreate a previous employee's client Image. This image is used for one of our companies client application that features and "Offline Mode" where it connects
    (Using Kerberos) to the local DB instead of the central DB server.
    The custom image connects without issue. I cannot seem to recreate his configuration. I am sure of these things:
    - Both images are using the same SQL Server 2008 R2 Express version.
    - Both images have the same user accounts setup.
    - Both images have "Remote Connections" setup with TCP/IP enabled in the Configuration Manager.
    - Both images are joined to the same Domain server currently.
    - Both images has the SQLServer service set to use "NETWORK SERVICE" account.
    This is the error message I get when SQL starts up for the non-working image:
    The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. Failure to register an SPN may
    cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
    Thank you for any assistance given.

    Hi Gribbled,
    Could you please change the SQL Server Service to run under 'LocalSystem' account and restart SQL Server? Then check if the error still occurs. When the SQL Server service account is configured to use the LocalSystem account, the server will automatically
    publish the SPN.
    Alternatively, to work around this issue, you can manually create the SPN for the SQL Server Service account  using the SETSPN tool. For more details, please review this
    blog.
    Thanks,
    Lydia Zhang

  • Get-Hotfix InstalledOn property not returning hotfix installed Date and Time on Windows Server 2008 SP2 but works on Windows Server 2008 R2 SP1

    Hi,
          I am working on a validation script to get the list of hotfixes installed on Domain Controllers every month as part of our monthly DC patching process. I have been successful in getting these details for DC's with (Windows Server 2008
    R2 SP1, Powershell v2.0) using the below command. 
    Get-HotFix -cn $computer | Select-Object PSComputerName,HotFixID,Description,InstalledBy,InstalledOn | where InstalledOn -ge (Get-Date -Day 1 -Format d) | FT -AutoSize
    I execute the above from a jump box with powershell v4.0 (Server 2008 R2)
    However, when I try the same command from the jump box to query DC's with (Server 2008 SP2, powershell v2.0). It doesn't return the InstalledOn date and time. It was giving error for the InstalledOn property and hence I renamed it to $_.InstalledOn. Now
    I don't get error but still no details displayed for InstalledOn property.
    I tried using the below, as could see on few forums that this might resolve the issue. I also tried removing the "where" part but still no installation date returned. 
    Get-HotFix -cn $computer | Select-Object HotFixID, Description, InstalledBy, @{l="InstalledOn";e={[DateTime]::Parse($_.psbase.properties["installedon"].value,$([System.Globalization.CultureInfo]::GetCultureInfo("en-US")))}}
    | where {$_.InstalledOn -ge (Get-Date -Day 1 -Format d)} | FT -AutoSize
    Have tried this locally on the 2008 SP2 DC but still not working. Please advise what is going wrong? 
    Note: If I execute the below command locally on the 2008 SP2 DC, I am getting the InstalledOn output. However, when executed from the jump box with powershell v4.0 (Server 2008 R2) to query
    the same 2008 SP2 DC, it just gives the prompt again without any error or output. This behavior is consistent for other 2008 SP2 DC's in the environment.
    Get-HotFix -cn $computer | Select-Object HotfixID,Description,InstalledBy,InstalledOn | where {$_.InstalledOn -ge (Get-Date -Day 1 -Format d)} | FT -AutoSize

    Hi jrv, I have already tried the Win32_QuickFixEngineering option, which doesn't work either. Apologies for not mentioning the workarounds that I have already tried.
    Get-Hotfix seems to be just a wrapper for Win32_QuickFixEngineering as per the below article. (http://technet.microsoft.com/en-us/library/hh849836.aspx)
    I have seen a mention of using the WU ActiveX control on few forums, but was too lazy to read it through.
    After rigorous testing, it makes me realize that somewhere the Get-Hotfix dates formatting\comparison isn't working. 

Maybe you are looking for

  • How we can block creation of PM order from non released notification

    Hi , how we can block creation of PM order from notification if notification is not released. Regards AM

  • Weblogic examples help?

    I think I have gotten around the javai.dll problem by starting weblogic server from the setenv.cmd and startWeblogic.cmd. Is this right? I am trying to get the example appps to work but tehy won't. It keeps telling me the classes are not found. I hav

  • Scrollbar dilemma

    Hi, I have a Form within a TitleWindow.  The Form contains dynamic inputs (depending on who is using the application).  Sometimes all the inputs fit in the window, other times it requires a vertical scroll bar (on titleWindow) to be able to see all o

  • Manage Links...

    Hi, In Discoverer 10g (10.1.2.3) I use links within parameters to navigate through the sheets in the same workbook. In some cases I use all of the parameters to pass information, and in other cases, I do not use. When I do not use all of the paramete

  • How do I implement SSL to a cloudapp subdomain?

    I am trying to add SSL to http://myserver.cloudapp.net (server name changed for security)  however, when I try to get an SSL cert it tells me that cloudapp.net already has a certificate . How can I add an SSL cert to a subdomain?