OBXMAN007
Contributor
Contributor

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

Jump to solution

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

This is found in vcenter under Configuration - Security Profile

Thanks in advance!!

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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

0 Kudos
2 Replies
LucD
Leadership
Leadership

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

0 Kudos
OBXMAN007
Contributor
Contributor

Hi Luc,

Luc you ROCK THE PLANET.

The code worked perfectly.

Thanks very much!!!!

OBXMAN007

0 Kudos