# Adding a domain user to remote PC

**URL:** <https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549>\
**Category:** PowerShell Help\
**Created:** [May 18, 2021, 4:06am UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549 "2021-05-18T04:06:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gideonk](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@gideonk](https://forums.powershell.org/u/gideonk)\
**Post date:** [May 18, 2021, 4:06am UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/1 "2021-05-18T04:06:47Z")

</div>

Hello all, I wish to add myself as a domain user to remote PC’s on our network.  
I tried: lusrmgr.msc /computer=computername and I got ‘Access denied’ when I tried to add myself.  
Invoke-command is unsuccessful because WinRM has not started on remote PC.

Is there any way for me to achieve this without having to visit each PC and log in as local administrator?

Thanks.

---

<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:** [May 18, 2021, 4:10am UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/2 "2021-05-18T04:10:22Z")

</div>

> [@gideonk](#):
>
> Is there any way for me to achieve this without having to visit each PC and log in as local administrator?

How about using GPOs? They are made for. 😉

---

<div class="post-metadata">

**Author:** ![gideonk](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@gideonk](https://forums.powershell.org/u/gideonk)\
**Post date:** [May 18, 2021, 4:14am UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/3 "2021-05-18T04:14:32Z")

</div>

Thanks, but don’t actually have rights to the Active directory and am not the overall administrator of the domain. Of course I could ask the Domain administrator to do this for me.

---

<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:** [May 18, 2021, 4:16am UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/4 "2021-05-18T04:16:44Z")

</div>

You would need to be an administrator anyway to add accounts to the local administrator group. 😉

---

<div class="post-metadata">

**Author:** ![gideonk](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@gideonk](https://forums.powershell.org/u/gideonk)\
**Post date:** [May 18, 2021, 4:25am UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/5 "2021-05-18T04:25:51Z")

</div>

Thanks Olaf.  
Another and perhaps a better way of asking is: how can I log in to a PC as a local administrator from a remote PC? I have the password.  
Regards.

---

<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:** [May 18, 2021, 4:44am UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/6 "2021-05-18T04:44:44Z")

</div>

Now you’re really off topic. Did you at least try to search for it first? 🤔 🧐 It would have taken you seconds to find RDP / mstsc.exe

---

<div class="post-metadata">

**Author:** ![kvprasoon](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kvprasoon/32/4449_2.png) [@kvprasoon](https://forums.powershell.org/u/kvprasoon)\
**Post date:** [May 18, 2021, 4:54am UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/7 "2021-05-18T04:54:14Z")

</div>

@gideonk if you don’t have access to do it locally, then same is the case when you try remotely.

---

<div class="post-metadata">

**Author:** ![tonyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tonyd/32/1041_2.png) [@tonyd](https://forums.powershell.org/u/tonyd)\
**Post date:** [May 18, 2021, 3:16pm UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/8 "2021-05-18T15:16:11Z")

</div>

Try searching google for “gpo add user to local administrators group”

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:26pm UTC](https://forums.powershell.org/t/adding-a-domain-user-to-remote-pc/16549/9 "2024-05-16T20:26:24Z")

</div>

Closed on May 16, 2024, 8:26pm UTC


