Variable for currently signed in user in collection/scan?

Comments

1 comment

  • Chris

    You can achieve this by creating a PowerShell script and deploy it :-)

    Script-content:
    - Get currently logged on user --> $currentlyLoggedOnUser
    - Check if file exists in $currentlyLoggedOnUser ´s profile
    - then, do whatever you want (e.g. copy file if it does not exist)

    Or write a different PowerShell script and create a scan profile in inventory:
    - Get currently logged on user --> $currentlyLoggedOnUser
    - Check if file exists in $currentlyLoggedOnUser ´s profile
    - write the result as $TRUE or $FALSE to registry
    - create scanner for registry value
    Then you can deploy the script to all clients of your choice and scan that collection with your created scanner. After that you can create a report for that value and do what ever you want :-)

    0
    Comment actions Permalink

Please sign in to leave a comment.