Get-ChildItem Using this you can get the file list from a directory. Gets the items and child items in one or more specified locations. Get-ChildItem “<path>” -Recurse -Filter <*.*> | where {$_.LastWriteTime -le(Get-Date).AddDays(-<amount of days>) } that command can delete older files from a directory. can be useful when making backups Or get a list… Lees verder Powershell tips
Categorie: Microsoft
All specific knowledge pertaining to MS products
Synchronize time with external NTP server on Windows Server 2008 (R2).
Time synchronization is an important aspect for all computers on the network. By default, the clients computers get their time from a Domain Controller and the Domain Controller gets his time from the domain’s PDC Operation Master. Therefore the PDC must synchronize his time from an external source. I usually use the servers listed… Lees verder Synchronize time with external NTP server on Windows Server 2008 (R2).
How to duplicate reservations from one Windows server to another?
Simple version Load-balancing your DHCP has been well documented, but the matter of synchronizing your IP reservations has always the fly in the ointment. But no more. To export DHCP reservations, from the source server: netsh dhcp server [ip address] scope [scope address] dump>reserv.txt Open up ‘reserv.txt’ in a text editor, do a Find->Replace… Lees verder How to duplicate reservations from one Windows server to another?
Setting the location of the spool folder on a Windows Server
Setting the location of the spool folder By default the spool folder is located at systemroot\System32\Spool\Printers. However, this drive also holds the Windows system files. Because these files are frequently accessed by the operating system, performance of both Windows and the printing functions might be slowed. If your print server serves only one or two… Lees verder Setting the location of the spool folder on a Windows Server
How-To Display file & path in a Header or Footer
If you have folders filled with documents on your computer or if you share Word documents on a network with several other users, it can be next to impossible to find the specific document you need if you do not know precisely where to look. You can remedy this problem by adding the file path… Lees verder How-To Display file & path in a Header or Footer