Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $computerName = "192.168.241.182"
- $password = "s" | ConvertTo-SecureString -asPlainText -Force
- $username = "Administrator"
- $credential = New-Object System.Management.Automation.PSCredential($username,$password)
- Get-WmiObject -Class CIM_DataFile -Namespace "root\cimv2" -Filter "Extension='dll'" -ComputerName $computerName -Credential $credential | format-list Name, Extension, Path
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement