This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#"Running" | Out-File "C:\Temp\Service.log" -append | |
Do { | |
#"Start Of Loop" | Out-File "C:\Temp\Service.log" -append | |
$Adaptors = Get-WmiObject -query "SELECT * FROM Win32_NetworkAdapter WHERE PhysicalAdapter = 1 AND NOT Description LIKE '%Virtual%' AND (NetConnectionID LIKE '%Wireless Network Connection%' OR NetConnectionID LIKE '%Local Area Connection%' OR NetConnectionID LIKE '%Wi-Fi%' OR NetConnectionID LIKE '%Ethernet%')" | |
$NetEnabledAdaptors = @($Adaptors | Where {$_.NetEnabled -eq $true}).Count | |
#"Adaptors Found: $($Adaptors.Count)" | Out-File "C:\Temp\Service.log" -append | |
#"Net Enabled Adaptors: $NetEnabledAdaptors" | Out-File "C:\Temp\Service.log" -append | |
if ($NetEnabledAdaptors -gt 1) | |
{ | |
#"WiFi and LAN Connected. Disabling WiFi..." | Out-File "C:\Temp\Service.log" -append |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<############################################################################### | |
Import-ADSites | |
################################################################################ | |
DEPENDENCIES: Powershell Module - ActiveDirectory | |
SQL Access to referenced SQL server and Database | |
DESCRIPTION: Adds new AD Sites to LANSweeper and schedules a scan of | |
their IP subnets. | |
CHANGE LOG: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Creates new users via PIPS K2 | |
.DESCRIPTION | |
This script takes input from variables given to it by K2 and creates | |
a new user to Lion spec | |
.PARAMETER <paramName> | |
$firstName - First name of the New Starter | |
$lastName - Last name of the New Starter | |
$middleName - Middle Name of the New Starter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# FILE ARCHIVING SCRIPT # | |
#*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*&&*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*# | |
# AUTHOR: Tim Caldwell DATE: 22/02/2013 # | |
# DESCRIPTION: # | |
# This script takes your command-line input for the root source and dest. # | |
# folders and will copy (archive) any files older than the $days specified # | |
################################################################################ | |
################################################################################ |
NewerOlder