Answer the question
In order to leave comments, you need to log in
How to save credential for winrm?
I'm just learning how to control my computer remotely using powershell.
It turns out to connect like this:
Enter-PSSession -ComputerName 10.15.29.8 -Credential $crd
$crd = Get-Credential
$crd
will not remain. Answer the question
In order to leave comments, you need to log in
Hello!
Rather, the problem is not in the wokomerc.
Check the following items:
- PHP version - PHP
configuration (memory_limit is desirable. It should be 256 and higher and other parameters)
- enable debugging in wp-config and check
- clear htaccess and re-create
- if the site was transferred, then check if everything is correct imported (DB)
- update permalink structure don't forget to replace urls and paths (better search replace plugin)
Got it!
In order not to have to enter the password each time, we save it in encrypted form to a file:
$crd = Get-Credential
$crd.Password | ConvertFrom-SecureString | Set-Content pass.txt
$user = ″domain\administrator″
$password = Get-Content pass.txt | ConvertTo-SecureString
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user, $password
Enter-PSSession -ComputerName 10.15.29.8 -Credential $cred
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question