Category: Windows
-
PowerShell Active Directory wrapper scripts.
In my PowerShell profile I have a routine the sources all the *.ps1 files in a folder. One of these .ps1 files contains Active Directory “wrapper” functions. I call them “wrapper” functions because they simplify the parameters needed to return data in a format we want. The idea is that I can write a series…
-
PowerShell script to silently install RSAT 2008 R2 SP1
I often re-image my machine – that way I know my SCCM OSD is working properly and has the most recent “secondary apps” (Reader,Flash,FireFox . . .). Because I am always re-imaging, I like to automate installing the software I always need like Remote Server Administration Tools – RSAT. I wanted a function to install…
-
PowerShell to set ACLs that prevent renaming of top-level directories in a share
We have a shared folder that is replicated to all our sites using the fantastic GlobalScape WAFS (@GlobalScape). This folder is huge. People go into the folder, and “type ahead” to get the subfolder they want, but what keeps happening (and I am sure you have seen this) is that when users click and try…
-
PowerShell, Event Triggers, MailboxMoves and email notification
We are in the process of moving our Mailboxes from Exchange 2003 to Exchange 2010. I am using this script to automate the moves. I wanted to find a way to get an email notification when the move is complete. I figured I could keep the PowerShell script running in a “while loop” until Get-MailBoxMoveStatistics reports “Completed”,…
-
Adventures in Load Balancing: Kemp (@KempTech)
My current project is a migration from Exchange 2003 to Exchange 2010. We wanted to load balance our CAS servers and do some SSL offloading. I have never worked with a load balancer before – pretty cool stuff. We have been using a couple of Kemp 2600’s in an active passive configuration. The Kemp devices have…
-
Windows Server 2008 persistent routes
I can never remember this, so I thought I would blog it route -p add XXX.XXX.XXX.0 mask 255.255.255.0 YYY.YYY.YYY.1 XXX = Network YYY = Gateway
-
Changing NIC order in 2008 R2 SP1
I can never remember how to change the NIC order in 2008 R2. Navigate to “Networking Connections” and then hit “Alt” to bring up the menu. There you can find “Advanced” menu and the “Advanced Settings” option. There has to be an easier way, but that is the only way I know hot to get…
-
xcopy: permissions,recursive,incremental
I can never remember xcopy’s flags, so I am creating a post for myself. xcopy SourceDrivePath DestDrivePath /X /C /E /H /Y /D /X Perms /C continue on error /E Recursive with empty folders /H (hidden and system) Copy hidden and system files /Y (yes) No Prompts /D (date) SourceDate is newer then DestDate (incremental)
-
Powershell script to install Cygwin
I like having Cygwin installed on my machine, and since I always re-image, I needed a script to install Cygwin automatically. This will download and install Cygwin and install the openssh package.
-
OpenVPN on windows with a TUN device
Since my laptop hard drive died, I did not have access to my home VPN. I needed to set up OpenVPN on windows. I setup my PKI and installed the portable version of OpenVPN. Tried connecting and got this error: There is a problem in your selection of –ifconfig endpoints [local=X.X.X.X, remote=X.X.X.X]. The local and…
