Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: SFC/Scannow shows spsys.sys error

18 Sep 2012   #51
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Farhaj,
Excellent.

Carry out this script, upload the resulting ZIP file which the script puts on your desktop.

Script:
# ************************************************************
# Zips up your log files from Windows Defender Offline
#  and extended info about the log files
# Places WDOlogs.ZIP on your Desktop
#
# ************************************************************

function New-Zip {
    
param([Parameter(Mandatory=$truePosition=0ValueFromPipeline=$true)]
    [
String$Path, [Switch] $PassThru, [Switch] $Force )
    
Process { if (Test-Path $path) {if (-not $Force) { return } }
    
Set-Content $path ("PK" + [char]+ [char]+ ("$([char]0)" 18))
    
$item Get-Item $path$item.IsReadOnly $false;if ($passThru) { $item } } }
function 
Copy-ToZip {param(
  [
Parameter(Mandatory=$true,Position=0,ValueFromPipelineByPropertyName=$true)] [Alias('FullName')] 
  [
String]$File, [Parameter(Mandatory=$true,Position=1)] [String]$ZipFile,[Switch]$HideProgress,[Switch]$Force )
  
Begin {$ShellApplication = New-Object -ComObject Shell.Application
  
if (-not (Test-Path $ZipFile)) {New-Zip $ZipFile};$Path Resolve-Path $ZipFile
  $ZipPackage 
=$ShellApplication.Namespace("$Path")}
  
Process {$RealFile Get-Item $File; if (-not $RealFile) { return }        
  if (-
not $hideProgress) {$perc +=5; if ($perc -gt 100) { $perc 
    
Write-Progress "Copying to $ZipFile$RealFile.FullName -PercentComplete $perc}
  
$Flags 0; if ($force) {$flags 16 -bor 1024 -bor 64 -bor 512};Write-Verbose $realFile.Fullname
   $ZipPackage
.CopyHere($realFile.Fullname$flags);Start-Sleep -Milliseconds 500}}

$divider "#" 79
$fileinfo 
join-path $env:TEMP \wdofileinfo.txt
IF (test-path $fileinfo) {del $fileinfo -ea:silentlycontinue -force:$true}
$dir $env:windir '\Microsoft Antimalware\Support'
$a dir $dir  -rec -force -ea:silentlycontinue sort-object -property lastwritetime 
select namelastwritetimecreationtimelastaccesstimelengthextensionfullname
$f 
$a select namelastwritetime,creationtime,lastaccesstime,length
$arr 
= @()
$arr += $f
$a 
where {$_.extension -eq '.log'} |Select fullname |
foreach (
$_.fullname) {
$c $divider
$d 
$_.fullname;
$e get-content -path $_.fullname
$arr 
+= $c$d$e
}

$arr out-file $fileinfo
$ziploc 
$env:userprofile '\desktop\WDOlogs.ZIP'
new-zip $ziploc -verbose:$false -ea:silentlycontinue -force:$true
copy
-tozip  $fileinfo $ziploc -verbose:$false -hideprogress:$true
del $fileinfo

EXIT
EXIT

# ************************************************************ 
# **********************INSTRUCTIONS**************************
# STEP 1 ** RUN POWERSHELL AS ADMINISTRATOR ******************
# ************************************************************
#
# WIN key | type POWERSHELL | do NOT hit ENTER |
# in the PROGRAMS list, right-click on WINDOWS POWERSHELL |
# choose "Run as administrator" |
# Click on the YES button (if such appears)
#
# WIN key = key with Microsoft log on top
#
# for the guru:
# WIN | type POWERSHELL | CTRL+SHIFT+ENTER key combo | ALT+Y keycombo
# ************************************************************
# STEP 2 ** COPY AND PASTE ***********************************
# ************************************************************
#
# COPY the script using CTRL+C,
# COPY every line of script down thru both EXIT statements
#
# PASTE into Powershell
#----Right-Click at the PowerShell Prompt
#----(Ctrl+V does not work)
#
# Start copying with first script line without a # at start of the line
# Note: Actually, you can paste the entire file if you rather
#-------Lines starting with a # are ignored by PowerShell
# ************************************************************
# STEP 3 ** SCRIPT OUTPUT & SCRIPT PURPOSE *******************
# ************************************************************
# --The script output and purpose is given at the very front of the script
#
# --The script output and purpose is given at the very front of the script
#
# ************************************************************
# ***************** NOTE - POWERSHELL VERSION*****************
# if you receive this error msg:
#--The system can not find the path specified
# you may need to update your PowerShell
# you must be using Powershell 2.0 or later.
#
# To determine your Powershell version:
#---Run PowerShell
#---enter $host.version
#---you should see at least:
# Major Minor Build Revision
# ----- ----- ----- --------
# 2......0......-1.....-1
#
# If you do not see the above, update your Vista/Win 7.
# ************************************************************
# *************** NOTE - EXECUTION POLICY*********************
# If you haven't set the execution policy, you may need to:
#---Run PowerShell
#---enter SET-EXECUTIONPOLICY -EXECUTIONPOLICY REMOTESIGNED
# ************************************************************


My System SpecsSystem Spec
.
18 Sep 2012   #52
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

I will await the ZIP file before proceeding.
My System SpecsSystem Spec
18 Sep 2012   #53
farhaj

Windows 7 Home Premium 64bit
 
 

Quote   Quote: Originally Posted by karlsnooks View Post
Farhaj,
Excellent.

Carry out this script, upload the resulting ZIP file which the script puts on your desktop.

Script:
# ************************************************************
# Zips up your log files from Windows Defender Offline
#  and extended info about the log files
# Places WDOlogs.ZIP on your Desktop
#
# ************************************************************
 
function New-Zip {
    
param([Parameter(Mandatory=$truePosition=0ValueFromPipeline=$true)]
    [
String$Path, [Switch] $PassThru, [Switch] $Force )
    
Process { if (Test-Path $path) {if (-not $Force) { return } }
    
Set-Content $path ("PK" + [char]+ [char]+ ("$([char]0)" 18))
    
$item Get-Item $path$item.IsReadOnly $false;if ($passThru) { $item } } }
function 
Copy-ToZip {param(
  [
Parameter(Mandatory=$true,Position=0,ValueFromPipelineByPropertyName=$true)] [Alias('FullName')] 
  [
String]$File, [Parameter(Mandatory=$true,Position=1)] [String]$ZipFile,[Switch]$HideProgress,[Switch]$Force )
  
Begin {$ShellApplication = New-Object -ComObject Shell.Application
  
if (-not (Test-Path $ZipFile)) {New-Zip $ZipFile};$Path Resolve-Path $ZipFile
  $ZipPackage 
=$ShellApplication.Namespace("$Path")}
  
Process {$RealFile Get-Item $File; if (-not $RealFile) { return }        
  if (-
not $hideProgress) {$perc +=5; if ($perc -gt 100) { $perc 
    
Write-Progress "Copying to $ZipFile$RealFile.FullName -PercentComplete $perc}
  
$Flags 0; if ($force) {$flags 16 -bor 1024 -bor 64 -bor 512};Write-Verbose $realFile.Fullname
   $ZipPackage
.CopyHere($realFile.Fullname$flags);Start-Sleep -Milliseconds 500}}
 
$divider "#" 79
$fileinfo 
join-path $env:TEMP \wdofileinfo.txt
IF (test-path $fileinfo) {del $fileinfo -ea:silentlycontinue -force:$true}
$dir $env:windir '\Microsoft Antimalware\Support'
$a dir $dir  -rec -force -ea:silentlycontinue sort-object -property lastwritetime 
select namelastwritetimecreationtimelastaccesstimelengthextensionfullname
$f 
$a select namelastwritetime,creationtime,lastaccesstime,length
$arr 
= @()
$arr += $f
$a 
where {$_.extension -eq '.log'} |Select fullname |
foreach (
$_.fullname) {
$c $divider
$d 
$_.fullname;
$e get-content -path $_.fullname
$arr 
+= $c$d$e
}
 
$arr out-file $fileinfo
$ziploc 
$env:userprofile '\desktop\WDOlogs.ZIP'
new-zip $ziploc -verbose:$false -ea:silentlycontinue -force:$true
copy
-tozip  $fileinfo $ziploc -verbose:$false -hideprogress:$true
del $fileinfo
 
EXIT
EXIT
 
# ************************************************************ 
# **********************INSTRUCTIONS**************************
# STEP 1 ** RUN POWERSHELL AS ADMINISTRATOR ******************
# ************************************************************
#
# WIN key | type POWERSHELL | do NOT hit ENTER |
# in the PROGRAMS list, right-click on WINDOWS POWERSHELL |
# choose "Run as administrator" |
# Click on the YES button (if such appears)
#
# WIN key = key with Microsoft log on top
#
# for the guru:
# WIN | type POWERSHELL | CTRL+SHIFT+ENTER key combo | ALT+Y keycombo
# ************************************************************
# STEP 2 ** COPY AND PASTE ***********************************
# ************************************************************
#
# COPY the script using CTRL+C,
# COPY every line of script down thru both EXIT statements
#
# PASTE into Powershell
#----Right-Click at the PowerShell Prompt
#----(Ctrl+V does not work)
#
# Start copying with first script line without a # at start of the line
# Note: Actually, you can paste the entire file if you rather
#-------Lines starting with a # are ignored by PowerShell
# ************************************************************
# STEP 3 ** SCRIPT OUTPUT & SCRIPT PURPOSE *******************
# ************************************************************
# --The script output and purpose is given at the very front of the script
#
# --The script output and purpose is given at the very front of the script
#
# ************************************************************
# ***************** NOTE - POWERSHELL VERSION*****************
# if you receive this error msg:
#--The system can not find the path specified
# you may need to update your PowerShell
# you must be using Powershell 2.0 or later.
#
# To determine your Powershell version:
#---Run PowerShell
#---enter $host.version
#---you should see at least:
# Major Minor Build Revision
# ----- ----- ----- --------
# 2......0......-1.....-1
#
# If you do not see the above, update your Vista/Win 7.
# ************************************************************
# *************** NOTE - EXECUTION POLICY*********************
# If you haven't set the execution policy, you may need to:
#---Run PowerShell
#---enter SET-EXECUTIONPOLICY -EXECUTIONPOLICY REMOTESIGNED
# ************************************************************
Sorry to bother you.. But I did not get that exactly.. Now I should open what or download 7=zip from your Signature...
My System SpecsSystem Spec
.

18 Sep 2012   #54
farhaj

Windows 7 Home Premium 64bit
 
 

Ok Got it.... Here is the Zip FIle...WDOlogs.ZIP


My System SpecsSystem Spec
18 Sep 2012   #55
farhaj

Windows 7 Home Premium 64bit
 
 

@karlsnooks.. I got the matter.. and I have uploaded the Zip file.. I Got it from the Desktop...
My System SpecsSystem Spec
18 Sep 2012   #56
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Now as you see WDO removed a pile of malware from your computer doing simply a quick scan.

a FULL SCAN is necessary!

Since you say that you got a bsod when trying to do a full scan, which is not subtantiated by the log file, then

Seven Passes by MemTest86+ will be needed to determine the condition of your ram.

Memtest86+ - Advanced Memory Diagnostic Tool

RAM - Test with Memtest86+

you will need to burn memtest86+ to a cd and boot from the cd
My System SpecsSystem Spec
18 Sep 2012   #57
farhaj

Windows 7 Home Premium 64bit
 
 

A Blank CD is really important for that issue.. can I do it without it...
and now I can install MG Diaog.. on the laptop.. shall I send in that report here as well..

let me knoww...
My System SpecsSystem Spec
18 Sep 2012   #58
farhaj

Windows 7 Home Premium 64bit
 
 

Quote   Quote: Originally Posted by karlsnooks View Post
Now as you see WDO removed a pile of malware from your computer doing simply a quick scan.

a FULL SCAN is necessary!

Since you say that you got a bsod when trying to do a full scan, which is not subtantiated by the log file, then

Seven Passes by MemTest86+ will be needed to determine the condition of your ram.

Memtest86+ - Advanced Memory Diagnostic Tool

RAM - Test with Memtest86+

you will need to burn memtest86+ to a cd and boot from the cd

Did you check the Zip file I uploaded earlier.. did you find any errors in it..
My System SpecsSystem Spec
18 Sep 2012   #59
farhaj

Windows 7 Home Premium 64bit
 
 

Quote   Quote: Originally Posted by karlsnooks View Post
Now as you see WDO removed a pile of malware from your computer doing simply a quick scan.

a FULL SCAN is necessary!

Since you say that you got a bsod when trying to do a full scan, which is not subtantiated by the log file, then

Seven Passes by MemTest86+ will be needed to determine the condition of your ram.

Memtest86+ - Advanced Memory Diagnostic Tool

RAM - Test with Memtest86+

you will need to burn memtest86+ to a cd and boot from the cd


Ok got it... I can even do it with a flash drive.. But did u check the zip file which i posted on the earlier post above.. U said to upload it... Did you find out any errors or corrupted files in that
My System SpecsSystem Spec
18 Sep 2012   #60
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

see post #56
My System SpecsSystem Spec
Reply

 SFC/Scannow shows spsys.sys error




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
1tb hard drive shows unallocated & shows error cyclic redundancy error
Hello, My toshiba extrnl 1tb hard disk changed to raw aftr abrupt power cut whn drive was cnnectd to pc. After sum research tried method of test disk on win 7. I followd the procedure and writed partion. But aftr rebootng nw disk changed to unallocated. I tried initializing disk to mbr but it...
Hardware & Devices
SFC /SCANNOW Error and System Image Error
Hello everyone, Whenever I try to create a System Image, it keeps telling me an error has occurred. It tells me: "Windows Backup encountered an error when accessing the remote shared folder. (0x8078015B) Additional Information: The semaphore timeout period has expired. (0x80070079)" Also,...
General Discussion
Ran sfc /scannow, CBS log shows corrupted files - how to fix?
Hello, Could you please suggest how to fix the errors below in windows 7 home premium 64bit. Have done system restore, but the errors below are persistent, not fixed after running scannow multiple times. I have attached the sfcdetails.txt file as well. Thanks in advance. ...
Performance & Maintenance
SFC SCANNOW Error
Hi. I just finished running a scannow and it says, "Windows Resource Protection found corrupt files but are unable to fix them." It says that details are in the CBS.log file, so I will post the log file. PLease help me here!
Performance & Maintenance
BSOD Scannow shows unable to correct corrupt files
BSOD error 2057, often with BAD_POOL_CALLER or dxgmm.sys errors. Checked RAM by removing each stick in turn. Reinstalled video drivers. sfc /scannow shows corrupt files unable to repair despite several runs. Zip file shows CBS log Zip files attached Dell Vostro W7 x86 OEM pre installed on 2 yr...
BSOD Help and Support
sfc /scannow error
Ok so here is my problem yet again. I am trying to install adobe Photoshop and am getting an error : exit error 6. I do not know why, as it says my operating system is not supported when it is. One of the fixes is to run sfc /scannow in an elevated command prompt. Now I have came across this...
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App