in a VS C++ program we have to create and delete a windows share (dynamically). We use the NetShareAdd(…) and NetShareDel(…) functions to do so. Since we switched to Win10, I need to run this program in elevated admin level ("run as Administrator") or change the UAC Execution Level in Project/Properties/Linker/Manifest File. Else the functions ..
I logged in to my Windows 7 Enterprise machine by tests user which is standard user and runs command to check last logon info. Pleaser refer below output. >net user tests | findstr "logon" Last logon 9/16/2021 12:18:17 PM Then I run same command for testa user which is administrator user for same machine. >net ..
I am currently writing a testing/simulation software that shall imitate a certain behavior of a communication client using a proprietary TCP/IP protocol. To simulate a broken connection I want to just kick an open client socket out of the list. After some research I found that the SetTcpEntry method from the iphlpapi is a candidate ..
I have a folder without any inherited permissions. I want to configure it in a way that allows reading all subfolders and files like usual but shows a UAC prompt if i try to create / modify / delete files or folders (just like C:Program Files). I am logged in as an administrator. Can you ..
I want to retrieve all files/directorys path (nested) in the C:/ drive, at least if they are not currently used or where I have the permission to retrive. In order to do it recursively, I used recursive_directory_iterator from std::filesystem. I managed to avoid permission error thanks to std::filesystem::directory_options::skip_permission_denied However, when my program enter the C:/drivers, ..
Can’t run Robocopy locally in backup mode (/b & /zb) when logged in as a domain admin. Have tried adding it to Backup Operators groups (local & domain), and disabling UAC on the local machine, but no difference. Source: Windows..
With C++ when compiling your .exe file and you have to specify it to run as admin, is there any way to remove the shield icon? I’ve seen programs do it and i spent some time trying to find out how to do it aswell, but i have not found a clear answer. Any help ..
I’m trying to delete a font file using this way, std::filesystem::remove(std::filesystem::path("C:WindowsFontssegmdl2.ttf")); But this fails and throw an exception, filesystem:error cannot remove: Input/output error The exception is not helpful. What’s the correct way to delete this kind of files? Source: Windows Que..
I am trying to build a privilege management application which will exchange the Default Windows UAC to my WPF Application. This WPF runs with c# and I already figured how the consent.exe works, but I don’t know how to exchange it to my Application. Could anyone help me with this problem? Greetings Michael Source: Windows ..
For a UAC bypass project, it uses signatures to locate a specific function, but the problem is that these signatures must be hard coded and change between windows builds. Here is a new snippet of code that is meant to do the same function without the need for a signature. std::wcout << GetProcAddress(GetModuleHandle(L"SystemSettings.Handlers.dll"), "[email protected]@@@") << ..