Posts

Showing posts from October, 2024

How to enable automatic sign-in after Windows server reboot?

Image
 Nguồn:https://manage.accuwebhosting.com/knowledgebase/4774/How-to-enable-automatic-sign-in-after-Windows-server-reboot.html How to enable automatic sign-in after Windows server reboot? 2 Print It is highly recommended to keep your Windows Server password protected to ensure the security of your system. Setting a password for logging in is a crucial step in safeguarding your server. However, if you are the sole user of the server and there is no possibility of unauthorized access, you may consider enabling the Windows Server auto login feature. This feature eliminates the need to enter your password every time you start your computer, thereby reducing the boot time. Nevertheless, it is important to exercise caution when using automatic login on Windows. While it offers convenience, it also compromises the overall security of your computer. Enabling autologon should only be done if you are the sole user of the computer and can guarantee that no unauthorized individuals can physicall...

Hướng dẫn gửi email thông báo khi startup

Image
  I. Tạo file script powershell. Tạo một file powershell script (đuôi .ps1) với nội dung như bên dưới: Trong đó: $smtpServer và $smtpPort : mail server và port SMTP tương ứng sử dụng để gửi email. $Username và $Password : thông tin xác thực (đăng nhập) vào mail server. $email1, $email2 : các địa chỉ email nhận thông báo. Subject : phần tiêu đề email cảnh báo Body : nội dung email cảnh bảo Trong phạm vi nội dung bài viết, file được tạo là testmail.ps1 #Địa chỉ email nhận $email1 = 'you@domain.com' $email2 = 'yourPartner@domain.com' $smtpServer = 'mail.domain.com' $smtpPort = '25' #Nếu bạn sử dụng dịch vụ mail hosting của Long Vân https://longvan.net/mail-hosting.html #$smtpServer = 'mail.longvan.net' #$smtpPort = '25' #Nếu bạn sử dụng gmail #$smtpServer = 'smtp.gmail.com' #$smtpPort = '587' #Thông tin đăng nhập $Username = 'username@domain.com' $Password = 'password' $message = ne...

Microsoft Office Excel cannot access the file Microsoft.Office.Interop.Excel

 Nguồn:https://stackoverflow.com/questions/7106381/microsoft-office-excel-cannot-access-the-file-c-inetpub-wwwroot-timesheet-app/7386967#7386967 0 I've been searching around and The following two solutions both worked for me. Change to interactive user Steps: Run  dcomcnfg Go to Console Root \Component Services\Computers\My Computer\DCOM Config\Microsoft Excel Application Right click Microsoft Excel Application Select Properties Go to Identity tab Select The interactive user. In step 2, if you can't locate that path then try running  mmc comexp.msc /32  instead of  dcomcnfg . Create the directory C:\Windows\SysWOW64\config\systemprofile\Desktop