Question
Partage Microsoft
- mnoui1
- Auteur du sujet
- Hors Ligne
- Nouveau membre
-
- Messages : 6
- Remerciements reçus 0
Je pense que :
snetcfg.exe -v -u MS_Server
snetcfg.exe -v -l %windir%\Inf\NETSERV.INF -c s -i MS_Server
Est la bonne commande mais powershell ne connait pas \"snetcfg.exe\"
a savoir : Le fichier netserv.inf existe bien.
Connexion ou Créer un compte pour participer à la conversation.
- Matthew BETTON
- Hors Ligne
- Membre platinium
-
- Messages : 968
- Remerciements reçus 0
[code:1]netsh firewall set service type=fileandprint mode=enable profile=all[/code:1]
A tester ...
Connexion ou Créer un compte pour participer à la conversation.
- mnoui1
- Auteur du sujet
- Hors Ligne
- Nouveau membre
-
- Messages : 6
- Remerciements reçus 0
merci quand meme
Connexion ou Créer un compte pour participer à la conversation.
- Matthew BETTON
- Hors Ligne
- Membre platinium
-
- Messages : 968
- Remerciements reçus 0
Voir aussi là :
How to enable “File and Printer Sharing for Microsoft Networks” on NIC with PowerShell
AS tu essayé la solution proposée dans cet article qui indique l'utilisation de nvspbind.exe ?
C:\>nvspbind /?
Hyper-V Network VSP Bind Application 6.1.7690.0.
Copyright (c) Microsoft Corporation. All rights reserved.
Usage: nvspbind option NIC protocol
Options:
/n display NIC information only
/u unbind switch protocol from specified nic(s)
/b bind switch protocol to specified nic(s)
/d disable binding of specified protocol from specified nic(s)
/e enable binding of specified protocol to specified nic(s)
/r repair bindings on specified nic(s)
/o show NIC order for specified protocol
/+ move specified NIC up in binding order for specified protocol
/- move specified NIC down in binding order for specified protocol
/++ move specified NIC up to top of binding order for specified protocol
/-- move specified NIC down to bottom of binding order for specified protocol
[code:1]
# Script to fix File and Printer Sharing on NIC
# Lets get the Display Name on all connected NIC
$Nic= Get-WmiObject -Class win32_networkadapter -computerName LocalHost -filter \"NetConnectionStatus = '2'\"
foreach ( $ServiceName in $Nic )
{
$parameters = \"-e \" + '\"' + $ServiceName.Description + '\"' + \" ms_server\"
$installStatement = [System.Diagnostics.Process]::«»Start( \"\DOMAINSHARENICFIX\NVSPBIND.exe\" , $parameters )
$installStatement.WaitForExit()
}
# Save all computers as a testfile that has run the program on the network
$computername = $env:COMPUTERNAME
New-Item \DOMAINSHARENICFIXDONE$computername.txt -type file
[/code:1]
Connexion ou Créer un compte pour participer à la conversation.
- Vous êtes ici :
-
Accueil
-
forum
-
PowerShell
-
Entraide pour les débutants
- Partage Microsoft