Solved

Save-NetworkSwitchConfiguration powershell

Posted on 2016-08-01
1
28 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now