A
A
Anton2017-09-19 13:08:30
PowerShell
Anton, 2017-09-19 13:08:30

How to execute a script on a remote machine without a password?

Hello.
There is a computer, win7x64, outside the domain (workgroup), it has a vnc server, an antivirus (kaspersky free or eset) and other trading software. The account is included one - administrator's WITHOUT the password. This is the main bug.
I want to pour some settings with a script, but neither psexec, nor vnc, nor DameWare can help me, they all need an admin password, which is not there.
Powershell in the invoke-command part requires a computer-name, and I only have an IP, which is no good.
Script example:

for /F %%i in (iplist.txt) do (psexec64.exe %%i bcdedit /set {current} bootstatuspolicy ignoreallfailures)

psexec swears "cannot find file"
if written like this:
for /F %%i in (iplist.txt) do (psexec64.exe -u Administrator %%i bcdedit /set {current} bootstatuspolicy ignoreallfailures)

the password field appears in cmd:
I press Enter, an error occurs:
The system was not logged in: the username or password was not recognized.
Hints from stackoverflow with psexec -u Administrator -p "" or '' did not help.
How to execute commands on remote PCs?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maksim Herasim, 2017-09-19
@Tkreks

- As an option, create another account and run from it.
- Admin account without a password - bad.
Try again like this -
Start - Run - gpedit.msc - Computer Configuration - Windows Settings - Local Policies - Security Options - Accounts: Restrict use of blank passwords only for console login, set to "Disable".

E
Ethril, 2017-09-19
@Ethril

For starters, is remote logon with an empty password generally allowed for you?
https://technet.microsoft.com/en-us/library/jj8521...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question