简体   繁体   English

将 FSX 映射到 windows 实例; 出错

[英]Mapping FSX to windows instance; getting error

{
  "schemaVersion": "2.2",
  "description": "Map SMB Share using SMBGlobalMappings for Windows Containers",
  "mainSteps": [
    {
      "action": "aws:runPowerShellScript",
      "name": "runPowerShellWithSecureString",
      "precondition": {
        "StringEquals": [
          "platformType",
          "Windows"
        ]
      },
      "inputs": {
        "runCommand": [
          "$username = (Get-SSMParameterValue -Name plasmausername).Parameters[0].Value",
          "$password = (Get-SSMParameterValue -Name plasmapassword -WithDecryption $True).Parameters[0].Value | ConvertTo-SecureString -asPlainText -Force",
          "$credential = New-Object System.Management.Automation.PSCredential($username,$password)",
          "New-SmbGlobalMapping -RemotePath '\\\\amznfsxzijoxmju.plasma.com\\share\\' -Credential $credential -LocalPath D: -RequirePrivacy $true -ErrorAction Stop"
        ]
      }
    }
  ]
}

I want to map FSX share to windows instance, I have joined domain still getting this error:我想将 map FSX 共享到 windows 实例,我已加入域仍然收到此错误:

New-SmbGlobalMapping : The parameter is incorrect.
At line:1 char:1
+ New-SmbGlobalMapping -RemotePath "\\\\amznfsx5galhhax.file.onetechnow ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (MSFT_SmbGlobalMapping:ROOT/Microsoft/...mbGlobalMapping) [New-SmbGlobalMapping], CimException
    + FullyQualifiedErrorId : Windows System Error 87,New-SmbGlobalMapping

username is in the format: file.onetechnow.com/Admin用户名格式为:file.onetechnow.com/Admin

What am i doing wrong here?我在这里做错了什么?

Ran into the same issue while following this blog: https://aws.amazon.com/blogs/containers/using-amazon-fsx-for-windows-file-server-on-eks-windows-containers/在关注此博客时遇到了同样的问题: https://aws.amazon.com/blogs/containers/using-amazon-fsx-for-windows-file-server-on-eks-windows-containers/

Remove the single quotes from the following line: New-SmbGlobalMapping -RemotePath '\\FSxDNSNAME\share\Directory'从以下行中删除单引号:New-SmbGlobalMapping -RemotePath '\\FSxDNSNAME\share\Directory'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM