📜  spooler win10 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:55.582000             🧑  作者: Mango

代码示例1
$Path = (([Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $Server)).OpenSubKey("SYSTEM\CurrentControlSet\Control\Print\Printers")).GetValue("DefaultSpoolDirectory")

$Path = (Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Print\Printers").DefaultSpoolDirectory