If you like then share Please So others can also get benefit/knowledge !!!!!
Firstly enable-psremoting on both computers.
Firstly enable-psremoting on both computers.
Then add a computer name in trustedhost list in each comp from WSMAN
set-item wsman:\localhost\client\ trustedhosts -value "name of other computer without quote"
then do action from non-domain pc to domain joined pc
invoke-command -scriptblock {get-service} -computername lon-cl1 -credential adatum\administrator
How to configure a Non-domain join computer form domain join pc from psremoting and psWebAccess
firstly enable psremoting
then install-windowsfeature windowspowershellwebaccess
then get-command -module powershellwebaccess
install-pswawebapplication with default application name and with certificate syntax (if default app name then https://compname/pswa otherwise https://compname/application name that you have given at installation time)
add-pswaauthorizationrule -computername lon-dc1 -configurationname microsoft.powershell -username lon-dc1\administrator
and go to other comp and access
(if default app name then https://compname/pswa otherwise https://compname/application name that you have given at installation time)
No comments:
Post a Comment