Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Running powershell scripts on local machine

$
0
0

Hi, 

I am fairly new to all this PowerShell stuff. Can someone tell me the best way to create a PowerShell Script which includes admin rights. (if it is required)

Let me explain: 

I have a problem with my friends computer, there will be no audio coming through the computer, normally after an update. Once the service Audiosrv is restarted it works. 

(I know he could try get it fixed but he is lazy just trying to help him out when I am not there) 

I have created the script but get the error when running it. 

"restart-service : Service 'Windows Audio (audiosrv)' cannot be stopped due to the following error: Cannot open
audiosrv service on computer '.'.  "

Script is - restart-service audiosrv


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>