【发布时间】:2020-09-16 04:46:33
【问题描述】:
所以,我正在尝试运行微软在此链接中提供的这个 SPO PowerShell 脚本: https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/export-spouserinfo?view=sharepoint-ps 在“示例 2”上。但是,当我尝试在 PowerShell ISE 上运行脚本时,我收到以下错误:“'Output Folder' 参数缺少参数。指定 'System.String' 类型参数并重试。”我尝试更改参数,输入我的网站集,在文件夹上创建一个 .csv 文件,但没有任何更改此错误消息,我做错了什么?
这是我正在使用的代码:
$sites = Get-SPOSite -IncludePersonalSite $true
$user = "xxxxxx@domain.com"
foreach ($site in $sites)
{
Export-SPOUserInfo -LoginName $user -site $site.Url -OutputFolder
"D:"
}
提前致谢!
【问题讨论】:
标签: powershell sharepoint