jshuanya 当前离线
一级士官
czjt1234 当前离线
少校
' & cls & cscript.exe /nologo /e:vbscript "%~f0" %* & pause & exit Set oWshNetwork = CreateObject("WScript.Network") Set oWshCollection = oWshNetwork.EnumPrinterConnections() For i = 0 to oWshCollection.Count - 1 Step 2 wsh.Echo oWshCollection.Item(i) & " = " & oWshCollection.Item(i + 1) Next复制代码
TOP
newswan 当前离线
上尉
Get-Printer Get-Printer | Where-Object { $_.Shared -eq $true }复制代码
czjt1234 发表于 2024-1-19 20:07
hzlbzo 当前离线