• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Snapin Powershell 32/64 bit

    Scheduled Pinned Locked Moved
    Windows Problems
    1
    1
    599
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      esequiel
      last edited by

      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…

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post

      316

      Online

      12.0k

      Users

      17.3k

      Topics

      155.2k

      Posts
      Copyright © 2012-2024 FOG Project