Solved

Save-NetworkSwitchConfiguration powershell

Posted on 2016-08-01
1
47 Views
Last Modified: 2016-08-02
I am trying to use this powershell command to connect to my switch to back up the configuration. "Save-NetworkSwitchConfiguration"  I have an avaya 4548 pwr switch.
I am supposed to create a cimsession first but I get an error.   any Ideas how I can get this to work.
PS H:\> new-cimsession -computername 192.28.192.254

I get this error message

new-cimsession : The WinRM client cannot process the request. Default authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination
the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more info
on how to set TrustedHosts run the following command: winrm help config.
At line:1 char:1
+ new-cimsession -computername 192.28.192.254
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ConnectionError: (:) [New-CimSession], CimException
    + FullyQualifiedErrorId : HRESULT 0x803381bb,Microsoft.Management.Infrastructure.CimCmdlets.NewCimSessionCommand
    + PSComputerName        : 192.28.192.254
0
Comment
Question by:Roccat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
Jeremy Weisinger earned 500 total points
ID: 41738920
The switch must support OMI and it needs to be configured and enabled. Once you verify that, you can then refer to this post to connect and manage your switch: https://blogs.msdn.microsoft.com/powershell/2013/07/31/dal-in-action-managing-network-switches-using-powershell-and-cim/
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question