tencent cloud

All product documents
Tencent Smart Advisor
Injecting PowerShell Scripts for Windows Systems
Last updated: 2025-03-24 15:23:01
Injecting PowerShell Scripts for Windows Systems
Last updated: 2025-03-24 15:23:01

Background

CFG supports multi-environment and multi-system instances. In addition to Linux systems using shell scripts, PowerShell scripts can also be used to inject commands for Windows systems.

Directions

Step 1: Create an experiment

1. Log in to the Tencent Cloud Smart Advisor > Chaotic Fault Generator, enter the Experiment Management page, click Create a New Experiment, and fill in the experiment details.
2. Select Compute as the resource type, select CVM as the resource object, and add the instance.

Step 2: Select the action

Click Add Now to add fault action. Select Shell Script from the experiment action category, select Custom Action as the platform action, and then click Next.

Step 3: Fill in custom action parameters

Select powerShell as the command type, and input the custom command text.

Step 4: Execute the action

Execute the experiment and observe the execution results.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon