Questions tagged [system32]

System32 is a folder, in the directory represented by the environment variable %windir%, that contains shared libraries and some applications (Control Panel, Command Prompt, etc.) necessary for Windows, and Windows applications, to run.

System32 is a folder, in the directory represented by the environment variable %windir%, that contains shared libraries and some applications (Control Panel, Command Prompt, etc.) necessary for Windows, and Windows applications, to run.

118 questions
1
vote
1 answer

ipconfig on windows 7 outside of system32

I'm working on making an incident response disk and I wanted to be able to run a copy of ipconfig off of external media such as a usb drive. This seems to work on my windows xp machine but when I copy ipconfig outside of system32 directory, it will…
blindude24
  • 11
  • 1
  • 2
1
vote
2 answers

Createprocess() of "C:\\Windows\\System32\\OpenSSH\\ssh.exe" fails with error=2

On a Windows-10 machine, I am trying to run ssh.exe as a child process using createprocess, something like the below snippet: // Create the child process. bSuccess = CreateProcess(NULL, child_cmd, // command line NULL, //…
user5007527
  • 13
  • 1
  • 5
1
vote
1 answer

C++ - How to read system files

I'm trying to find a file that starts with "silabs-cdc" in "C:\\Windows\\System32\\DriverStore\\FileRepository" DIR *dir; struct dirent *ent; if ((dir = opendir(path.c_str())) != NULL) { // FAILED while ((ent = readdir(dir)) != NULL) { …
user4256388
1
vote
1 answer

Cannot open self C:\Windows\system32\file.exe or archive C:\Windows\system32\file.pkg

I try using pyinstaller to convert *.py to *.exe and put them in system32 to try to make them a cmd command but I always get the error: Cannot open self C:\WINDOWS\system32\file.exe or archive C:\WINDOWS\system32\file.pkg I tried…
Semicolon255
  • 21
  • 2
  • 4
1
vote
0 answers

Inno Setup: Copying files (to System32) takes long time

Our software project uses Inno Setup to roll it out to the customers. We found on some target computers it takes a long time for some DLLs to be copied to the system32 directory (about 2 minutes per file). The first intention was this files are…
Matthias
  • 37
  • 8
1
vote
2 answers

Check if another process has admin privileges

I have wrote a code to check is a process running on the same machine has administrator privileges or not. But it always returns false. Can you tell me what's wrong with it. private static bool HasAdminPrivileges(int processId) { var hProcess =…
1
vote
1 answer

C++ Delete system32 files

I wanna write a C++ code to delete a file from system32 (hosts for example , a font ...) , how ? I use remove() and DeleteFile() DeleteFile("C:/Windows/System32/drivers/etc/hosts") != 0) remove( "C:/Windows/System32/drivers/etc/hosts" ) != 0 ) but…
MH SY
  • 19
  • 1
  • 2
1
vote
1 answer

Check File.Exists in System32 with Sysnative and %windir% from 32-bit app C#

I have created a 32-bit application in C#. Because it's 32-bit, it cannot access 64-bit locations such as C:\Windows\System32. To access 64-bit locations, I understand that I need to instead use C:\Windows\Sysnative. I want to check if a file exists…
user2465164
  • 917
  • 4
  • 15
  • 29
1
vote
0 answers

finalize driver install via PnPUtil without restart on windows 10

I'm installing some audio drivers using PnPUtil to Windows 10: pnputil -a ./installaudiodriver.inf /install I run a batch file via powershell, installing 5 INFs. a couple of the INFs include files copy to %windir%\system32 folder. Problem: I…
Ido A
  • 87
  • 1
  • 1
  • 8
1
vote
1 answer

Why do MKDIR and DIR still work when XCOPY doesn't?

I recently encountered an error where XCOPY wouldn't work in a batch file returning: 'xcopy' is not recognized as an internal or external command, operable program, or batch file. Several other commands (ie: HELP) returned the same error, which I…
Tony Gweesip
  • 194
  • 1
  • 9
1
vote
1 answer

tasklist vs. task manager memory

Hi and thanks in advance. What is the difference between the memory in the tasklist ( which you run in the cmd) and that GUI task manager. I noticed for browser processes, that the memory is off by a great deal. Which is more accurate of the…
Neo84
  • 197
  • 2
  • 18
1
vote
1 answer

Testing for path in SysWOW64 returns true if path does not exist, but does exist in System32

NOTE: I am on a 64-bit system. I am having trouble finding articles regarding my current situation. I using PowerShell to test if a certain path exists: "C:\Windows\SysWOW64\config\systemprofile\Desktop" and it returns true even though the Desktop…
Jeff.Clark
  • 599
  • 1
  • 5
  • 27
1
vote
1 answer

C# calling batch file failed to copy dll files to System32 folder

I have created a batch file that copies some dll files into System32 folder. I ran this batch from my program written in C# code: string path = @"ABC\install.bat"; ProcessStartInfo procStartInfo = new ProcessStartInfo() { UseShellExecute =…
Ninh Trung
  • 21
  • 4
1
vote
1 answer

Directory enumeration is missing csrss.exe and lsass.exe (c#)

I'm trying to enumerate files in C:\Windows\system32 and C:\Windows\SysWow64. But I'm missing files csrss.exe and lsass.exe and possibly more, I only checked these two files. Those files are there, I can see them in total commander and in explorer.…
Eiq
  • 45
  • 1
  • 7