Monthly Archives: March 2014

PowerShell Function Run-CommandLine

So in this server build script that I’m working on there are several times when external executables are called, such as when I use the operator to call ICACLS for setting share permissions (& ICACLS.exe $folderName /GRANT $ADObject`:(OI)(CI)$ICACLSpermission). Sometimes calls … Continue reading

Posted in Programming | Tagged , , | Leave a comment

PowerShell Function Set-PageFile

Here is a function for working with the Windows page file. You can use it to change the path (it will delete the old one and make a new one for you) or modify initial and maximum size. function Set-PageFile … Continue reading

Posted in Enterprise Management, Programming | Tagged , , , , | Leave a comment

PowerShell command line menu

I’ve been working on a server build script to assist our server team in automating their server build outs. The objective was to select which environment the server is being built in (Alpha, Dev, etc.) then the type of server … Continue reading

Posted in Programming | Tagged , , , | Leave a comment