Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.
This outputs something like this:
@echo off setlocal enabledelayedexpansion set LogFile=C:\Tools\staleAdPc.log if not exist "%LogFile%" goto SkipRename for %%f in ("%LogFile%") do ( for /f "tokens=1-3 delims=/ " %%a in ("%%~tf") do (set TimeStamp=%%c%%a%%b) set NewName=%%~nf.old.!TimeStamp!%%~xf echo Renaming "%LogFile%" to "!NewName!" ... ren "%LogFile%" "!NewName!" ECHO File date: %%~tf ) :SkipRename dsquery computer OU=Depts,OU=x,DC=x,DC=x,DC=x,DC=x -inactive 8 -limit 300 > c:\tools\staleADpc.log
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Creating 2 network Adapters via PowerCli||7||37|
|New-WebVirtualDirectory from local to Remote computers||53||60|
|Powershell WPF, Redirection Issue||2||30|
|List all groups and nested groups in AD with powershell||4||32|
Join the community of 500,000 technology professionals and ask your questions.