Pooja_20 15 Newbie Poster

I ran above code but LogonUser() returning with false.what would be the problem?

rproffitt commented: Windows changed over the years. You may have to research new ways and create new code. Also, why not a batch file? +15