# Windows automation script

**URL:** <https://forums.powershell.org/t/windows-automation-script/22247>\
**Category:** PowerShell Help\
**Created:** [April 29, 2023, 12:12pm UTC](https://forums.powershell.org/t/windows-automation-script/22247 "2023-04-29T12:12:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogi](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@yogi](https://forums.powershell.org/u/yogi)\
**Post date:** [April 29, 2023, 12:12pm UTC](https://forums.powershell.org/t/windows-automation-script/22247/1 "2023-04-29T12:12:04Z")

</div>

im looking a powershell script for windows automation  
like adding remote system to domain  
create a local accont called scantool  
add this local account to local adminstrator group  
and set some complex password to this acount

now the main challnege i have scripts but most of times i hit with error like winrm/wmi and RCP errors any suggession on getting right script

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [April 29, 2023, 7:25pm UTC](https://forums.powershell.org/t/windows-automation-script/22247/2 "2023-04-29T19:25:34Z")

</div>

yogesh,  
Welcome to the forum. 👋🏼

> [@yogi](#):
>
> now the main challnege i have scripts but most of times i hit with error like winrm/wmi and RCP errors any suggession on getting right script

It’s nearly impossible to recommend something meaningful without seeing your code. So please share your code and the according error messages completely - both formatted as code please. (If you have several errors it might be easier when you create for each code snippet and the according error message a seperate forum question 🤷🏼‍♂️ )

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [February 10, 2024, 5:34pm UTC](https://forums.powershell.org/t/windows-automation-script/22247/3 "2024-02-10T17:34:05Z")

</div>

Closed on February 10, 2024, 5:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
