Skip to main content

All Questions

Tagged with
7 questions with no upvoted or accepted answers
1 vote
0 answers
83 views

Get-Service returns service from source machine, not remote machine

I have: My local machine Remote machine one (foo1.bin.com) Remote machine two (foo2.bin.com) I have the following piece of code: Get-Service -ComputerName foo2.bin.com When I run this code from my ...
Niek Jonkman's user avatar
1 vote
0 answers
632 views

Windows Time Service is Missing

I have Windows 10 Pro installed on my PC. After the last update I have a problem with the time as it changes continuously either after startup or while using the PC. Searching online, I noticed that ...
El_Merendero's user avatar
0 votes
1 answer
79 views

Exercising clean code

I have a script that if kept on the same line, it'll be quite annoying to edit. But at the point at where I want to break line, I get the error when running, -ApplicationParameter : The term '-...
Zero596's user avatar
  • 83
0 votes
0 answers
145 views

How to check what is controlling/restarting a Windows Service or view its errors?

There are services which can be found in services.msc As example, WlanSvc the WLAN AutoConfig. How can I check which "thing" initiated a Stop or a Restart on a service? With "thing"...
karl-police's user avatar
0 votes
0 answers
618 views

Disable a device's service from powershell or command line

Just read the bold text for the basic rundown! I have a bluetooth headset that I use for gaming, however because it has a mic I have to disable the "handsfree telephony" service every time I pair the ...
Mark Deven's user avatar
  • 1,660
0 votes
1 answer
3k views

Windows service : how to run a program with administrator privileges?

I would like to create a windows service that launches a Powershell script with administrator privileges. To do so, I used PowerGUI to transform my script into an exe file and I also used PowerGUI to ...
M.Brbr's user avatar
  • 149
0 votes
0 answers
388 views

SETX not working when run as service

I have a service which invokes a batch file which runs a Powershell script which calls SETX to update an environment variable. The environment variable gets changed, but the change apparently isn't ...
Void Star's user avatar
  • 575