-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Windows example of raw command #47153
Conversation
Perform shutdown of Windows OS using Microsoft.PowerShell.Management module
This isn't something we want as shutting down a host can lead to other issues with Ansible. Happy to show another PowerShell example but not one that shutdowns the server. |
Hi @jvandermeulen, thank you for submitting this pull-request! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This commit also cleans up some of the description sections.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. It is good to have a Windows example, and Stop-Computer is a useful example at that. I slightly modified the example and did some more cleanup to the docs.
I was happy to merge this before I noticed jborean93 objected to the example :-/
@jvandermeulen Since @jborean93 objects to the example, I replaced it with an invocation of Although something like that would work as well with the |
@dagwieers Excellent idea! |
* Add Windows example of raw command Perform shutdown of Windows OS using Microsoft.PowerShell.Management module * Capitalized cmdlet, remove quotes and improve description This commit also cleans up some of the description sections. * Use another example as suggested by jborean93 I was happy to merge this before I noticed jborean93 objected to the example :-/ * Fix whitespace issue
Perform shutdown of Windows OS using Microsoft.PowerShell.Management module
SUMMARY
Add first example for Windows boxes
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
ADDITIONAL INFORMATION