I want to execute 3 different files when I click on the .ps1. I want it to already have the elevated credentials within
$credential = New-Object System.Management.Automation.PsCredential(".administrator", (ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force))
Start-Process CMD.exe -Verb runAs -PassThru
Get-Item -FilePath '\\I:\Mo Khalifa\eBillingHub\utils\addper.bat'
Get-Item -FilePath '\\I:\Mo Khalifa\eBillingHub\utils\AddToTrustedSites.reg'
Get-Item -FilePath '\\I:\Mo Khalifa\eBillingHub\utils\DotNetPermissions.reg'
I don't know if its doing anything