Control Windows firewall state on a remote computer

You can enable or disable the Windows firewall on a remote computer. Download the Sysinternals Suite from the sysinternals website: http://download.sysinternals.com/files/SysinternalsSuite.zip Extract this zip file and see if PsExec.exe is in there. Disable the firewall state without stopping the firewall services on a remote computer. Pre-Windows 2008 method: psexec \\remotecomputer.mydomain.com “netsh firewall set opmode disable” […]

Control a service on a remote computer via Powershell

You can start, stop or restart a service on a remote computer via Powershell. Start spooler service

Restart spooler service

Stop spooler service

Find Active Directory object SID by given username

This PowerShell script will return the SID of the object that is referred by the given username.

Find object name in Active Directory with given SID

This is a PowerShell script which can be used to find an object in the Active Directory by the given SID. In this example we are using the SID: S-1-1-11-1111111111-111111111-111111111-500

Send email with attachment with linux shell script

This is a linux /bin/sh script that sends an email with an html file as an attachment.

Active Directory login script

This Visual Basic script can be used to check for Active Directory group membership so drivemappings can be made to certain shares.

Check for active TCP and UDP connections

This Visual Basic script can be used to check the local computer for active TCP and UDP connections. The default timeout before the next check is set to 2 seconds.

Create text file with a list of virtual machines

This is a 3-step method to create a text file with a list of virtual machines.