Skip to main content

Posts

script to delete files older than x days in windows

Batch File: @echo off :: set folder path set dump_path=Path.... :: set min age of files and folders to delete set max_days=15 :: remove files from %dump_path% forfiles -p %dump_path% -m *.* -d -%max_days% -c "cmd  /c del /q @path" :: remove sub directories from %dump_path% forfiles -p %dump_path% -d -%max_days% -c "cmd /c IF @isdir == TRUE rd /S /Q @path"

Introduction to Microsoft Windows Powershell for Systems Administrators

How To Install Windows 8 Using A USB Drive

How to Enable a Domain User to Log on Locally on the Domain Controller in Windows Server 2003

By default a domain user is not allowed to log on locally on the domain controller. This is because of the default group policy configuration which is applied whenever a stand-alone server is promoted to a domain controller. This configuration of group policy can be modified so that a domain user account can log on locally on the domain controller. Though this is not at all recommended in production environment but for testing purpose or in lab setups this configuration can be quite handy. This configuration also helps in testing labs where there are only few computers. You can modify group policy settings to allow a domain user to log on locally to the domain controller by following the steps given below: Log on to the domain controller with administrator account. Click on Start button. From the start menu go to Administrative Tools and from the sub menu select Active Directory Users and Computers. From the opened snap on expand the domain name node . From the l...