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