Magskull Informatica e tudo mais...
Back
powershell
DEC
18
PowerShell x WinRm - Erro -2147024894 0x80070002
By:
Magskull
on
DEC
18
D:\winRm quickConfig WinRM service is already running on this machine. WSManFault Message ProviderFault WSManFault Message = Unable to check the status of the firewall. Error number: -2147024894 0x80070002 The system cannot find the file specified. Estava sofrendo com esse mesmo problema faz muito tempo, sempre que tentava rodar um comando remoto alguns servidores respondiam com falha.
Read more >>
APR
02
[Powershell] Obter data e hora de servidores remotos
By:
Magskull
on
APR
02
Bem simples eu achei, você precisa de um array simples com os nomes de servidores. Fazer um for por todo ele, utilizar o Invoke-Command para rodar o comando Get-Date e tratar a saída para mostrar na mesma linha o nome do servidor e o horário. $servers = 'server-01', 'server-02' ForEach ($server in $servers) { $time = Invoke-Command -ComputerName $server -ScriptBlock {Get-Date} $server + '
Read more >>
More Posts
Create
a Mobile Site
View Site in Mobile
|
Classic
Share by: