Solved Script,Auto Logon help needed

dtoxic

New member
Local time
7:53 PM
Messages
32
Hi all, i am looking for some wizard that can help me with a script [or other solution] to my problem

I am trying to create a script witch would when executed enable Auto logon [user,password etc] only once and then reboot the computer [the computer would then auto logon after restart ] but if after that "scripted" restart the pc is restarted the normal way, auto logon should be disabled

I have found a script online but just cant get it to work properly

Link:Script Set-AutoLogon, Windows automatically login after reboot. RUNONCE AUTOLOGON

TechNet Wiki

but since i am no wizard in the realm of scripts i seek help from some one who knows what all this means

thx in advance!
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 SP1 X64
CPU
i7 4770k
Motherboard
MSI Z87 Xpower
Memory
Kingston KHX2133
Graphics Card(s)
MSI GTX 1070 8Gb
You did add that script to the group policy under Computer Configuration | Windows Settings | Scripts Startup/Shutdown ?

Group policy is Windows Pro or above snap in feature. You can access group policy by entering gpedit.msc in the search box under the start orb.


If this is what you already did, then I'm afraid I don't know. I have no idea how PowerShell scripts work. But I do know that there is a program called Autohotkey that may do the job you want. But I'm not sure.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
It looks like what you're after is this:

Code:
Set-AutoLogon -DefaultUsername "win\admin" -DefaultPassword "password123"
in the quotes of "win\admin" you add the username that will autologin. In this case it's admin. If your username is dtoxic for your PC, then the code will look like "win\dtoxic"

Now the password for the account is after the parameter -DefaultPassword. In this case it's in quotes and the password is password123. If your password is Donutsarejellyred, then it needs to be in quotes. "Donutsarejellyred"

Make sense?
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
You did add that script to the group policy under Computer Configuration | Windows Settings | Scripts Startup/Shutdown ?

Group policy is Windows Pro or above snap in feature. You can access group policy by entering gpedit.msc in the search box under the start orb.


If this is what you already did, then I'm afraid I don't know. I have no idea how PowerShell scripts work. But I do know that there is a program called Autohotkey that may do the job you want. But I'm not sure.

Nope this script will be executed remotely with task scheduler, like i wrote in the op this only needs to run on demand not every time pc restarts/shuts down but, as for the where to enter the password and username i think you are right, will tray that later today
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 SP1 X64
CPU
i7 4770k
Motherboard
MSI Z87 Xpower
Memory
Kingston KHX2133
Graphics Card(s)
MSI GTX 1070 8Gb
It looks like what you're after is this:

Code:
Set-AutoLogon -DefaultUsername "win\admin" -DefaultPassword "password123"
in the quotes of "win\admin" you add the username that will autologin. In this case it's admin. If your username is dtoxic for your PC, then the code will look like "win\dtoxic"

Now the password for the account is after the parameter -DefaultPassword. In this case it's in quotes and the password is password123. If your password is Donutsarejellyred, then it needs to be in quotes. "Donutsarejellyred"

Make sense?

Btw where do i put all this? begining of the file,end? i jost dont know what to edit and where
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 SP1 X64
CPU
i7 4770k
Motherboard
MSI Z87 Xpower
Memory
Kingston KHX2133
Graphics Card(s)
MSI GTX 1070 8Gb
I dont see why you want to do this you can run a script locally using runas to excute any admin cmds
 

My Computer

Computer type
PC/Desktop
OS
win 8 32 bit
I dont see why you want to do this you can run a script locally using runas to excute any admin cmds

Say i want to execute a script remotely with task scheduler using Pulseway when i am not on the pc localy

anyway i figured it out now working like a charm
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 SP1 X64
CPU
i7 4770k
Motherboard
MSI Z87 Xpower
Memory
Kingston KHX2133
Graphics Card(s)
MSI GTX 1070 8Gb
Back
Top