Here’s how to prevent a Windows RDP from being accidentally shut down. 2. Go to “Local Policies -> User Rights Management” 3. Right-click “Shut down the system” and click properties: Remove “Users” to prevent non-admin from performing a shutdown, remove administrators to disable shutdown/restart completely: Restart (or signout) and then sign in again, the user […]
Category: Windows
PHP Requirement and installation in IIS
Visual C++ 14.0 (Visual Studio 2015) for PHP 7.0 or PHP 7.1. Visual C++ 15.0 (Visual Studio 2017) for PHP 7.2, PHP 7.3 or PHP 7.4. Visual C++ 16.0 (Visual Studio 2019) for PHP 8.0, PHP 8.1, PHP 8.2 or PHP 8.3. Visual C++ 17.0 (Visual Studio 2022) for PHP 8.4. POWER SHELL SCRIPT $features = @( “Web-WebServer”, “Web-Static-Content”, “Web-Http-Errors”, “Web-Http-Redirect”, “Web-Stat-Compression”, “Web-Filtering”, “Web-Asp-Net45”, “Web-Net-Ext45”, “Web-ISAPI-Ext”, “Web-ISAPI-Filter”, “Web-Mgmt-Console”, […]
add bulk local users using csv and power shell
First row of csv must be user,pass $strComputer=$env:computername $csv = Import-CSV ./users.csv ForEach ($user in $csv ){ Create the user account and assign a default password $objOU = [adsi]”WinNT://.”$objUser = $objOU.Create(“User”, $user.user)$objuser.setPassword($user.pass)$objuser.setinfo() Enable [PasswordNeverExpires] Set-LocalUser -Name $user.user -PasswordNeverExpires:$true Add the User account to the local users Group $computer = [ADSI](“WinNT://” + $strComputer + “,computer”)$group = […]
zero tier
zerotier-cli join <network_id>. we no longer support Windows 7/Server 2012 R2 Older versions of ZeroTier can be found here: https://download.zerotier.com/RELEASES/ latest version supported on Server 2012 Is 1.4.6? remove How to Clear/Reset your ZeroTier Address – ZeroTier Knowledge Base – Confluence (atlassian.net) sudo systemctl stop zerotier-one or sudo service zerotier-one stop sudo apt remove zerotier-one […]
Windows Aministration
Clean up Active Directory Domain Controller server metadata https://learn.microsoft.com/en-GB/windows-server/identity/ad-ds/deploy/ad-ds-metadata-cleanup use the Active Directory Sites and Services console (Dssite.msc) to delete a domain controller’s computer Pro Tip: Bulk Update IIS Bindings 1. First, I would enter a couple of the bindings the usual way through the IIS Manager UI, just so I can get a model […]
Password Manager
It is highly recommended to use password manager instead of saving passwords in browser, excel etc We recommend Bitwarden Open Source Password Manager | Bitwarden Bitwarden is a free/freemiumopen-sourcepassword management service that stores sensitive information such as website credentials in an encrypted vault. The platform offers a variety of client applications including a web interface, desktop applications, browser extensions, mobile apps, and a command-line […]
Sync Clients Tested
dropbox doesnt support custom folder option one drive doesnt work with so many changes google drive permission issues – other users cannot access the files pcloud sometime stuck then doesnt work icedrive mature nahi hay – work bhi nahi karaha – exclude ka option nahi hay Sync | Affiliate, Reseller and Referral Program custom folder […]
Zero tier for windows 7 or windows server 2012
windows 7 or windows server 2012 per 1.6.6 kay baad ka version supported nahi hay https://download.zerotier.com/RELEASES/1.6.6/dist/ZeroTier%20One.msi Irfan Anis
How To Delete Protected Partitions in Windows
HOW TO REMOVE STUCK PARTITIONS: Run PowerShell (as an administrator) Type DISKPART and press enter Type LIST DISK and press enter Type SELECT DISK <n> and press enter Type LIST PARTITION and press enter Type SELECT PARTITION <n> and press enter Type DELETE PARTITION OVERRIDE and press enter Nehal