Windows 10: WinRM issue on Domain Controller - no access to remote execute PowerShell script

Discus and support WinRM issue on Domain Controller - no access to remote execute PowerShell script in Windows 10 Gaming to solve the problem; I've created a script that self-provisions a virtual server on behalf of a user, that script at the end calls a remote script on the domain controller... Discussion in 'Windows 10 Gaming' started by Steven Young2, Aug 11, 2023.

  1. WinRM issue on Domain Controller - no access to remote execute PowerShell script


    I've created a script that self-provisions a virtual server on behalf of a user, that script at the end calls a remote script on the domain controller to handle the rebooting of the device, and manage the device while its rebooting because Restart-Computer -Wait doesn't work.Once the machine finishes restarting, the domain controller invokes other scripts on it to install the software required for that particular build.Now, I previously had everything working, except the acquisition of files from the domain controller's share back on the target machine. For all I can understand, the "doubl

    :)
     
    Steven Young2, Aug 11, 2023
    #1
  2. VicImp Win User

    Unable to configure WinRM on domain user

    Hi everyone,

    I'm unable to configure WinRM on a domain computer. I have a simple domain with

    1) Windows server 2012

    2) A client running Windows 7

    If I try to run WinRM on the local Administrator, everything works fine, but if I switch to a domain user, than problems occured.

    For example, if i run winrm quickconfig in powershell as the domain Administrator, then I get:

    WinRM already is set up to receive requests on this machine.

    WSManFault

    Message = WinRM cannot process the request. The following error occured while using Negotiate authentication: An unknown security error occurred.

    Possible causes are:

    -The user name or password specified are invalid.

    -Kerberos is used when no authentication method and no user name are specified.

    -Kerberos accepts domain user names, but not local user names.

    -The Service Principal Name (SPN) for the remote computer name and port does not exist.

    -The client and remote computers are in different domains and there is no trust between the two domains.

    After checking for the above issues, try the following:

    -Check the Event Viewer for events related to authentication.

    -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use

    HTTPS transport.

    Note that computers in the TrustedHosts list might not be authenticated.

    -For more information about WinRM configuration, run the following command: winrm help config.

    Error number: -2144108387 0x8033809D

    An unknown security error occurred.

    When i run it as local admin, everything goes well.

    So, what am I missing?
     
    VicImp, Aug 11, 2023
    #2
  3. WinRM remoting server with local Adminnistrator account

    I have a server Windows 2012R2 Standard in the domain. I can have a powershell remote session when i use a domain account. but it doesnt work using a local account. both user accounts are in the administrators group

    the following command is working fine.

    but the following command using a local account

    raises the following error message

    New-PSSession : [myservername] Connecting to remote server myservername failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x80090311 occurred while using Kerberos
    authentication: We can't sign you in with this credential because your domain isn't available. Make sure your device is connected to your organization's network and try again. If you previously signed in on this device with another credential, you can sign
    in with that credential. Possible causes are: -The user name or password specified are invalid. -Kerberos is used when no authentication method and no user name are specified. -Kerberos accepts domain user names, but not local user names. -The Service Principal
    Name (SPN) for the remote computer name and port does not exist. -The client and remote computers are in different domains and there is no trust between the two domains. After checking for the above issues, try the following: -Check the Event Viewer for events
    related to authentication. -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport. Note that computers in the TrustedHosts list might not be authenticated. -For more information
    about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic. At line:1 char:1 + New-PSSession -ComputerName myservername -Credential my ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTran sportException + FullyQualifiedErrorId : AuthenticationFailed,PSSessionOpenFailed
     
    ShahyadSharghi, Aug 11, 2023
    #3
  4. graye Win User

    WinRM issue on Domain Controller - no access to remote execute PowerShell script

    graye, Aug 11, 2023
    #4
Thema:

WinRM issue on Domain Controller - no access to remote execute PowerShell script

Loading...
  1. WinRM issue on Domain Controller - no access to remote execute PowerShell script - Similar Threads - WinRM issue Domain

  2. WinRM issue on Domain Controller - no access to remote execute PowerShell script

    in Windows 10 Network and Sharing
    WinRM issue on Domain Controller - no access to remote execute PowerShell script: I've created a script that self-provisions a virtual server on behalf of a user, that script at the end calls a remote script on the domain controller to handle the rebooting of the device, and manage the device while its rebooting because Restart-Computer -Wait doesn't...
  3. WinRM issue on Domain Controller - no access to remote execute PowerShell script

    in Windows 10 Software and Apps
    WinRM issue on Domain Controller - no access to remote execute PowerShell script: I've created a script that self-provisions a virtual server on behalf of a user, that script at the end calls a remote script on the domain controller to handle the rebooting of the device, and manage the device while its rebooting because Restart-Computer -Wait doesn't...
  4. Unable to execute the Powershell scripts on Windows 11

    in Windows 10 Software and Apps
    Unable to execute the Powershell scripts on Windows 11: Hi, I am trying to execute the "Powershell" scripts on Windows 11 which was working great in Windows10.But, I am unable to execute it on Windows 11. So, I have tried executing the PS1 script is multiple ways, 1. Right click -> Run Powershell=> Powershell screen was blinked...
  5. Unable to execute the Powershell scripts on Windows 11

    in Windows 10 Gaming
    Unable to execute the Powershell scripts on Windows 11: Hi, I am trying to execute the "Powershell" scripts on Windows 11 which was working great in Windows10.But, I am unable to execute it on Windows 11. So, I have tried executing the PS1 script is multiple ways, 1. Right click -> Run Powershell=> Powershell screen was blinked...
  6. Issue in Powershell script

    in Windows 10 Gaming
    Issue in Powershell script: HI Team,We have a power shell script. It will check if the user is available in the ACL list of ADL. To get the ACL list, we are connecting to the Azure Datalake storage using Connect-AzAccount and authenticating with SPN. To get the group member details, we authenticate the...
  7. Issue in Powershell script

    in Windows 10 Software and Apps
    Issue in Powershell script: HI Team,We have a power shell script. It will check if the user is available in the ACL list of ADL. To get the ACL list, we are connecting to the Azure Datalake storage using Connect-AzAccount and authenticating with SPN. To get the group member details, we authenticate the...
  8. Powershell script to remove computer from Domain

    in Windows 10 Software and Apps
    Powershell script to remove computer from Domain: Hello,I am trying to remove computers from the domain with a powershell script.I will be using the Local Admin. credentials to remove the devices from the domain so users don't have to type in anythingI have encrypted the password with the following commands:Creating the...
  9. Powershell 2 scripts Execution

    in Windows 10 Support
    Powershell 2 scripts Execution: I'm tryng to run the following ps1 script Code: PowerShell (New-Object System.Net.WebClient).DownloadFile('https://server/file1.ps1','file1.ps1');Start-Process 'file1.ps1' PowerShell (New-Object...
  10. Execute Powershell command on remote computer

    in Windows 10 Network and Sharing
    Execute Powershell command on remote computer: Hello, I would like to execute a PowerShell command on a remote computer. The command is the following: Invoke-Command -ComputerName 10.40.27.174 -ScriptBlock { Get-ChildItem C:\ } -credential User I get the following error: [10.40.27.174] La connexion au serveur...