- 修复RouteService中错误过滤home路由的问题 - 后端现在正确返回所有用户有权限的路由 - 添加设备管理相关功能(列表、在线监控、电源管理、远程监控) - 添加详细的修复文档和重启脚本 - 更新权限配置脚本 问题根源:后端代码中有逻辑会过滤掉home路由,导致前端收到空数组,无法生成菜单 解决方案:移除过滤home路由的逻辑,让后端返回所有有权限的路由
115 lines
2.9 KiB
C#
115 lines
2.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Management.Automation;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
|
|
namespace Intel.Management.PSModule.Amt
|
|
{
|
|
public class AmtDriveParameters
|
|
{
|
|
public AmtDriveParameters()
|
|
{
|
|
_computerName = "localhost";
|
|
_vendorName = string.Empty;
|
|
_appnName = string.Empty;
|
|
_uuid = Guid.Empty;
|
|
_certName = null;
|
|
}
|
|
|
|
|
|
[Parameter(Mandatory = false, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true,
|
|
HelpMessage = "Hostname, FQDN, or IP Address")]
|
|
public string ComputerName
|
|
{
|
|
get { return _computerName; }
|
|
set { _computerName = value; }
|
|
}
|
|
|
|
|
|
[Parameter(Mandatory = false, Position = 1, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true,
|
|
HelpMessage = "Amt Client Certificate")]
|
|
public String CertificateName
|
|
{
|
|
|
|
get { return _certName; }
|
|
set { _certName = value; }
|
|
}
|
|
|
|
|
|
/*[Parameter(
|
|
Position = 2,
|
|
ValueFromPipeline = true,
|
|
ValueFromPipelineByPropertyName = true)]
|
|
[CredentialAttribute]
|
|
public PSCredential Credential
|
|
{
|
|
get { return _credential; }
|
|
set { _credential = value; }
|
|
}*/
|
|
|
|
|
|
[Parameter(Mandatory = false,
|
|
HelpMessage = "Use Transport Layer Security")]
|
|
public SwitchParameter TLS
|
|
{
|
|
get { return _useTls; }
|
|
set { _useTls = value; }
|
|
}
|
|
|
|
[Parameter(Mandatory = false,
|
|
HelpMessage = "Accept Self-Signed certificate (skips any certificate checks)")]
|
|
public SwitchParameter AcceptSelfSignedCert
|
|
{
|
|
get { return _acceptSelfSignedCertificate; }
|
|
set { _acceptSelfSignedCertificate = value; }
|
|
}
|
|
|
|
[Parameter(Mandatory = false,
|
|
HelpMessage = "treat the Password as a Digest Master")]
|
|
public SwitchParameter AsMaster
|
|
{
|
|
get { return _asMaster; }
|
|
set { _asMaster = value; }
|
|
}
|
|
|
|
[Parameter(Mandatory = false)]
|
|
public string Vendor
|
|
{
|
|
get { return _vendorName; }
|
|
set { _vendorName = value; }
|
|
}
|
|
|
|
[Parameter(Mandatory = false)]
|
|
public string Application
|
|
{
|
|
get { return _appnName; }
|
|
set { _appnName = value; }
|
|
}
|
|
|
|
[Parameter(Mandatory = false)]
|
|
public Guid UUID
|
|
{
|
|
get { return _uuid; }
|
|
set { _uuid = value; }
|
|
}
|
|
|
|
|
|
bool _acceptSelfSignedCertificate = false;
|
|
bool _useTls;
|
|
bool _asMaster;
|
|
//PSCredential _credential;
|
|
string _certName;
|
|
|
|
string _computerName;
|
|
string _vendorName;
|
|
string _appnName;
|
|
|
|
Guid _uuid;
|
|
|
|
|
|
}
|
|
}
|