Kaseya Community

Script to get user profile size

  • Trying to write a script that will return the size of the current user's profile. Any suggestions?

    Trying to use the dir command but cant get it right. 

  • I also tried using the du.exe tool (technet.microsoft.com/.../bb896651.aspx) however the first time you run it there's a Terms&Conditions popup and users needs to click accept.

  • Most Sysinternals utilities take an -AcceptEULA switch. Alternatively, you can add the registry value directly:

    reg add "HKEY_CURRENT_USER\Software\Sysinternals\Du" /v EulaAccepted /t REG_DWORD /d 0x00000001 /f

  • GetUserProfilesSizes.zip

    Hi,

    This script will check all your domains workstations and list the size of all user profiles in a csv in c:\kworking

  • This client doesnt have a domain. Would it work for them?

  • @smason looks like that works! thanks

  • NB: Sloeber70's script doesn't work on non-domain machines.