Important Notice: On February 29th, this community will be put into read-only mode. All existing posts will remain but customers will be unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Scan only logged in user appdata folder

Hi, first sorry for my clumsy write, as its a bit hard for me to explain. But hoping someone can give me and answer.

Is there a way to scan under appdata, but only for the current logged in user?

My company wants to distribute some images the employees should use in MS Teams as background. Instead of each user doing this by themselves, I wanted to do it with PDQ Deploy.
But I also wants to have an inventory, so I can check who has the files or who does not have them, and then only run the deploy on the missing ones.

The inventory part is where I'll struggling right now. 

Teams will put manually added images into this folder:

C:\Users\username\AppData\Roaming\Microsoft\Teams\Backgrounds\Uploads\

Can I somehow scan that folder for only the logged in user right now? 
So if some specific files are present in the folder it doesn't copy the images, or else it does. 

The challenge arises because we have some shared computers, which multiple users can use and I don't want it to copy the images, to all users if all already got them. But if its a new user on that computer, is should copy the images. On top of that I don't see a point in trying to copy the images out to every admin, default what ever folder, when its only needed for specific users.

I can get it to scan C:\Users\*\AppData\Roaming\Microsoft\Teams\Backgrounds\Uploads\, but how to I control, that the current logged in user has the images, and its not another user instead?

0

Comments

5 comments
Date Votes
  • Is there a way to scan under appdata, but only for the current logged in user?

    Yes. On your Scan Profile, set Scan As to "Logged on User". For your Include Pattern, use:

    %APPDATA%\Microsoft\Teams\Backgrounds\Uploads

    On top of that I don't see a point in trying to copy the images out to every admin, default what ever folder, when its only needed for specific users.

    I recommend giving Default a second chance. If you copy the images to the Default user profile (C:\Users\Default), any new users will get them automatically. That way you would only have to deploy to each computer once.

    0
  • for my Windows 10 machines I use 

    c:\%USERPROFILE%\AppData\

    0
  • I tried with scan as logged on user, but then it doesn't return anything. 
    My scan profile looks like this:
    Scan As: Logged on user
    Files & Directories: C:\%AppData%\Microsoft\Teams\Backgrounds\Uploads\*.jpg

    I'm testing on my on computer, where I have jpg files in both my own Background folder, but also the local administrators Background folder.

    It doesn't change anything if I use %userprofile%\Appdata\ instead of %appdata%

    0
  • Files & Directories: C:\%AppData%\Microsoft\Teams\Backgrounds\Uploads\*.jpg

    Remove "C:\" from the start of that. %APPDATA% starts with the system drive letter.

    1
  • Oh, stupid me. I tried with \%appdata%, but PDQ didn't allow it without a drive letter. I didn't think of trying without the first \.

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post