0

I have a powershell script that takes an input parameter (int). the script then updates the status of the service based on this input parameter. I have been working on this task using the powergui editor .

Screencap from powergui window

enter image description here

enter image description here

Whenever I try to run the script from the command line of powershell file, there is nothing that's being reported by powershell . No output .. nothing.
Screencap from powershell window

enter image description here Can you please let me know what might be happening here.

Thanks

1

1 Answer 1

0

Maybe you called the programm services.exe from the command line. You might try to rename your function.

You might know the following allready, but did you parse your powershell script before you called your function? This is nessesary to include your function into the shell. You have to invoke D:\ps>.\myScript.ps before you can use the function.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.