Sysadmin Lab

My lab environment and my findings

bookmark bookmark

Archive for November, 2011

Posted by Admin ADD COMMENTS

Have you ever had a test or lab AD/Exchange environment that you wanted to populate with many users and mailboxes filled with Gigabytes of data which were close to real-world (e-mails, attachments in various formats etc)? Or maybe you’re preparing the Exchange migration and wanted to test the speed of moving mailboxes between servers? Then read on… This is how you can create one user from command line in AD: NET USER Testmig1 MyPassword=Password1 /ADD /Domain /Y If you want [...]

Categories: Exchange
Posted by Admin ADD COMMENTS

Sure, you can use the GUI Servermanager to add/remove/list roles, but for the hardcode sysadmin, Powershell is the way to go. Start Powershell as admin and run: Import-Module ServerManager Get, list roles and features and status: Get-WindowsFeature Add, install a role or feature RSAT AD Tools: Add-WindowsFeature RSAT-AD-Tools You can add multiple roles and features to install at the same time: Add-WindowsFeature RSAT-ADCS,RSAT-AD-Tools,PowerShell-ISE Remove, uninstall a role or feature: Remove-WindowsFeature RSAT-AD-Tools That’s the basics… but here are some more useful [...]

Categories: Windows
Posted by Admin ADD COMMENTS

I often create GPO:s which Assign a certain software and make sure that I have a domain group which contain the computer where I want the software installed and then I make sure Security Filtering of the GPO doesn’t contain Authenticated Users but only the group. That way, I control which computers get that software. But what if someone later uninstall the software manually? No matter reboots, the software will not be re-installed by the GPO. How do you force [...]

Categories: Windows