Windows 10: Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC?

Discus and support Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC? in Windows 10 Network and Sharing to solve the problem; I have a very old ASUS laptop on which I got a new software about an year ago. Recently I did a full system scan and found about 5 malicious files in... Discussion in 'Windows 10 Network and Sharing' started by Naman Modi, Mar 25, 2023.

  1. Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC?


    I have a very old ASUS laptop on which I got a new software about an year ago. Recently I did a full system scan and found about 5 malicious files in this directory- C:\Windows\Setup\Scripts\binI want to know what are these files and is it safe to remove them?

    :)
     
    Naman Modi, Mar 25, 2023
    #1

  2. Script can copy file directory in one spot but not the other

    Haha yeah its fred. sorry its 8am and my mind isnt fully functional yet. There is an error along side the one my script posts: No such file or directory at script line 20.(which is the copy line). I pointed the script to one of the sub directories exactly, still wouldnt copy. I created a new sub dir, and copied some of the files from the main directory into the new directory, those wouldnt copy either.

    script:
    Code: #!/usr/bin/perl -w use strict; use warnings; use File::Find; use File::Copy; my $directory="..\\..\\doc\\xsd"; find (\&subr, $directory); sub subr { foreach ($File::Find::name=~/(.*)\.xsd$/) { my $filetobecopied = $File::Find::name; my $newfile = $1 . ".origxsd"; copy($filetobecopied, $newfile) or die "$File::Find::name cannot be copied $!"; chmod 0777, $File::Find::name; open (FILE, "<", $File::Find::name) or die "Cannot open file $!"; print $File::Find::name. "\n"; local $/; my $file=<FILE>; $f=~s/<!--[\w\W^]*?-->//gi; close FILE; open (OUT, ">", $File::Find::name) or die "Cannot write to file $!"; print OUT $f; close OUT; chmod 0444, $File::Find::name; } }[/quote] thanks kreij
     
    Hybrid_theory, Mar 25, 2023
    #2
  3. Script can copy file directory in one spot but not the other

    On drive E: on a Windows Server, I have directory "test". And then maybe 4 more directories down I have directory "fred". My script runs in a different tree under test. It points a to the fred directory which contains files, and sub directories with files. The script looks for files with a certain extension, makes a backup of them, then edits the original files. Now this works for all of the files directly in the "fred" directory. But the files in any of the sub directories of fred, give an issue with copying the file. As a test, I copied fred and all its contents to E:\. I adjusted the script to look at E:\Fred, and everything worked fine. The originals were copied, and edited as expected.

    I compared permissions between E:\Fred and E:\test\..\..\..\fred. they're basically the same. They both have a checkmark in read only(which only resets itself after i uncheck it). The only minor difference was that E:\test\..\..\..\fred didnt have a couple of special permissions for the Users group. This involved, modify, dir traversal, read and execute. I gave those permissions but still no luck.
     
    Hybrid_theory, Mar 25, 2023
    #3
  4. Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC?

    Recycle Bin Directory

    What is the Recycle Bin Directory for opening via a script. What I want to initially do is remove it and make a custom button off the normal Windows desktop. I have tried C:\$Recycle.Bin, but it opens as a normal folder which is empty and I am unable to
    use it like the normal Recycle Bin (i.e. Right Click + Empty). Is there any other directory?
     
    Marcel Barlik, Mar 25, 2023
    #4
Thema:

Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC?

Loading...
  1. Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC? - Similar Threads - Why are malicious

  2. Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC?

    in Windows 10 Gaming
    Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC?: I have a very old ASUS laptop on which I got a new software about an year ago. Recently I did a full system scan and found about 5 malicious files in this directory- C:\Windows\Setup\Scripts\binI want to know what are these files and is it safe to remove them?...
  3. Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC?

    in Windows 10 Software and Apps
    Why are there malicious files in the directory C:\Windows\Setup\Scripts\bin of my PC?: I have a very old ASUS laptop on which I got a new software about an year ago. Recently I did a full system scan and found about 5 malicious files in this directory- C:\Windows\Setup\Scripts\binI want to know what are these files and is it safe to remove them?...
  4. Why is there a random empty file named boot on the C:\ directory? It was created yesterday.

    in Windows 10 Ask Insider
    Why is there a random empty file named boot on the C:\ directory? It was created yesterday.: [ATTACH] I'm not sure what created it, only software I downloaded yesterday was macrium reflect, and there was no boot folder that was randomly created after uninstalling. It has nothing in it. I did do however a backup from control panel, and it also picked up the boot...
  5. C:\Windows\ - The file or directory is corrupted and unreadable.

    in Windows 10 Ask Insider
    C:\Windows\ - The file or directory is corrupted and unreadable.: My problems all stemmed from a Windows update two nights ago that caused my entire to install to BSoD with a stop code of "BAD SYSTEM CONFIG INFO". I followed a few different guides, then eventually gave up and began backing up files using a bootable Windows 10 Media on USB....
  6. C:\Users Directory

    in Windows 10 Network and Sharing
    C:\Users Directory: Good Afternoon, I have a machine that is a member of a domain. The user account logged onto the machine is a user not an administrator. I run a portable program requires no prior installation as an administrator. I enter domain admin credentials. These domain...
  7. C:\users directory?

    in Windows 10 Customization
    C:\users directory?: My C:\users directory shows up as C:\Public\US SEAL 7.ico. Anyone know what's up with that? Thanks; https://answers.microsoft.com/en-us/windows/forum/all/cusers-directory/e798521b-7dab-4ae0-89f6-ade14e8fc0e7
  8. C:\Program Files (x86)\... The file or directory is corrupted or unreadable

    in Windows 10 Network and Sharing
    C:\Program Files (x86)\... The file or directory is corrupted or unreadable: Every time I try to open anything on my computer it gives the same pop-up: The file or directory is corrupted or unreadable. Except for when I run as administrator. I am at a loss I feel I've tried everything this is basically last resort. Please Help!!...
  9. C:\Program Files (x86)\... The file or directory is corrupted or unreadable.

    in Windows 10 Network and Sharing
    C:\Program Files (x86)\... The file or directory is corrupted or unreadable.: Every time I try to open anything on my computer it gives the same pop-up: The file or directory is corrupted or unreadable. Except for when I run as administrator. I am at a loss I feel I've tried everything this is basically last resort. Please Help!!...
  10. Can't save file in C:\ root directory

    in Windows 10 Support
    Can't save file in C:\ root directory: I want to save files in my C:\ root directory of my boot drive and get an error that "Required privilege is not held by the client". I am the sole user/administrator of this system. I went into C:, properties, security, and enabled permissions for everything and everyone....