by skufel | Nov 14, 2011 | Automation, Infrastructure, Network, Scripting, SysAdmin
If you need to capture configuration of Windows-based DHCP server for documentation or review purposes, this might be handy: netsh -r lab-dc-01 dhcp server dump > C:\dhcp-lab-dc-01.txt NOTE: lab-dc-01 in example command is name of the Windows server which has DHCP...
by skufel | Nov 14, 2011 | Infrastructure, Network
Usually I tend to create DHCP server on Windows Server. However, sometimes there is no server on site. Only what I have are network devices, workstations and voip phones. In those cases I used to create DHCP server on switches. As environment I operate in contains...
by skufel | Nov 14, 2011 | Automation, Infrastructure, Scripting
Here is quick script which connects to Active Directory, reads all computer accounts from Organization Unit (OU) indicated in script and then pings all computers found in that OU. It might be handy if all server accounts are located in one OU. Const ADS_SCOPE_SUBTREE...
by skufel | Nov 14, 2011 | Automation, Infrastructure, Scripting, SysAdmin
Some time ago I had to transfer SQL Server databases from remote retail locations to central system. At that time whol einfrastructure was operating on Microsoft SQL server 2000 and link in remote locations was 128kb/s ISDN. At that time I thought that the best idea...
by skufel | Nov 11, 2011 | Infrastructure, Scripting
Script I used as computer statup script pushed via GPO. It renames local Administrator to Admin and sets password for Admin account to one specified in script. Script was tested and used on Windows XP Professional. '...