Folder size script

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm running a vbs script that gets the size of folders on another server.
The basics of the script is:

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("\\cet-vcl-021\xxxx$\Profiles")

I can get most folders but not profile folders. I get the error
"foldersize.vbs(3, 1) Microsoft VBScript runtime error: Permission denied" I
am running the script with a domain admin account. I can go into properties
for the folder and get the info I need why not by script?

Thanks,
Kevin

.



Relevant Pages

  • Re: CLean out all users Temp Dir Folder
    ... I've built the script you need with ScriptAhead a tool we have just ... ' Get Folders that match the following criteria: ... Sub AppendCollectionToArray ... GetSubFolders strFolderName ...
    (microsoft.public.windows.server.scripting)
  • RE: Deleting 1 folder across multiple Mailboxes
    ... I too am looking to delete about 30 folders that came over from a linux ... are over 200 mailboxes that is a whole lot of click delete click delete. ... I found this script, but it seems to only work on Exchange 2000. ... Dim objCommand, objConnection, strBase, strFilter, strAttributes ...
    (microsoft.public.exchange.admin)
  • Re: finding files
    ... I'm back and also my script as changed ever since. ... Set objFSO = CreateObject ... I have 2 questions really for the above segment code ... You could include or exclude certain folders. ...
    (microsoft.public.scripting.vbscript)
  • Re: Need help for a new scripter
    ... been tasked with comming up with a script that will allow me to move ... folders from the profile into it. ... Dim sUserProfile, sBUPath ... sPath & "\quicklaunch", OverWriteFiles ...
    (microsoft.public.scripting.vbscript)
  • Re: Script for Folder View Customization - Beta
    ... but vbcsript's capabilities are equal to or better than our ... Should be no problem for folders such as "c:\docs & ... the file system object, SAPI.SpFileStream, SAPI.Voice, etc. ... I also wrote a script that recurses a folder hierarchy and calls SAPI5 ...
    (microsoft.public.scripting.vbscript)