windows - Accessing Remote Registry for the currently logged in user with Powershell -
i'm trying find printer ports in use user logged in multiple machines. however, when run script running regedit myself... how go getting user logged in?
here current script:
get-content -path c:\listofcomputers.txt | foreach-object { get-itemproperty -path registry::"hkey_current_user\software\microsoft\windows nt\currentversion\printerports\" | foreach-object {get-itemproperty $_.pspath} | format-list | out-file c:\portresults.txt }
Comments
Post a Comment