Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RunConsole2
#20
I want to use the command line to set the administrator password. If I generate the exe file from the macro, which method is more secure. Is there a safer way to set a password?  Smile

Macro Macro2
Code:
Copy      Help
str d="$system$"
str pwd="123456"
str s1=
F
;@echo off
;cd {d.expandpath}
;net user administrator {pwd}
out s1

__TempFile f.Init(".bat" "" "" s1)

str ss1
RunConsole2 f ss1
mes ss1

Macro Macro1
Trigger SF9     Help - how to add the trigger to the macro
Code:
Copy      Help
str d="$system$"
str s1=
F
;@echo off
;cd {d.expandpath}
;net user administrator 123456
out s1

__TempFile f.Init(".bat" "" "" s1)

str ss1
RunConsole2 f ss1
mes ss1


Messages In This Thread
RunConsole2 - by Valentin - 09-23-2018, 08:13 PM
RE: RunConsole2 - by Kevin - 09-23-2018, 08:48 PM
RE: RunConsole2 - by Gintaras - 09-24-2018, 06:41 AM
RE: RunConsole2 - by Valentin - 09-24-2018, 08:31 AM
RE: RunConsole2 - by Gintaras - 09-24-2018, 08:45 AM
RE: RunConsole2 - by Valentin - 09-24-2018, 08:54 AM
RE: RunConsole2 - by win - 11-07-2018, 01:41 PM
RE: RunConsole2 - by Gintaras - 11-07-2018, 02:27 PM
RE: RunConsole2 - by win - 11-07-2018, 09:34 PM
RE: RunConsole2 - by Gintaras - 11-07-2018, 09:55 PM
RE: RunConsole2 - by win - 11-07-2018, 10:08 PM
RE: RunConsole2 - by win - 11-08-2018, 10:47 PM
RE: RunConsole2 - by Gintaras - 11-08-2018, 10:52 PM
RE: RunConsole2 - by win - 11-08-2018, 10:55 PM
RE: RunConsole2 - by win - 11-09-2018, 01:06 AM
RE: RunConsole2 - by Gintaras - 11-09-2018, 06:32 AM
RE: RunConsole2 - by win - 11-09-2018, 01:49 PM
RE: RunConsole2 - by Gintaras - 11-09-2018, 01:58 PM
RE: RunConsole2 - by win - 11-09-2018, 02:25 PM
RE: RunConsole2 - by win - 11-09-2018, 11:18 PM
RE: RunConsole2 - by win - 11-12-2018, 10:53 PM
RE: RunConsole2 - by Kevin - 11-13-2018, 01:11 AM
RE: RunConsole2 - by win - 11-13-2018, 01:50 AM
RE: RunConsole2 - by win - 11-13-2018, 07:06 AM
RE: RunConsole2 - by Kevin - 11-13-2018, 11:05 PM
RE: RunConsole2 - by win - 11-13-2018, 11:33 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)