I need some help. I’m trying to create a batch file to run a CMD code. Basically I want the .bat script to run cmd within the same folder. I’ve tried some scripts but they’re not working as I want them to. What I usually do is : Open CMD as Admin cd C:TargetFolder load.exe ..
I want to share with you a solution to a windows 10 problem that took me a lot of time I initially found that to templatize a Windows machine with sysprep it was necessary to disable Windows Defender real-time protection (https://www.reddit.com/r/kace/comments/mubncg/how_to_disable_microsoftwindows_defender_in_win/) After following the instructions, however, I discovered that the Admin1 user (that I had ..
How can I get the UAC prompt to give my Python code Admin rights? I have tried this but Python 32 Bit or my Terminal just freezes: import os import sys import win32com.shell.shell as shell ASADMIN = ‘asadmin’ if sys.argv[-1] != ASADMIN: script = os.path.abspath(sys.argv) params = ‘ ‘.join([script] + sys.argv[1:] + [ASADMIN]) shell.ShellExecuteEx(lbVerb=’runas’, lpFile=sys.executable, ..
I´ve written a notify program, which communicats with an windows service on WebSocket. This notify program does not have admin rights but with click on button starts an other program which starts and stops the service. This program should run with admin rights, it worked very fine for some time but somehow not any more. ..
I have three machines as follows: Machine A with Win 10 and admin rights at home Machine B with Win 10 and no admin rights at office behind a firewall Machine C with Win 10 and admin rights that I hope to connect to Machine B My existing setup is as follows: I run a ..
So after trying to install gurobi for python C:Program Files (x86)win64>python3.8 setup.py install (as administrator using cmd) it fails with message error: could not create ‘C:Program Access is denied I asked gurobi support and they said When you have Python installed to your Program Files directory it requires admin privileges to add new packages. In ..
I want to save my Files in a more generic way than on Desktop. So i want to create my own Subfolder in Programs Folder, which i can use to save my stuff. But i get "System.UnauthorizedAccessException" if i try to create a File using File.AppendAllText(@"C:Program FilesMySubfolderMyFile.txt,someString); I even disabled the Protection of the Folders ..
I tried to run python setup.py install in Windows cmd, but got this error. In MAC I just change to sudo python setup.py install, but in Windows not suod. I tried runas also not working. I also tried python setup.py install –user the installation didn’t report error but the function did not work. Does anyone ..
I don’t want to add a python file to startup like other questions, I want to have code that can add any program to startup, first I thought to add a shortcut to C:ProgramDataMicrosoftWindowsStart MenuPrograms but that doesn’t work for some unknown reason and I asked the question on stack overflow earlier: Pywintpes.com error when ..
I created a launcher app (C#/Windows Forms) executing installers and configuring workstation of the current user. It will be the unique entrypoint because the user will not have the write permissions on any directory. So, I have to grant this launcher with admin role. But I don’t know how. Is there a special lib in ..