Create_User.bat


@ECHO OFF REM Get username and password from user's input set var1=%1 set var2=%2 REM Don't allow user to change password NET USER %var1% %var2% /add /expires:never /passwordchg:no REM User's password never expire wmic useraccount where "Name='%var1%'" set Passwordexpires=false REM Add user to remote desktop group NET localgroup "Remote Desktop Users" %var1% /add REM Create … Continue reading Create_User.bat →

How to backup SQL logs and truncate them in BE 2012


This article is quoted from http://www.symantec.com/connect/articles/how-backup-sql-logs-and-truncate-them-be-2012If your SQL database is set to Full Recovery Mode, it maintains transaction logs.  If these logs are not truncated from time to time, they will grow and eventually fill up your disk.  BE will warn you that you need to truncate your log.V-79-40960-37914 - Database database_name is configured to … Continue reading How to backup SQL logs and truncate them in BE 2012 →

IIS Error: A specified logon session does not exist


After updated the certificate on the IIS web server today, we found that the web farm replication stopped working. And gave us an error message: I googled and tried the following two solutions, but neither of them worked for me. http://phaq.phunsites.net/2010/12/09/binding-ssl-in-iss-causes-a-specified-logon-session-does-not-exist-it-may-already-have-been-terminated-error/ http://social.technet.microsoft.com/Forums/en-US/winserversecurity/thread/4a2bcc5b-8845-4bda-a6ae-70a0503e9a6f Then I poked around and to my surprise I found the ‘SSL certificate’ … Continue reading IIS Error: A specified logon session does not exist →