2017-11-01 10 views
1

내 컴퓨터에 설치된 모든 설치된 AppV 패키지를 나열하려면 Get-AppvClientPackage -all [| select name] 또는 Get-WmiObject -Namespace root\appv -Class AppvClientPackage [|select name]을 사용할 수 있습니다. 이 cmdlet을 사용하여 원격 실행없이 다른 컴퓨터에 설치된 AppV 패키지를 가져 오는 것은 불가능합니다.PowerShell의 Get-AppvClientPackage를 사용하여 내 컴퓨터가 아닌 다른 컴퓨터에서 AppV 패키지를 나열 할 수 있습니까?

나는이 작품을 (목적을 보시오) 찾거나 가능하지 않다는 확실한 답을 얻기 위해이 질문을하고 있습니다. 사용 가능한 더 나은 옵션이있을 수 있습니다 (PS 이외),하지만 내 질문에 단순히 그것이 가능하거나 그렇지 않은 경우, 그래서 후자의 경우, 우리는 높은 권한을 가진 사람이 실행할 수있는 스크립트를 개발하도록 추진할 수 있습니다) 필요한 정보를 수집합니다.

목적 : 우리 팀은 SCCM에 대한 가시성을 확보하지 못했습니다 (즉, 팀원이 어디에 설치되어 있는지에 대한 보고서를 작성하는 것입니다). 원격 PS 실행은 보안 팀 이해할 만하지만) 때때로 (지원 또는 폐기 목적으로) 특정 클라이언트 컴퓨터에 패키지가 설치되어 있는지 확인하고 특정 클라이언트가 설치 한 AppV 패키지를 확인하고 어떤 머신에 설치되어 있는지 확인해야합니다 특정 패키지가 설치되었습니다.

동일한 정보를 얻을 수있는 다른 모듈 또는 cmdlet (또는 powershell 또는 WMI 이외의 다른 모듈)이 있으면 제안을 환영합니다.

+0

당신이 그것을'-ComputerName'을 전달하고 대상에 적절한 권한이있는 경우 귀하'은 Get-WmiObject' 방법이 작동

#Requires -Version 3 $Target = 'localhost' [email protected]{ Namespace = 'root\appv' Class = 'AppvClientPackage' Property = 'Name' ComputerName = $Target } Get-WmiObject @Params 
. – TheIncorrigible1

+0

우리 팀 구성원은 대다수의 클라이언트 컴퓨터에서 로컬 관리자 그룹 내에있는 계정을 사용하지 않습니다. 보안 팀이 그렇게 할 수 있으므로 실행할 수있는 스크립트가 또 다른 옵션입니다. – Dallas

+1

PSRemoting이 한 그룹으로 제한되는 이유는 무엇입니까? PSRemoting에는 여러 가지 옵션이 많이 있습니다 (예 : cmdlet을 기반으로 실행 제한). 당신이 요구하는 것에 대해, 나는 당신이 필요로하는 것을 할 특권을 가지고 있다고 생각하지 않습니다. – TheIncorrigible1

답변

1

Get-WmiObjectRPC을 사용하여 원격 PC에 연결하며 PSRemoting을 필요로하지 않습니다. 이 작업을 수행하려면 -ComputerName 매개 변수를 추가하면됩니다.


PS C:\> Get-Help -Name 'Get-WmiObject' -Parameter 'ComputerName' 

-ComputerName <String[]> 
    Specifies the target computer for the management operation. Enter a fully 
    qualified domain name (FQDN), a NetBIOS name, or an IP address. When the remote 
    computer is in a different domain than the local computer, the fully qualified 
    domain name is required. 

    The default is the local computer. To specify the local computer, such as in a 
    list of computer names, use "localhost", the local computer name, or a dot (.). 

    This parameter does not rely on Windows PowerShell remoting, which uses 
    WS-Management. You can use the ComputerName parameter of Get-WmiObject even if 
    your computer is not configured to run WS-Management remote commands. 

    Required?     false 
    Position?     named 
    Default value    None 
    Accept pipeline input?  False 
    Accept wildcard characters? false