用于映射快速访问的Powershell脚本不起作用

时间:2018-05-10 16:52:41

标签: powershell

我试图在Windows资源管理器(Windows 10)中设置快速访问链接,但我收到错误"您无法在空值表达式上调用方法。在C:\ scripts \ new1.ps1:3 char:1

$folder2 = '\\disabilityrightstexas- 
   my.sharepoint.com@SSL\DavWWWRoot\personal\' + $env:username + 
   '_disabilityrightstx_org\Documents'
$QuickAccess = New-Object -ComObject shell.application
$QuickAccess.Namespace($folder2).Self.InvokeVerb("pintohome")

0 个答案:

没有答案