Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
142 views

I'm using a Visual Studio setup project together with my own C# bootstrapper project that guides the user through the installation of my software (on Windows 11). My main problem is that I need admin ...
becky's user avatar
  • 353
1 vote
1 answer
159 views

I am trying to use Start-Process to elevate a Get-WinEvent command, I want to use -Verb RunAs to generate the authentication pop up window, however I can't figure out how to capture the output (which ...
Bbb's user avatar
  • 721
1 vote
1 answer
170 views

I am trying to write a script to push through datto to copy a shortcut to each endpoint's public desktop. UAC is getting in my way, and I'm trying to find a way around it. So far I have tried this ...
Professional Mouse's user avatar
0 votes
1 answer
143 views

I need to install .NET Runtime before installing my app. I've read that it is impossible to run second installer after the first one started actions from InstallExecuteSequence table. So, I'm looking ...
Yola's user avatar
  • 19.4k
0 votes
1 answer
186 views

I'm trying to create a PS1 script to restart a service in a computer, where the user has no admin right, so i'm trying to execute as de admin user, now i'm trying first to open Notepad, but when I ...
Zenin0's user avatar
  • 63
1 vote
0 answers
54 views

I'm attempting to run an executable that requires elevated privileges using the subprocess library with python. The behaviour works as expected when using shell=true, or first calling powershell.exe ...
Anonymus's user avatar
-1 votes
1 answer
140 views

The goal invoke .bat files with administrative privilege from MATLAB. The Windows user account is a member of the administrators group, however, invoking the date command to change the system date / ...
gatorback's user avatar
  • 1,587
8 votes
1 answer
770 views

I have not been able to successfully run my PowerShell script from VBA with administrator privileges. I have examined the various answers in this forum and attempted to adapt with no success. When I ...
Ron Rosenfeld's user avatar
1 vote
1 answer
164 views

An GUI application I wrote executes elevated diskpart /s some_script. This works fine except for the fact that a terminal window is popping open showing the execution of diskpart. I wonder if there ...
Stephan Lukits's user avatar
0 votes
0 answers
68 views

I need my users to be able to run a program as an admin but dont want to get them the admin details. We work in a remote desktop environment (Azure VDI) and when they run a particular program as ...
Robert Curl's user avatar
0 votes
1 answer
359 views

For my app to function properly and display running processes, it requires elevated permissions. I embed the manifest file for this purpose using the mt.exe tool. If I make changes to the code and ...
machine_1's user avatar
  • 4,464
0 votes
0 answers
109 views

I need to solve the following problem on macOS: I must work with some files using a combination of AppleScript and Shell. For example, I have a file in the file system in folder /Users/username/...
Martin's user avatar
  • 19
1 vote
2 answers
361 views

For convenience of use, I need to put my powershell script in a bat file. The bat file content is as follows: # 2>NUL & @CLS & PUSHD "%~dp0" & powershell -COMMAND "Start-...
NqHai's user avatar
  • 67
0 votes
1 answer
410 views

I want to deploy a long-running C#-executable to a Windows Server 2019 machine using Azure DevOps pipelines. The executable needs to run elevated and call an external application that cannot run in ...
Matthias Schuchardt's user avatar
0 votes
1 answer
409 views

I have the following registry entry that creates a context menu to open a powershell shell as admin at the current directory: "%bin%\Elevator" -dir "%V" -elev high pwsh -noexit ...
fmotion1's user avatar
  • 577
0 votes
1 answer
315 views

I am trying to run IE Mode on Edge. When the browser instance loads, it gets stuck on This is the initial start page for the WebDriver server Selenium Version - 4.18.1 I am using the below args. when ...
subham chomal's user avatar
-1 votes
2 answers
2k views

I am trying to open Ms Edge in Elevated Mode, but I am unable to do so. (Windows 11) I have tried to open it manually too, but the Elevated option is always set to 'No'. Image showing Edge Elevated ...
subham chomal's user avatar
1 vote
0 answers
22 views

I want two applications requiring a Windows administrator privileges to be run from a standard user account. The standard user account is my child's account. I want her to be able to automatically run:...
ears's user avatar
  • 11
0 votes
2 answers
361 views

Does anyone know how get Admin Privileges of Batch-file within Windows Terminal? The script below got elevated in cmd it's self, not in/ through windows terminal @echo off Net session >nul 2>&...
Mr.Key7's user avatar
  • 313
0 votes
1 answer
124 views

Is it possible to make different users have different maximum activation duration time for the same role in Azure. For example, User A has the user administrator role with a maximum activation time of ...
Isaiah's user avatar
  • 1
0 votes
2 answers
3k views

I need to start an application elevated on a user account without admin privileges. I am using Windows 10. The station will have two user accounts: admin and operator. All applications will be ...
Yamamotooko's user avatar
1 vote
1 answer
4k views

This is my simple playbook, --- - name: test hosts: all tasks: - name: testing shell: /usr/bin/whoami register: testing - name: show the result debug: msg:...
caveman's user avatar
  • 13
1 vote
2 answers
341 views

I have a unit test for a class that is intended to run shell commands with elevated privileges. A simple test case is to copy a test file into C:\Program Files. The class makes a call to the C ...
Finnian Reilly's user avatar
1 vote
0 answers
118 views

I'm working on a project that uses Zephyr on a Nordic nRF52840 ARM CortexM. In the build they have the C NULL pointer exception protection enabled with: CONFIG_NULL_POINTER_EXCEPTION_DETECTION_MPU=y ...
gulchrider's user avatar
  • 4,334
0 votes
1 answer
678 views

