VMware Cloud Community
OBXMAN007
Contributor
Contributor
Jump to solution

POWERCLI - Need to know how to "Enable NFS" by script

Does anyone know how to "Enable NFS" using powercli?

This is found in vcenter under Configuration - Security Profile

Thanks in advance!!

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try this

Get-VMHost <ESX-name> | Get-VMHostFirewallException -Name "NFS Client" |  Set-VMHostFirewallException -Enabled:$true

____________

Blog: LucD notes

Twitter: lucd22


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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Try this

Get-VMHost <ESX-name> | Get-VMHostFirewallException -Name "NFS Client" |  Set-VMHostFirewallException -Enabled:$true

____________

Blog: LucD notes

Twitter: lucd22


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

Reply
0 Kudos
OBXMAN007
Contributor
Contributor
Jump to solution

Hi Luc,

Luc you ROCK THE PLANET.

The code worked perfectly.

Thanks very much!!!!

OBXMAN007

Reply
0 Kudos