Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 UNC 路径 $data 变量用作 Get-Content 路径的一部分?
$data = "\\MyServer\MyShare" $OU = Get-Content $data + "ou.txt" $OU
尝试
$data = "\\MyServer\MyShare" $OU = Get-Content ( JOIN-PATH $data "ou.txt" )