I am writing an app where I would like to expose a service on a privileged port (i.e. <1024). This is not possible in Android without root permissions, from what I can see (I've made a test app, ...
cam17's user avatar
  • 51
1 vote
1 answer
84 views

I am developing a C#/.NET/AvaloniaUI application that communicates with a USB device over libusb. This requires the WinUSB driver to be paired with the device on Windows. Most users in my use case ...
Julien BERNARD's user avatar
3 votes
1 answer
2k views

What I am trying to do: Use a .bat file to call a .ps1 file (don't ask) that generates a self-signed certificate and key pair (.pem), then the .bat file will move each .pem to a new directory. What I ...
StrangerDanger's user avatar
1 vote
1 answer
320 views

I want to launch the file c:\dfs-build.ps1 with the specific user and admin privileges for that I'm trying to use the below command but it's not working. When I'm opening the powershell manually and ...
Lucky_345's user avatar
1 vote
0 answers
50 views

I have a PowerShell script which requires admin rights to launch and therefore always runs elevated. It has options to run commands on remote computers on the same domain, which all work without re-...
ChrisLe5512's user avatar
1 vote
1 answer
924 views

I'm very new to Powershell and I am trying to create a script whereby I copy a folder from one computer to another computer on the same network, and then run a batch file as an admin on the remote ...
cman32ca's user avatar
0 votes
1 answer
885 views

How to assign Azure AD PIM to a custom RBAC role using BICEP I am trying to use the below BICEP template to assign PIM to the custom RBAC role at the subscription level of scope. targetScope = '...
Sunshine's user avatar
0 votes
0 answers
22 views

I'm running a program installed in Program Files, which of course is read-only without elevation. For some download-on-first-use features of the program, I'd like to download new files to the ...
Matt Chambers's user avatar
4 votes
0 answers
1k views

Have been working on Windows internals security stuff and trying to figure out a couple things: When consent.exe is launched, what is the structure of the memory block passed as the third parameter ...
Joseph Willcoxson's user avatar
1 vote
1 answer
107 views

My plan is as follows: Open .bat file File then opens a PS window with script execution allowed and as admin(!) Directory must be variable for it to run on any PC in that folder. Install Chocolatey ...
CreaGab's user avatar
  • 35
1 vote
1 answer
386 views

PowerShell script with admin rights doesn't modify registry entries when executed through Start-Process I have a PowerShell script that modifies registry entries related to autologin settings. When I ...
Mahdi Bayouli's user avatar
0 votes
1 answer
565 views

I'm creating a Linux software that will have two types of databases: Public: stores information that anyone on my_program_group has access (without root privileges); Private: only users with sudo ...
Xut's user avatar
  • 13
2 votes
1 answer
266 views

I am trying to implement the function proposed by mklement0 on this answer My goal is to implement this as a reusable batch subfunction But before that I have run into a pattern of inconsistent ...
Shodan's user avatar
  • 1,228
1 vote
1 answer
1k views

I am currently trying to run the command cup all -y with task scheduler in windows, which basically updates all the packages installed by Chocolatey package installer. Screenshot of PowerShell ISE I ...
Vikas Rajbhar's user avatar
1 vote
1 answer
1k views

I want to create a simple script to restart the Mac. The command requires root privileges, so I decided to create an executable with the setuid bit set and the owner being root. For testing the setuid ...
scipsycho's user avatar
  • 607
0 votes
1 answer
76 views

I'm writing this script in python, which needs to access to administrator privileges so it can start and stop services in Windows. I've found this line runas /user:Administrator cmd But it opens a ...
Claudio Torres's user avatar
2 votes
1 answer
1k views

I am preparing new computers. After applying an image, I run a PowerShell script for some post-image deployment steps. Some steps must be run as the new (current) user, like registry settings in HCCU, ...
Craig's user avatar
  • 671
1 vote
0 answers
351 views

I am working on a JavaFX project. At some point in the program I need to ask the user for elevated rights to perform a certain action. How can I code this action? My program is coded to work on ...
Eduardo_Altair's user avatar
0 votes
1 answer
961 views

I created a dev box, but I need to install some software on the machine. It requires login to have admin privileges inside dev box. How do I access the Dev box with admin privileges? I created a ...
Subra Kadiyala's user avatar
1 vote
2 answers
658 views

When I try to update Windows features; When I update UseShellExecute to "true"; "The Process object must have the UseShellExecute property set to false in order to redirect IO streams.&...
user avatar
0 votes
1 answer
368 views

To my understanding, during logon if the user is part of Administrators group, lsass creates a medium IL filtered token with stripped out privileges and attaches it to the first user process. which ...
pralaynath_gainda_swamy's user avatar
1 vote
1 answer
297 views

I'm one of the IT admins in our company. Lately, cyber-security want to get stricter on how easily users can read and/or write data on USB sticks and external mass storage. In addition all new users ...
William Lombard's user avatar
0 votes
0 answers
617 views

I'm trying to add all the AD users that have a samaccountname ending in some suffix to a few different AD groups. This code works for all of the users with the suffic except for one. When trying to ...
Leshawn Rice's user avatar
0 votes
0 answers
91 views

I have a script that inventories the installed software on a machine, based on certain criteria provided in arguments. It also needs to support being buried in a very deep folder structure (Architects ...
Gordon's user avatar
  • 7,027
2 votes
1 answer
906 views

Just like in this question, I'm trying to implement an installer which starts another 3rd party driver installer at the end of the installation. This is achieved by running my installer with ...
vsz's user avatar
  • 4,955
0 votes
2 answers
3k views

I need to execute a PS which creates registry entries for the current user and right after restarts a service (admin rights needed). I found a module called RunAsUser that seems to do this very nicely....
YaKs's user avatar
  • 331

1
2 3 4 5
9