Jump to content











Photo
- - - - -

in winpe10 how to change public profil to private profil ?


  • Please log in to reply
2 replies to this topic

#1 noel

noel

    Frequent Member

  • Advanced user
  • 178 posts
  • Location:nantes
  •  
    France

Posted 15 March 2016 - 10:06 PM

Hi,

I'm trying to put WinRm in winpe10.

When i launch "winrm quickconfig -q", the error message is :

"WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Private and try again.".

I can launch WF.msc in winpe10.

But i don't find a way to modify the profil.

 

thanks for your reply.

 

ps : My winpe is build MicroWinpeBuilder, a set of PS script. See Google ...



#2 noel

noel

    Frequent Member

  • Advanced user
  • 178 posts
  • Location:nantes
  •  
    France

Posted 15 March 2016 - 11:17 PM

in fact, the message is a warning not an error.

After i launch the command "winrm set winrm/config/client @{TrustedHosts="*"}", i can work on the remote computer.

 

So, from winpe10, i can use PS commande like "invoke-commande -computername ...." for working with a remote computer

 

 

I can also create a rule for winrm (port 5985) with" netsh advfirewall firewall Add rule name="NONO-5985-winrm" dir=in protocol=tcp localport=5985 action=allow"

At this time, i can't access the winpe computer from a win10. An other storie.

 

But the initiale question stay : how to change the network profile from public to private ?

Thanks



#3 noel

noel

    Frequent Member

  • Advanced user
  • 178 posts
  • Location:nantes
  •  
    France

Posted 18 March 2016 - 09:40 PM

hi,

 

find on internet :

# Get network connections
$networkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}"))
$connections = $networkListManager.GetNetworkConnections()

# Set network location to Private for all networks
$connections | % {$_.GetNetwork().SetCategory(1)}

 

In winpe10, i can see the profile is now private when i click "open Network and Sharing Center".

 

But with wf.msc, i see no change, the "public profile is active".

 

With wf.msc i can allow "inbound connctions" : but winrm from a win10 to winpe10 is still no working.

 

What can i do ?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users