Re: Snapin Powershell 32/64 bit issue?
Hi Everyone,
I got a problem when i try to exectute this script as a snapin :
Import-Module -Name "C:\Program Files\Intel\Wired Networking\IntelNetCmdlets\IntelNetCmdlets"
if ($intelnic = Get-IntelNetAdapter){
	$networkVLANs=(
		@{"VLAN"="20";"Name"="LAN1"},
		@{"VLAN"="0";"Name"="LAN 2"}
	)
	foreach($network in $networkVLANs)
	{
		Remove-IntelNetVLAN -Parent $intelnic -VLANID $network["VLAN"]
		if (Add-IntelNetVLAN -Parent $intelnic -VLANID $network["VLAN"]) {
				Set-IntelNetVLAN -Parent $intelnic -VLANID $network["VLAN"] -NewVLANName "$($network["VLAN"]) - $($network["Name"])"
		}
	}
}
It doesn’t work because the FogClient invoke the powershell in 32bit mode, even if i use the explicit 64bit command line to the 64bit executable…