Hi All,
i´m new in the windows world.
i'm tried stop/start remote services with powershell and i have some problems.
when run this simple command i can't get works.
PS C:\Users\pcalcina\scripts> Get-Service -ComputerName WIN-BBHP0FR0M7U
Get-Service : No se puede abrir el administrador de control de servicios en el equipo 'WIN-BBHP0FR0M7U'. Puede que se r
equieran otros privilegios para realizar la operación.
En línea: 1 Carácter: 12
+ Get-Service <<<< -ComputerName WIN-BBHP0FR0M7U
+ CategoryInfo : NotSpecified: (:) [Get-Service], InvalidOperationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetServiceCommand
i runned those commands in the remote server.
PS C:\Users\Administrator> winrm quickconfig
WinRM service is already running on this machine.
WinRM is already set up for remote management on this computer.
PS C:\Users\Administrator> Set-Item WSMan:\localhost\Client\TrustedHosts *
WinRM Security Configuration.
This command modifies the TrustedHosts list for the WinRM client. The computers in the TrustedHosts list might not be
authenticated. The client might send credential information to these computers. Are you sure that you want to modify
this list?
Yes
No
Suspend [?] Help (default is "Y"): Y
PS C:\Users\Administrator>
PS C:\Users\Administrator> Enable-PSRemoting
WinRM Quick Configuration
Running command "Set-WSManQuickConfig" to enable remote management of this computer by using the Windows Remote
Management (WinRM) service.
This includes:
1. Starting or restarting (if already started) the WinRM service
2. Setting the WinRM service startup type to Automatic
3. Creating a listener to accept requests on any IP address
4. Enabling Windows Firewall inbound rule exceptions for WS-Management traffic (for http only).
Do you want to continue?
Yes
Yes to All
No [L] No to All
Suspend [?] Help (default is "Y"): Y
WinRM is already set up to receive requests on this computer.
WinRM is already set up for remote management on this computer.
Confirm
Are you sure you want to perform this action?
Performing the operation "Set-PSSessionConfiguration" on target "Name: microsoft.powershell SDDL:
O:NSG:BAD:P(A;;GA;;;BA)(A;;GA;;;RM)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD). This lets selected users remotely run Windows
PowerShell commands on this computer.".
Yes
Yes to All
No [L] No to All
Suspend [?] Help (default is "Y"): Y
Confirm
Are you sure you want to perform this action?
Performing the operation "Set-PSSessionConfiguration" on target "Name: microsoft.powershell.workflow SDDL:
O:NSG:BAD:P(A;;GA;;;BA)(A;;GA;;;RM)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD). This lets selected users remotely run Windows
PowerShell commands on this computer.".
Yes
Yes to All
No [L] No to All
Suspend [?] Help (default is "Y"): A
but i don't get solution for the error.
someone could help my please?
Regards
Kinder