Finally, I managed to migrate my blog from GoDaddy to Amazon Lightsail, and everything looks good so far. Thanks to Amazon Lightsail for providing a static public IP (34.198.110.82). It’s really simple to migrate your blogs from any other hosting Amazon Lightsail, details information can be found here. They have very attractive pricing, which is one of the reason I
Category: Web Development
JavaScript, TypeScript, Node.js, React, Vue, Angular, Next.js, Nuxt, Svelte, HTML, CSS, Tailwind CSS, WordPress, WordPress plugin, WordPress theme, WordPress development, WooCommerce, PHP, Laravel, Django, Flask, FastAPI, GraphQL, REST API design, web performance, Core Web Vitals, SEO, web accessibility, WCAG, PWA, web app, frontend, backend, full-stack, Vite, Webpack, npm, pnpm
New Feature : EC2 Instance Console Screenshot for Boot Troubleshooting
Finally a great feature add to AWS EC2 instances (HVM virtualization only), which was requested by almost everyone. Now we can take a console screenshot of any EC2 Instances. This is now available publicly. Earlier we had to log a case with AWS Support to get the AWS Console screenshot. This is a similar feature like Boot Diagnostics for Azure
Set File System Auditing via PowerShell
For last few days, I was trying to figure out how to set file system auditing via command line. I was looking for this as I had to apply some specific audit policy on multiple file servers. From GUI, we could do this, but it will take hours of manual activity. As requirement, I had to set Success Audit policy
NTFS Permission issue with TAKEOWN & ICACLS
Most of us using TAKEOWN or ICACLS for taking ownership from command prompt, and both of them are simple to use. We generally use TAKEOWN or ICACLS with following switches to taking the ownership. takeown /F “PATH” /R /D Y /A icacls “PATH” /T /setowner Administrators But unfortunately, TAKEOWN & ICACLS both might failed on certain scenario, as there are
OS Dependent Logoff/Logon Script run via GPO
Use following VBS script Startup or Shutdown script.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Option Explicit Dim objItem, colItems, objWMIService, strComputer, objShell strComputer = "." Set objShell = CreateObject("WScript.Shell") Set objWMIService = GetObject("winmgmts:\" & strComputer & "rootcimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48) For Each objItem in colItems If InStr(objItem.Caption,"2000") Then 'Add your line here for 2000 objShell.Run "regedit", 1, True End If If InStr(LCase(objItem.Caption),Lcase("XP")) Then 'Add your command line here for 2000 objShell.Run "calc", 1, True End If If InStr(LCase(objItem.Caption),Lcase("2003")) Then 'Add your command line here for 2000 objShell.Run "notepad", 1, True End If Next |
with above script, on Windows 2000 it will execute regedit.exe, on Windows XP it will execute calc.exe, and on Windows 2003 it will execute notepad.exe. You can change the file as you wish..




