Never mind, I found some stuff to clear out, I'm good on space now.
From: [email protected] [mailto:[email protected]] On
Behalf Of Murray, Mike
Sent: Tuesday, April 08, 2014 11:02 AM
To: [email protected]
Cc: Mike Dougherty
Subject: RE: [mssms] RE: CM2007 - low disk space for content
Could you assist? I tried running the script on the server, and it says
compilation error: invalid character. I tried replacing the quotes with single
quotes, still the same error. Here's the script I'm using:
' Author: Eswar Koneti
' Title: Script to Delete the PCK files on all the exisiting Drives that are
older than 2 Years (730 Days)
Set objfso = CreateObject ("Scripting.FileSystemObject")
Set servers = objfso.OpenTextFile ("C:\Scripts\servers.txt", 1)
Set objoutputfile = objfso.OpenTextFile ("C:\Scripts\PCKResults.txt", 2, True)
do While Not servers.AtEndOfStream
strcomputer=servers.readline
Set objWMIService = GetObject("winmgmts:\\" & strComputer)
If Err.Number <> 0 Then
objoutputfile.WriteLine (strcomputer & " is not Up or something went wrong
with WMI")
Err.Clear
Else
strDays= 500
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_LogicalDisk")
For Each objdrive in colItems
drive=left(objDrive.caption,1)
If (objfso.FolderExists("\\" & strComputer & "\"+Drive &"$\smspkg\")) Then
set recive = objfso.GetFolder("\\" & strComputer & "\"+Drive
&"$\smspkg\")
Set colFiles = recive.Files
For Each objFile in colFiles
filename=objfile
if (right(FileName, 4) = ".PCK") then
If DateDiff("d", objFile.DateLastModified, Date) > strDays
Then
objoutputfile.WriteLine objfile & vbtab & "exist on "&
vbtab & strComputer & vbtab & "modified date:" & vbtab &
objFile.DateLastModified & vbtab & "Size (MB):" & vbtab &
int(objFile.Size/1048576)
objfso.DeleteFile objfile,TRUE
objoutputfile.WriteLine strComputer & vbTab & "Deleted"
end if
end if
Next
End if
Next
end if
loop
msgbox "script is completed"
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Mike Dougherty
Sent: Friday, April 04, 2014 5:48 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [mssms] RE: CM2007 - low disk space for content
Take this with a grain of salt...
but you can delete .PCK files as needed, as CM/SMS will re-create them as
needed.
if you have a static package that's already out on DPs and has not or does need
to change ...
then you can probably delete those.
I would say, any PCK that corresponds to a package ID to something that does
not change and has not changed for the last... year? 18 months? can probably be
deleted.
it's not great practice; the best practice to ensure sufficient space is
available.
you (probably/most likely) won't break anything by deleting the PCK files, but
if one of the packages "comes back", you'll lose the re-claimed space and the
server will incur additional disk overhead/churn/whatever while it re-creates
the PCK file.
On Fri, Apr 4, 2014 at 6:53 PM, Murray, Mike
<[email protected]<mailto:[email protected]>> wrote:
I compressed the folder, but got no more space out of it. Ideas?
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]<mailto:[email protected]>]
On Behalf Of Murray, Mike
Sent: Friday, April 04, 2014 8:39 AM
To: [email protected]<mailto:[email protected]>
Subject: [mssms] RE: CM2007 - low disk space for content
Great suggestion. I'll go with this first, I think that should help us limp
along until we get completely migrated.
Thanks!
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Jason Sandys
Sent: Thursday, April 03, 2014 6:19 PM
To: [email protected]<mailto:[email protected]>
Subject: [mssms] RE: CM2007 - low disk space for content
How about enabling ntfs compression on the source files? It's completely
transparent to the OS and applications.
J
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Murray, Mike
Sent: Thursday, April 3, 2014 4:52 PM
To: [email protected]<mailto:[email protected]>
Subject: [mssms] RE: CM2007 - low disk space for content
We're moving to 2012 right now, I only need the 2007 server maybe another 2-3
months.
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Marcum, John
Sent: Thursday, April 03, 2014 1:16 PM
To: '[email protected]<mailto:[email protected]>'
Subject: [mssms] RE: CM2007 - low disk space for content
On the record or off the record??
You should not delete pck files. Have I ever done it? Yes many times. :-)
Is it a real solution? No, it's a band-aid to get you by until you can get more
disk space.
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Murray, Mike
Sent: Thursday, April 03, 2014 2:53 PM
To: [email protected]<mailto:[email protected]>
Subject: [mssms] RE: CM2007 - low disk space for content
Bump. This is the drive that serves as the package source and the DP.
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Murray, Mike
Sent: Wednesday, April 02, 2014 1:48 PM
To: [email protected]<mailto:[email protected]>
Subject: [mssms] CM2007 - low disk space for content
The drive that contains our patches is getting low on space. Is this the way to
go to clear up space?
http://eskonr.com/2013/09/sccm-2007-script-to-delete-old-pck-files-from-smspkg-folder-avoid-disk-space-issues/
Best Regards,
Mike Murray
Desktop Management Coordinator - IT Support Services
California State University, Chico
530.898.4357<tel:530.898.4357>
[email protected]<mailto:[email protected]>
________________________________
Confidentiality Notice: This e-mail is from a law firm and may be protected by
the attorney-client or work product privileges. If you have received this
message in error, please notify the sender by replying to this e-mail and then
delete it from your computer.
________________________________
Confidentiality Notice: This e-mail is from a law firm and may be protected by
the attorney-client or work product privileges. If you have received this
message in error, please notify the sender by replying to this e-mail and then
delete it from your computer.