VMware Cloud Community
Sivaramsharmar
Enthusiast
Enthusiast
Jump to solution

Putty Commands in PowerCLI without using plink

Hi All,

We are pointing the ESXi logs to remote Syslog Server. We have around 85+ Servers.

Is there any alternate way to execute below commands in PowerCLI without using plink.

ESXi Version : 6.7

vim-cmd proxysvc/remove_service "/ui" "httpsWithRedirect"

vim-cmd proxysvc/remove_service "/mob" "httpsWithRedirect"

vim-cmd proxysvc/remove_service "/" "httpsWithRedirect"

esxcli system syslog config set --loghost='tcp://FQDN:1514'

esxcli network firewall ruleset set --ruleset-id=syslog --enabled=true

esxcli system syslog reload

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Yes, you can use the Posh-SSH module.

See my Use Posh-SSH instead of PuTTY post.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Yes, you can use the Posh-SSH module.

See my Use Posh-SSH instead of PuTTY post.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos