I'm trying to connect to a non-domain joined remote Win2008R2 server using PS from a Win8 host (same subnet, it's a local VM). Tried everything I could find, nothing works. SERVER: PS C:\Users\Administrator> winrm quickconfig PS C:\Users\Administrator> enable-psremoting CLIENT: PS C:\scripts> $cred = get-credential -username "administrator" -message "Enter password" PS [...] read more
I'm trying to run a very simple Powershell DSC script locally. (I never plan on pulling or pushing configuration files at this stage) I get the following error message. The WS-Management service is running, but there are no firewall holes or ports reserved (server happens to be a webserver)... Is [...] read more
Summary: I want to be able to monitor the computers on my network, but don't need it to be automated. We're too small to purchase anything like MOM, but too big to do anything manually (~100 machines in two locations). I just keep running into issues, and was wondering if [...] read more
Whatever winrm command I issue I get, > The client cannot connect to the destination specified in the request ... > Error number: -2144108526 0x80338012 I checked all the usual suspects. The service is running. All updates have been applied. I would like to uninstall the WinRM service and reinstall [...] read more
I am trying to change settings on WinRM however I keep getting an error. I have read many articles across the web about it but I cannot get any of the suggested fixes to work When I try to get the winRM quickconfig, which is the common suggested fix, to [...] read more
I just opened an Azure Automation account with a free subscription, in an attempt to experiment with DSC. I've been unable to register an on-premises node with the pull server, any help would be appreciated. > Set-DscLocalConfigurationManager -path C:\Users\eric\DSC\DscMetaConfigs > -Verbose the error I get is: > PS C:\WINDOWS\system32> Set-DscLocalConfigurationManager [...] read more
I have successfully set up 2 subscriptions for collector initiated and they are fowarding events. Now I am attempting to add a 3rd subscription to get the logs for all my desktops, so due to the number of them, I'm using source initiated to use groups. I'm assuming I can [...] read more
This may be long so please bear with me. The Goal: Use terraform to create an azure-vm that an azure-devops release pipeline can use Remote PowerShell on Target Machines step to deploy and start a windows service. The problem: After creating the VM using Terraform, RDP to the VM and [...] read more
I'm trying to execute a powershell script from c# on Windows 10 and getting an Access Denied error. Here is my code so far: var powerShellCommand = $"Invoke-Command -ScriptBlock {{ pdqdeploy Deploy -Package \"{packageName}\" -Targets \"{machineName}\" }}"; var passwordSecureStringAdmin = new SecureString(); var passwordAdmin = "daadminpw"; for (int i = [...] read more
I'm running into an issue when I attempt to run the 'Azure Resource Group Deploy' release task to create/update a resource group and the resources within it via an ARM Template. In particular, I need to have the Virtual Machine created by the ARM template accessible via WinRM; This needs [...] read more
I am unable to get around the following Powershell remoting error in my Windows 10 Machine. Firstly I am attempting to execute the following. PS: >Start-DscConfiguration -Wait -Verbose -Force -Path $outPath VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConf igurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'. The client cannot [...] read more
I want to test whether or not winrm is running on a list of servers. winrm id -r:servername works for individual systems but I want to test recursively for a list from a csv or text file. With output to a file saying "working" or "not working" for each. How [...] read more
I want to kill a process remotely in powershell using invoke-command -cn computername -script { stop-process name } I made sure the network at the destination computer wasn't set to public, and I managed to run enable-psremoting on the destination. Now trying to run Invoke-Command ... at the source but [...] read more