![]() ![]() # Go find what we are looking for and log it. # The program we are looking for may have multiple instances. # Get that list of computers and do something with it. $computer = (Get-ADComputer -Filter 'ObjectClass -eq "Computer"' | Select -Expand DNSHostName) # Need this to discover what computers are on the network $LogTime = Get-Date -Format "MM-dd-yyyy_hh.mm.ss" $ErrorActionPreference = "silentlycontinue" Comment this out if you want to see what broke. We can feed our list of computers to that and find any place the user is logged in to. The end result is a log file that tells you where to find what you are looking for so you can work more efficiently. If you dont want to be dependent upon a proprietary there is a native PowerShell solution available on PSGallery called Get-ActiveUser. The script works fine when I run it with single line of code of my own local PC. The only modification is to insert the loop for multiple different remote Computer based on specific OU then export the result to. It can take some time to run, especially if you have a lot of systems to check. OK, when I run it from PowerShell ISE, it is also not working as well. You will also need to modify the $LogFile variable to a path that exists on your own system. ![]() To modify this script simply change and to suit your needs. Get-ADComputer returns the computer name by default, as well. (Note, this key may be different than the key revealed by the command prompt or PowerShell.) Figure C. This method of finding out installed software is most. You can identify a computer by its distinguished name, GUID, security identifier (SID) or Security Accounts Manager (SAM) account name. The Identity parameter specifies the Active Directory computer to retrieve. Get-WinEvent -ProviderName msiinstaller where id -eq 1033 select timecreated,message FL. The Get-ADComputer cmdlet gets a computer or performs a search to retrieve multiple computers. If you want to check only the recently installed software, you can use the following cmdlet to search through the Event Log. Unfortunately the program is not easy to update via Group Policy (GPO), so instead of walking to each computer to check if it needs an upgrade or if it is running multiple versions, I wrote this script to do the legwork for me. Does anyone have a way to find the Office version number with Powershell I can get the build number with no issue, but struggling to find the version number anywhere. To get OS Version: Get-ADComputer -Filter -Property Format-Table Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion -Wrap Auto. Getting the list of recently installed software from the Event Log. Our office runs an application that is constantly being updated. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |