【问题标题】:How do you copy a file from the Domain Controller to a macos device that is joined to AD with powershell如何将文件从域控制器复制到使用 powershell 加入 AD 的 macos 设备
【发布时间】:2022-08-18 16:39:33
【问题描述】:

是否可以将带有 powershell 的文件复制到加入了 AD 的 macOS 设备?我知道 Windows 是可能的,例如

复制项 -Path SOURCEFOLDER -Destination \"\\\\$computer\\\\c$\"

macOS 也可以使用这样的命令吗?

标签: macos powershell active-directory


【解决方案1】:

使这项工作在 Windows 上工作的是 SMB/CIFS 文件共享协议和域内 Kerberos 身份验证的组合。

如果 mac 启用了 SSH,您可以使用 scp 将文件复制到其中。

如果 Mac 具有带 PS Remoting 的 PowerShell,您可以创建一个 new-pssession,然后使用 copy-item 复制该会话。

或者您可以在this Apple article 之后的 Mac 上启用 SMB 文件共享。

c$ 的语法需要更改,因为 macOS 不使用驱动器号。您可能需要共享特定文件夹并安排您复制到的权限。

【讨论】:

    猜你喜欢
    • 2014-09-30
    • 2014-07-07
    • 2020-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-26
    • 1970-01-01
    相关资源
    最近更新 更多