Configures the computer to receive remote commands. (Enable-PSRemoting)

   

# NAME
Enable-PSRemoting

# SYNOPSIS
Configures the computer to receive remote commands.

# SYNTAX
Enable-PSRemoting [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]

# DESCRIPTION
The Enable-PSRemoting cmdlet configures the computer to receive Windows PowerShell remote commands that are sent by using the WS-Management technology.

You need to run this command only once on each computer that will receive commands. You do not need to run it on computers that only send commands. Because the configuration activates listeners, it is prudent to run it only where it is needed.

The Enable-PSRemoting cmdlet performs the following operations:

-- Runs the Set-WSManQuickConfig cmdlet, which performs the following tasks:
----- Starts the WinRM service.
----- Sets the startup type on the WinRM service to Automatic.
----- Creates a listener to accept requests on any IP address.
----- Enables a firewall exception for WS-Management communications.

-- Enables all registered Windows PowerShell session configurations to receive instructions from a remote computer.
----- Registers the "Microsoft.PowerShell" session configuration, if it is not already registered.
----- Registers the "Microsoft.PowerShell32" session configuration on 64-bit computers, if it is not already registered.
----- Removes the "Deny Everyone" setting from the security descriptor for all the registered session configurations.
----- Restarts the WinRM service to make the preceding changes effective.

To run this cmdlet on Windows Vista, Windows Server 2008, and later versions of Windows, you must start Windows PowerShell with the "Run as administrator" option.

# PARAMETERS
-Force [<SwitchParameter>]
Suppresses all user prompts. By default, you are prompted to confirm each operation.

Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false

-Confirm [<SwitchParameter>]
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf [<SwitchParameter>]
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
None
You cannot pipe input to this cmdlet.

# OUTPUTS
System.String
Enable-PSRemoting returns strings that describe its results.

# NOTES

# EXAMPLE 1

C:\PS>enable-psremoting

# Description
-----------
This command configures the computer to receive remote commands.

# EXAMPLE 2

C:\PS>enable-psremoting -force

# Description
-----------
This command configures the computer to receive remote commands. It uses the Force parameter to suppress the user prompts.

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=144300
about_Remote
about_Session_Configurations
Disable-PSRemoting
Get-PSSessionConfiguration
Enable-PSSessionConfiguration
Disable-PSSessionConfiguration
Register-PSSessionConfiguration
Set-PSSessionConfiguration
WS-Management Provider

C:\Windows>powershell get-help Invoke-Command -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows-10 / Windows-8.1 & 8 / Windows-7 & Vista / Windows Server 2008-2016
»»»» ColorConsole



 


... Home  
... Impressum
... ColorConsole

... CMD
... Netsh-XP
... Netsh-7
... Netsh-Vista
... Powershell





;-)









Download the Windows 7 Starter, Home (Basic Premium), Professional und Ultimate!

... facebook.de
0.062
Anpassen von Windows SmartScreen in Win 8.1 und 8 / 10 (ausschalten, deaktivieren)!  / How to disable Grouping in Folder-Size View?  / Wie deinstalliere ich Programme bei Windows-7?  / Kann ich den Vista Explorer.exe In Windows-XP verwenden?  / Tastenkürzel um Windows Programme neu zu starten?  / Wie kann ich verhindern, dass winrar die ZIP-und CAB-Dateien öffnet?  / I'm missing a option 'Auto column width'?  / How long does the installation of Windows 8 and 8.1?  / Kann ich meine Windows XP Wallpaper bei Windows 7 einsetzen, außer die in Designs für Windows 7?  / Can I change drive name in windows 10, how to?  / In Windows 7 bestimmte Anwendungen, bzw. Programme immer als Administrator ausführen, bzw. starten?  / Disable numeric sorting in MS Explorer (file, folder)!  /