Check for user folder existance


  • I am looking to filter a GPO based on whether or not a folder exists under the user profile.  I tried a WMI filter similar to:

     "Select * From CIM_Directory Where Name = 'C:\\Users\\%Username%\\Folder' however it is never true (Probably because the %Username% variable is not working).. It does work if I populate a test username into the folder search.

    Thursday, April 14, 2016 7:24 PM


All replies