Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

3 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Bauke Okkema
Bauke Okkema
8 years ago

Hallo Jos,

Ik had nog problemen met het script op Citrix i.c.m. RES. Probleem was dat het script ook de iexplore.exe processen van andere ingelogde gebruikers af wilde sluiten. Ik heb hiervoor een aanpassing gedaan in de functie: function Get-ProcessWithOwner
namelijk het volgende:
$Processes = Get-wmiobject -Class Win32_Process -ComputerName $ComputerName -Filter “name LIKE ‘$ProcessName%'”

gewijzigd in:

$Processes = Get-wmiobject -Class win32_process|where{$_.name -eq “iexplore.exe” -and $_.getowner().user -eq “$UserName”}

Dit werkt bij mij nu goed. Wellicht kun je het meenemen in een nieuwe release van het script.