mirror of
				https://github.com/shokinn/.files.git
				synced 2025-11-04 04:28:11 +00:00 
			
		
		
		
	Add execution policy as well as -File parameter
This commit is contained in:
		
							parent
							
								
									60e16cc1ab
								
							
						
					
					
						commit
						b510d6958f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -35,9 +35,9 @@ Set-NetIPInterface -ifAlias "vEthernet (WSL)" -Forwarding Enabled
 | 
			
		|||
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
powershell.exe "${WINHOME}\enablewslhypervforwarding.ps1"
 | 
			
		||||
powershell.exe -ExecutionPolicy Bypass -File "${WINHOME}\enablewslhypervforwarding.ps1"
 | 
			
		||||
sleep 3
 | 
			
		||||
powershell.exe "Get-NetIPInterface | select ifIndex,InterfaceAlias,AddressFamily,ConnectionState,Forwarding | Sort-Object -Property IfIndex | Format-Table"
 | 
			
		||||
powershell.exe -ExecutionPolicy Bypass "Get-NetIPInterface | select ifIndex,InterfaceAlias,AddressFamily,ConnectionState,Forwarding | Sort-Object -Property IfIndex | Format-Table"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
rm ${WINHOMEWSL}/enablewslhypervforwarding.ps1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue