Category Archives: Windows
Add AD module in Powershell for Windows 7 and Windows 10
Just some links and walk-throughs I’ve needed to use several times over the years and always forget. How to add Active Directory module in PowerShell in Windows 7 Install the Active Directory PowerShell Module on Windows 10 (article) Install the Active Directory PowerShell Module on Windows 10 (script download)
Clearing the Offline cache / Windows CSC directory
Offline cache/sync can become corrupted or otherwise a horrible mess. Sometimes starting over is the best or only option. Create an empty, temporary directoryy. Such as c:\emptycsc run CMD as administrator robocopy c:\emptycsc c:\windows\csc\v2.0.6\cache /mir Alternatively, if looking to wipe _everything_ ; robocopy c:\emptycsc c:\windows\csc\v2.0.6\namespace /mir Notes: You won’t be able to use tab completion in… Read More »
Installing 2008 SQL on Windows Server 2012
Keeping this short and sweet. Problem: SQL Server Full 2008 Server installation media fails on Windows Server 2012. It is however a supported platform, so there has to be a way. Solution: Update installer package and slipstream updates from SP1 prior to setup. Copy DVD/.ISO Installer medium from original 2008 SQL Full to a directory… Read More »
Putty Connection Manager
Tabbed view, session manager, etc. Free. Not bad. Gave up on commercial BS like SecureCRT & Reflections years ago (unless work will pay for it). Can’t be bothered. Don’t know why I didn’t think to look for a putty session manager until now, but I’m glad I did. Some things it do. 1.Display Multiple PuTTY Sessions… Read More »
Shortform C# statements (ternary operations)
int crap = 5; int nocrap = Int32.TryParse(textBox1.Text, out nocrap) ? nocrap : 0; crap = crap >= nocrap ? crap : nocrap; MessageBox.Show(crap.ToString()); …aka if nocrap is greater than crap, then make crap=nocrap, else leave crap alone. or without textbox input: int crap = 5; int nocrap = 32 ? nocrap : 0; //modify nocrap… Read More »