Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.204
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
Windows /
diagnostics /
system /
Printer /
Delete
Unzip
Name
Size
Permission
Date
Action
en-US
[ DIR ]
drwxrwxrwx
2023-03-23 12:54
pt-BR
[ DIR ]
drwxrwxrwx
2019-12-07 15:53
CL_Utility.ps1
28.88
KB
-rw-rw-rw-
2019-12-07 10:09
DiagPackage.diagpkg
25.57
KB
-rw-rw-rw-
2019-12-07 10:09
DiagPackage.dll
63
KB
-rw-rw-rw-
2019-12-07 10:09
MF_PrinterDiagnostic.ps1
4.41
KB
-rw-rw-rw-
2019-12-07 10:09
RS_CancelAllJobs.ps1
607
B
-rw-rw-rw-
2019-12-07 10:09
RS_DeletePrintJobs.ps1
4.06
KB
-rw-rw-rw-
2019-12-07 10:09
RS_NoPrinterInstalled.ps1
1
KB
-rw-rw-rw-
2019-12-07 10:09
RS_PrinterDriver.ps1
555
B
-rw-rw-rw-
2019-12-07 10:09
RS_PrinterTurnedOff.ps1
377
B
-rw-rw-rw-
2019-12-07 10:09
RS_ProcessPrinterjobs.ps1
1.24
KB
-rw-rw-rw-
2019-12-07 10:09
RS_RestartSpoolerService.ps1
663
B
-rw-rw-rw-
2019-12-07 10:09
RS_SetSpoolerStartMode.ps1
709
B
-rw-rw-rw-
2019-12-07 10:09
RS_SpoolerCrashing.ps1
1.96
KB
-rw-rw-rw-
2019-12-07 10:09
RS_StartSpoolerService.ps1
1.55
KB
-rw-rw-rw-
2019-12-07 10:09
RS_WrongDefaultPrinter.ps1
1.37
KB
-rw-rw-rw-
2019-12-07 10:09
TS_CannotConnect.ps1
4.11
KB
-rw-rw-rw-
2019-12-07 10:09
TS_DefaultPrinter.ps1
1.42
KB
-rw-rw-rw-
2019-12-07 10:09
TS_NoPrinterInstalled.ps1
1.07
KB
-rw-rw-rw-
2019-12-07 10:09
TS_OutOfPaper.ps1
663
B
-rw-rw-rw-
2019-12-07 10:09
TS_OutOfToner.ps1
757
B
-rw-rw-rw-
2019-12-07 10:09
TS_PaperJam.ps1
654
B
-rw-rw-rw-
2019-12-07 10:09
TS_PrintJobsStuck.ps1
2.04
KB
-rw-rw-rw-
2019-12-07 10:09
TS_PrinterDriver.ps1
746
B
-rw-rw-rw-
2019-12-07 10:09
TS_PrinterDriverError.ps1
1.03
KB
-rw-rw-rw-
2019-12-07 10:09
TS_PrinterTurnedOff.ps1
760
B
-rw-rw-rw-
2019-12-07 10:09
TS_SetSpoolerMode.ps1
974
B
-rw-rw-rw-
2019-12-07 10:09
TS_SpoolerCrashing.ps1
1.36
KB
-rw-rw-rw-
2019-12-07 10:09
TS_SpoolerService.ps1
640
B
-rw-rw-rw-
2019-12-07 10:09
UpdatePrinterDriver.dll
10.5
KB
-rw-rw-rw-
2019-12-07 10:09
VF_PrinterTurnedOff.ps1
1.28
KB
-rw-rw-rw-
2019-12-07 10:09
Save
Rename
# Copyright ?2008, Microsoft Corporation. All rights reserved. PARAM($printerName) # # Delete *.spl and *.shd files will remove all jobs from the printer queue first, and then delete all jobs using WMI. # Import-LocalizedData -BindingVariable localizationString -FileName CL_LocalizationData . .\CL_Utility.ps1 Write-DiagProgress -activity $localizationString.progress_rs_deletePrintJobs # # Delete *.spl and *.shd files will remove all jobs from the printer queue # [string]$directory = GetSystemPath "\spool\printers" [string]$dirsps = GetSystemPath "\spool\SERVERS" [string]$directoryServer = $null $printFiles = @(Get-ChildItem $directory | where-object -FilterScript { $_.Extension -eq ".spl" -or $_.Extension -eq ".shd" }) # # Set the directory of print files to the SERVERS folder for network printers # $printer = Get-WmiObject -Class Win32_Printer | Where-Object {$_.Name -eq $printerName } if ($printer.Local -eq $false) { $dirsvr = Get-ChildItem $dirsps | where-object -FilterScript { $printerName -like "*" + $_.Name + "*"} $directoryServer = $dirsvr.PSPath $printFiles += @(Get-ChildItem $directoryServer | where-object -FilterScript { $_.Extension -eq ".spl" -or $_.Extension -eq ".shd" }) } if($printFiles.Count -gt 0) { [string]$faxStatus = (Get-Service Fax).Status try { Stop-Service Spooler -Force WaitFor-ServiceStatus "Spooler" ([ServiceProcess.ServiceControllerStatus]::Stopped) $printFiles | foreach { Remove-Item $_.FullName } } finally { Start-Service Spooler WaitFor-ServiceStatus "Spooler" ([ServiceProcess.ServiceControllerStatus]::Running) if($faxStatus -eq "Running") { Start-Service Fax WaitFor-ServiceStatus "Fax" ([ServiceProcess.ServiceControllerStatus]::Running) } } # # update report # $notDeletedFiles = @(Get-ChildItem $directory | where-object -FilterScript { $_.Extension -eq ".spl" -or $_.Extension -eq ".shd" }) if (($printer.Local -eq $false) -and ($directoryServer -ne $null)) { $notDeletedFiles += @(Get-ChildItem $directoryServer | where-object -FilterScript { $_.Extension -eq ".spl" -or $_.Extension -eq ".shd" }) } $deletedFileNames = New-Object System.Collections.ArrayList $notDeletedFileNames = New-Object System.Collections.ArrayList if($notDeletedFiles.Count -eq 0) { foreach($file in $printFiles) { $deletedFileNames += $file.Name } } else { foreach($file in $printFiles) { [bool]$notDeleted = $false foreach($notDeletedfile in $notDeletedFiles) { if($file.Name -eq $notDeletedFile.Name) { $notDeleted = $true break } } if($notDeleted) { $notDeletedFileNames += $file.Name } else { $deletedFileNames += $file.Name } } } if($deletedFileNames.Length -gt 0) { $deletedFileNames | select-object -Property @{Name=$localizationString.fileName; Expression={$_}} | convertto-xml | Update-DiagReport -id DeletedFiles -name $localizationString.deletedFiles_name -verbosity Informational } if($notDeletedFileNames.Length -gt 0) { $notDeletedFileNames | select-object -Property @{Name=$localizationString.fileName; Expression={$_}} | convertto-xml | Update-DiagReport -id CannotDeletedFiles -name $localizationString.cannotDeletedFiles_name -description $localizationString.cannotDeletedFiles_description -verbosity Informational } } # # First try to delete current user's jobs in case that the user does not have permissions to delete all jobs, then try to delete all. # $printer = Get-WmiObject -Class Win32_Printer -ErrorAction SilentlyContinue | Where-Object {$_.Name -eq $printerName } if ($printer -ne $null) { try { Get-WmiObject -Class Win32_PrintJob -ErrorAction Stop | Where-Object {$_.Name.Split(",")[0] -ieq $printerName -and $_.Owner -eq $env:USERNAME } | ForEach-Object {$_.Delete()} Get-WmiObject -Class Win32_PrintJob -ErrorAction Stop | Where-Object {$_.Name.Split(",")[0] -ieq $printerName} | ForEach-Object {$_.Delete()} } catch [System.Exception] { Write-ExceptionTelemetry "MAIN" $_ } }