Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

trying to get this script to work

$
0
0

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name "UserAuthentication" -Value 3
([ADSI] "WinNT://localhost/Administrators").remove('WinNT://localsetup')
([ADSI] "WinNT://localhost/Administrators").add('WinNT://mydomain.com/tjackson')
{enable-psremoting -force}

 

I am trying to get all this to run at the same time. any ideas?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>