Avatar of Kelly Garcia
Kelly Garcia
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Powershell Code

Hi All,

I am trying to understand this line of code

function ScreenPassword($instance)  
    if (!($instance.screensaversecure)) {return $instance.name}   
    <additional statements>  

foreach ($a in @(get-wmiobject win32_desktop)) { ScreenPassword($a) }

Open in new window

what is the function of the @ symbol in @(get-wmiobject win32_desktop) ??

thank you in advance

Avatar of undefined
Last Comment
Kelly Garcia

8/22/2022 - Mon