Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $nlm = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}"))
  2. $connections = $nlm.getnetworkconnections()
  3. $connections | if ($_.getnetwork().getcategory() -eq 0)
  4. {
  5.     $_.getnetwork().setcategory(1)
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement