Calculate the size of the user profile folders in Windows 7

Hello

I just wanted to calculate the size of the user profile folders in Windows 7 then I wrote a VBScript script that accepts the path of the file whose size is a subfolder must be calculated (in my case - C:\Users). The script runs without error, however, in the output that is a log file, I get the error 'Permission denied' instead of the size of the file. The script works very well under Windows XP where user profiles in "C:\Documents and settings".

Then can someone suggest a method to work around this additional security & get the user profile folder sizes in Windows 7 please?

Thank you.

Then can someone suggest a method to work around this additional security & get the user profile folder sizes in Windows 7 please?

Thank you.

Here are a few options:
  • Logging in as an administrator account, and then run the script under elevated privileges.
  • Create a scheduled task that is running under the system account. Polish your script so that it writes its output to a file.

Tags: Windows

Similar Questions

  • User profile folders that are created on the login server?

    All went to watch the C:\Users folder on my server to connect internal and noticed there are profiles it for all of my users. We will connect with zero clients for a floating office pool and redirect all profiles using the Persona management, so I'm surprised to see them here. No idea why the user profile folders created on the VCS?

    Geoff

    I had this same problem with my login server. I had about 30 users on one of them and less than 10 on the other. I couldn't find any reason to make it, so I ended up opening a case of low priority with VMware Support. They have found the answer:

    ---
    Found the answer for you: it seems that users who require a change of password and change it as they connect to their desktop to view create a user profile on the login server
    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/eb56b301-FEAA-4753-a70a-cd950bafa303/Windows-2008-invokechangepassword-lots-of-profiles-in-cusers
    ---

    Thinking about it some more, this organizations probably affects the only running the customer view as a replacement for Explorer shell (do us), effectively replace normal windows authentication. So basically, when a password is about to expire, the only interface that they need to change it is through the Client view. Apparently this changes the mechanism eventually create an empty profile on windows server itself?

    Article, it would be interesting to test changing the newspaper locally allow an option to see if it prevents the creation of profile, or if it breaks the password!

  • Delprof delete user profiles, but leaves some user profile folders empty!

    Some of our systems have more than 300 profiles and allows us to remove the profiles older then 15 days, delprof

    Delprof is remove the hive and all data of the users folders, but leaves behind the record.

    Any reason why this happens and how I can get these empty user profile folders to remove using delprof?

    Then this performance to the user profile folders empty cart system?

    Thank you...

    Hi Nazir,

    Thanks for posting in the Microsoft Community.

    However, the question you posted would be better suited in the TechNet Forums; We recommend that you post your question in the TechNet Forums to get help:

    http://social.technet.Microsoft.com/forums/en-us/smallbusinessserver/threads

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • The user profile Service service has no logon. User profile cannot be loaded. Then I deleted my user profile in safe mode, and when I connected, all the files in C:\users\(old users name) are all gone

    I use Vista Home Premium

    1. Windows automatically updated and turn off the power.
    2. I couldn't connect, it says that the service user profile service does not logon. User profile cannot be loaded.
    3. Then I deleted my user profile in SafeMode by doing: 'make right click on computer - properties - settings - advanced - user - deleted my old account profile settings '. There is no option for me to "keep my files."
    4. Then I managed to connect, I guess having creates a default user account? Because there is a new folder in C:\Users\, called (former name). (old name) - PC. In C:\Users\(old name), it is empty.

    Now, all my original files are gone because I deleted my old user profile. The size of my c: drive-has not changed much, so I guess all my files are still in only my computer, it's just that I can't find their "PATH". How could I get re-navigate to all my files? I need them so badly.

    Thank you very much for the one who can help me.

    Hello

    Log on as ADMIN and look in C:\Users where C: is the drive where the user folders.

    You can try to fix it with Safe Mode - repeatedly press F8 as you bootup.

    Some programs such as the updated Google (if you added the toolbar Google, Chrome or Google
    Earth) has been known to cause this problem.

    How to fix error "the user profile Service has no logon. User profile cannot be loaded. »
    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    How to fix error "your user profile was not loaded correctly! You have been connected with a
    temporary profile. "in Vista
    http://www.Vistax64.com/tutorials/135858-user-profile-error-logged-temporary-profile.html

    BE VERY CAREFUL IF YOU USE THIS ONE:

    DO NOT USE THE ACCOUNT HIDDEN ON A DAILY BASIS! If it corrrups you are TOAST.

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    Use the hidden administrator account to lower your user account APPLY / OK and then lift it to ADMIN.
    This allows clear of corruption. Do the same for other accounts if necessary after following the above message.

    You can use the hidden - administrator account to make another account as ADMINISTRATOR with password even
    (or two with the same password) use a test or fix the other.

    You can run the Admin account hidden from the prompt by if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    If you cannot access your old account, you can still use an Admin to migrate to another (don't forget
    always leave to an Admin who is not used except for testing and difficulty account).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Error when the connection that reads the user profile service service has no logon. User profile cannot be loaded

    I've worked on my computer fine all day and then went to log on to the evening and received this message. When I look on user profiles it shows my user as a 'backup '. I have a lot of documents and emails that I need. Is there a way to fix this, other than to create a new account and delete the old one?

    Hello

    The data is still there and accessible by any admin look under C:\Users account where C: is
    the drive where the profiles of users (folders).

    You can try to fix it with Safe Mode - repeatedly press F8 as you bootup. Also the ADMINISTRATOR account of
    Safe mode has no password by default unless someone has changed.

    These problems and similar bugs can help:

    A temporary profile is loaded after you connect to a Windows Vista-based system
    http://support.Microsoft.com/kb/947242

    How to fix error "your user profile was not loaded correctly! You have been connected with a
    temporary profile. "in Vista
    http://www.Vistax64.com/tutorials/135858-user-profile-error-logged-temporary-profile.html

    Some programs such as the updated Google (if you added the toolbar Google, Chrome or Google Earth)
    has been known to cause this problem.

    How to fix error "the user profile Service has no logon. Profile of user cannot
    be responsible. »
    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    -----------------------------------------------

    Other methods:

    Use the hidden administrator account to lower your user account (to the lowest level) APPLY/OK then go back
    and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times. Do the same for others
    accounts that may be difficult. If necessary you can also reset your password in the accounts.
    Do not forget to leave your Admin account and the other to the desired level.

    Make another Admin account with your password and use it to fix the others if necessary. (just for
    repair, don't use regular account, not a safety valve) always keep a spare ADMIN account.

    DO NOT LEAVE THE ENABLED LSA OR USE DAILY. If it corrupts you are toast!

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    You can run the Admin account hidden from the prompt by if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    If you cannot access your old account, you can still use an Admin to migrate to another (do not forget to always
    not that an Admin account that is not used except for testing and difficulty).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Unable to load the user profile on my laptop Satellite C

    Cannot connect. He repeats to me ' the user profile service has no log on. " User profile cannot be loaded. »

    In my opinion problem described is unwanted Microsoft and has nothing to do with the laptop to the manufacturer, so I think that the responses should be offered by Microsoft.
    An interesting page, you can find here.

    Check it out.

  • Failed to load the user profile on my Satellite L840

    I have a Satellite L840 and when I logged on today that it's telling the user profile service service (it says service twice don't know if this is important) failed to connect
    User profile cannot be loaded.

    Can someone tell me how to solve this problem?
    Thank you

    I never had this problem but to check first what Microsoft says about that - please http://support.microsoft.com/kb/947215
    Maybe it will help you.

  • The user profile Service failed

    I installed a password on my lap top, but tonight, on the attempt to login, I get the message: user profile Service service has no logon
    User profile cannot be loaded.

    How can I connect to?

    Hi mate

    It seems that Microsoft is known on this problem of Windows and have already released a fix for this problem.

    + Error message when you log a computer Windows Vista-based or Windows 7 by using a temporary profile: "the user profile Service has no logon. User profile cannot be loaded.
    http://support.Microsoft.com/kb/947215/en-us

    Please follow the instructions in this MS. knowledge base article
    It seems that you must change the registry

  • cannot get past error - could not connect the user profile service

    My HP desktop computer has windows 7 - I can't get past - error message "user profile service failed to connect ' & 'impossible to load the user profile'!"  By clicking on the ICON that displays windows closes and repeats the error message read... a new user account must be defined the user upwards and copy the previous settings account - but I can't get there.

    Hello

    You can try the following.

    Shut down the PC.  Tap away at f8 that you start the PC to enter the Windows Recovery Console.  Use the arrow keys to select Safe mode and press ENTER.  If windows will load in this mode, on the Start Menu, click principally made programs, click Accessories, click System Tools and run the system restore.  Choose a restore point at least 24 hours prior to the issue of logon and then proceed to the restoration.  When you are finished, Windows will restart as normal in order to check if you can now connect correctly.

    Another option if the above does not help is as follows.

    Shut down the PC.  Tap away at f8 that you start the laptop to enter the Windows Recovery Console.  Use the arrow keys to select "Start using last good known Configuration" and press ENTER.

    Kind regards

    DP - K

  • Satellite L450 - the user profile service failed the log on

    Hello

    I have a Toshiba Satellite L450 and I've had it for awhile now and it's never happened before, when I turn it on it goes by habit and then comes up with my name and a box for typing me my password, as usual. But when I put my password it says:
    The user profile service has no log on
    User profile cannot be loaded

    The only option I have is to disconnect and when I do it takes back me to the bit of password. If I put the password in wrong, it tells me it s wrong...
    Can t do something with it, I tried shutting down, etc. looked through the manual and can't see anything in there no more... :(

    Hi mate

    Please attach to this document from Microsoft:

    + Error message when you log a computer Windows Vista-based or Windows 7 by using a temporary profile: "the user profile Service has no logon. User profile cannot be loaded.
    http://support.Microsoft.com/kb/947215

    It seems to be the problem known to Microsoft. You use the FIX position here.

    Good luck

  • Equium A200-1V0 - service the user profile Service has no connection

    Hey, wonder if anyone can help me.

    My laptop is not letting me log in the profiles of each user, a message keeps coming up saying 'the user profile Service service has no connection. User profile cannot be loaded. »

    I can fix anyone know? A got a Toshiba Equium A200-1V0 if that helps.

    See you soon.

    See this MS knowledge base article:

    + Error message when you log a computer Windows Vista-based or Windows 7 by using a temporary profile: "the user profile Service has no logon. User profile cannot be loaded.
    http://support.Microsoft.com/kb/947215

    This seems to be a known issue of Windows and you can correct that running the Microsoft Fix this problem Microsoft Fix it 50446

    Welcome them

  • Connection problem: unable to load the user profile.

    Hello dear community HP,.

    We cannot open a session more although we think that we use the correct password.

    The error we receive is as follows:

    "The user profile Service has no logon. User profile cannot be loaded. »

    Product name (model No.): HP G5250BE - 5 CI3/550 M

    HP G5000 series

    We use Windows 7 Home Premium

    Thank you very much for your help.

    Best regards

    Ludgard

    Hello

    You can try the following.

    Shut down the PC.  Tap away at f8 that you start the PC to enter the Windows Recovery Console.  Use the arrow keys to select Safe mode and press ENTER.  If windows will load in this mode, on the Start Menu, click principally made programs, click Accessories, click System Tools and run the system restore.  Choose a restore point at least 24 hours prior to the issue of logon and then proceed to the restoration.  When you are finished, Windows will restart as normal in order to check if you can now connect correctly.

    Another option if the above does not help is as follows.

    Shut down the PC.  Tap away at f8 that you start the PC to enter the Windows Recovery Console.  Use the arrow keys to select "Start using last good known Configuration" and press ENTER.

    Kind regards

    DP - K

  • The user profile service has no login...

    I get this message "the user profile service has no logon. User profile cannot be loaded. "I am not able to connect to my netbook at all... Any help would be greatly appreciated!

    Hello

    Here are a couple of things to try.

    1. judgment of the laptop.  Here tap f8 as soon as you press the power button to enter in the Windows Recovery Console.  Use the arrow keys to select Safe mode and press ENTER.  When windows has fully loaded into this mode, click on the Start Menu, click principally made programs, click Accessories, click System Tools and run the system restore.  Choose a restore point right before the opening of the session the question and then proceed to the restore - Windows will try to restart normally, so see if you can now log on.

    2. If the above does not help, stop the laptop.  Here tap f8 as soon as you press the power button to enter the Windows Recovery Console again.  Use the arrow keys to select "Start using last good known Configuration" and press ENTER to see if that helps.

    Kind regards

    DP - K

  • My user account will not open a session. message, said the user profile service failed.

    Two days ago, I try to connect my messgae of acct user popped up of service user profile service failed to connect. Have the other 3 acct and they connect without any problems.  How can I fix it?

    Hello

    These methods should help for Windows 7 or Vista.

    References to Vista also apply to Windows 7.

    You can try to fix it with Safe Mode - repeatedly press F8 as you bootup. THE ADMIN
    Safe Mode account has no default password (so unless someone changed
    the password should be available).

    Some programs such as the Google Updater (if you've added the Google toolbar,
    Chrome or Google Earth) has been known to cause this problem.

    Error message when you log on to a Windows Vista-based or Windows 7
    computer by using a temporary profile: "the user profile Service has no logon.

    Unable to load the user profile.
    http://support.Microsoft.com/kb/947215

    Difficulty "the user profile Service has no logon. User profile cannot be loaded. "Error in Windows 7
    http://www.SevenForums.com/tutorials/186131-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    How to fix error "the user profile Service has no logon. Could not load user profile. "in Vista & Windows 7.
    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    How to fix error "your user profile was not loaded correctly! You have visited
    logged on with a temporary profile. "in Vista & Windows 7.
    http://www.Vistax64.com/tutorials/135858-user-profile-error-logged-temporary-profile.html

    BE VERY CAREFUL IF YOU USE THIS ONE:

    DO NOT USE THE ACCOUNT HIDDEN ON A DAILY BASIS! If it corrupts you are TOAST.

    ----------------------------------------------------------------------------------------------------------

    For Windows 7:

    How to enable or disable the built-in Windows 7 Administrator account
    http://www.SevenForums.com/tutorials/507-built-administrator-account-enable-disable.html

    Use the hidden administrator account to lower your user account APPLY / OK then
    Raise it to ADMIN. This allows clear of corruption. Do the same for other accounts
    If necessary after following the above message.

    You can use the hidden - administrator account to make another account as an ADMINISTRATOR with
    your password even (or two with the same password) use a test or difficulty to another.

    You can run the command Admin account hidden from the command prompt
    from there if necessary.

    How Boot for Windows 7 System Recovery Options or use a Windows 7 boot disk.
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html

    What are the system recovery options in Windows 7?
    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7

    How to create a Windows 7 system repair disc
    http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html

    ----------------------------------------------------------------------------------------------------------

    For Vista:

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    Use the hidden administrator account to lower your user account APPLY / OK then
    Raise it to ADMIN. This allows clear of corruption. Do the same for other accounts
    If necessary after following the above message.

    You can use the hidden - administrator account to make another account as an ADMINISTRATOR with
    your password even (or two with the same password) use a test or difficulty to another.

    You can run the command Admin account hidden from the command prompt
    from there if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    What are the system recovery options in Windows Vista?
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

    How to create a Vista - free methods recovery disk
    http://www.Vistax64.com/tutorials/141820-create-recovery-disc.html

    ---------------------------------------------------------------------------------------------------------

    If you can't access your old account you can still use an Admin to migrate to one
    new (remember to always leave an account Admin who is not used except)
    to test and difficulty).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • What should I do when the display shows "at the service of the user could not connect. Unable to load the user profile... ?

    I connect to my profile and I am not able to log in. The display shows "at the service of the user could not connect. User profile cannot be loaded... » » ?

    Hello

    These methods should help for Windows 7 or Vista.

    References to Vista also apply to Windows 7.

    You can try to fix it with Safe Mode - repeatedly press F8 as you bootup. The ADMIN account in trunk
    Mode has no default password (unless someone has changed the password so it should be available).

    Some programs such as the updated Google (if you added the toolbar Google, Chrome or Google Earth)
    has been known to cause this problem.

    Error message when you log on a Windows Vista-based or Windows 7 using computer a
    Temporary profile: "the user profile Service has no logon. Unable to load the user profile.
    http://support.Microsoft.com/kb/947215

    How to fix error "the user profile Service has no logon. User profile cannot be loaded. »
    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    How to fix error "your user profile was not loaded correctly! You have been connected with a
    temporary profile. "in Vista
    http://www.Vistax64.com/tutorials/135858-user-profile-error-logged-temporary-profile.html

    BE VERY CAREFUL IF YOU USE THIS ONE:

    DO NOT USE THE ACCOUNT HIDDEN ON A DAILY BASIS! If it corrupts you are TOAST.

    -------------------------------------------------------------------------------------------------------------------------------------

    For Windows 7:

    How to enable or disable the built-in Windows 7 Administrator account
    http://www.SevenForums.com/tutorials/507-built-administrator-account-enable-disable.html

    Use the Admin account hidden to lower your user account APPLY / OK then wear again to
    ADMIN. This allows clear of corruption. Do the same for other accounts if necessary after the
    above message.

    You can use the hidden - administrator account to make another account as an ADMINISTRATOR with your same
    password (or two with the same password) use a test or difficulty to another.

    You can run the command Admin account hidden from the prompt here if
    necessary.

    How Boot for Windows 7 System Recovery Options or use a Windows 7 boot disk.
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html

    What are the system recovery options in Windows 7?
    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7

    How to create a Windows 7 system repair disc
    http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html

    -------------------------------------------------------------------------------------------------------------------------------------

    For Vista:

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    Use the Admin account hidden to lower your user account APPLY / OK then wear again to
    ADMIN. This allows clear of corruption. Do the same for other accounts if necessary after the
    above message.

    You can use the hidden - administrator account to make another account as an ADMINISTRATOR with your same
    password (or two with the same password) use a test or difficulty to another.

    You can run the command Admin account hidden from the prompt here if
    necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    What are the system recovery options in Windows Vista?
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

    How to create a Vista - free methods recovery disk
    http://www.Vistax64.com/tutorials/141820-create-recovery-disc.html

    -------------------------------------------------------------------------------------------------------------------------------------

    If you cannot access your old account, you can still use an Admin to migrate to another (don't forget
    always leave to an Admin who is not used except for testing and difficulty account).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

Maybe you are looking for

  • Charging battery and power problem problem.

    The problem occurs only once I have start the load the laptop after that I used the battery for either a small or for a long period of time. The battery will begin to charge and the laptop runs from the power supply for 5 minutes at a time. After tha

  • Yoga book: how to change app for real pencil?

    Hey,. How can I change the standard application for the real pencil of OneNote to OneNote 2016? concerning Jan

  • Computer notebook dv7-6c52ea

    What is the permissible maximum memory for HP - Compaq Pavilion Notebook dv7-6c52ea? I have 8 GB in there and I wanted to move to 16 GB. concerning KK

  • What to do if your computer has been hacked or hacked and controlled by a remote elsewhere.

    Original title: hijacked, hacked into the computer What to do if your computer has been hacked or hijacked and controlled by a remote connection Furthermore.  Many different programs added and if I try to uninstall or remove programs I don't recogniz

  • backup error 0 x 80070002 will not end

    While trying to back up my laptop which has not been done since November, it seems to be getting ready and then suddenly stops and gives the error code 80070002 Original title: error 0 x 80070002 update wiil not complete