How to make batch script file so i can run from powershell with normal user?
CODE
# Make sure you're running [Powershell] as an Administrator.
Get-Service ssh-agent | Set-Service -StartupType Manual
# Start the service
Start-Service ssh-agent
# This should return a status of Running
Get-Service ssh-agent
# Now load your key files into ssh-agent
ssh-add "C:\Users\Tech Support\.ssh\id_rsa2.pub"
Get-Service ssh-agent | Set-Service -StartupType Manual
# Start the service
Start-Service ssh-agent
# This should return a status of Running
Get-Service ssh-agent
# Now load your key files into ssh-agent
ssh-add "C:\Users\Tech Support\.ssh\id_rsa2.pub"
Now i run as manual and run as administrator.
Please advice.
Thanks.
May 29 2025, 04:00 PM, updated 7 months ago
Quote
0.0127sec
0.98
6 queries
GZIP Disabled