I need some help with the powershell code below
#include <AutoItConstants.au3>
#include <Array.au3>
#RequireAdmin
$PS='Get-NetConnectionProfile | Where-Object { $_.NetworkCategory -match "$Public" } | Set-NetConnectionProfile -NetworkCategory Private'
$sCommands = "powershell -Command " & $PS &""
$iPID = Run(@ComSpec & " /k " & $sCommands, "", @SW_SHOW , $stdout_child)
I need some help with the powershell code below
#include <AutoItConstants.au3>
#include <Array.au3>
#RequireAdmin
$PS='Get-NetConnectionProfile | Where-Object { $_.NetworkCategory -match "$Public" } | Set-NetConnectionProfile -NetworkCategory Private'
$sCommands = "powershell -Command " & $PS &""
$iPID = Run(@ComSpec & " /k " & $sCommands, "", @SW_SHOW , $stdout_child)