This file contains 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
<# | |
.NAME | |
Get-PasswordGenerator.ps1 | |
.DESCRIPTION | |
Creates random passwords of varying complexity from ASCII table of characters | |
or phrases from random words selected from on posts on Reddit | |
Ref: http://www.asciitable.com/ & http://www.reddit.com |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="Content-Language" content="en-us"> | |
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | |
<!-- Printer Installation --> | |
<title>Printers App</title> | |
<HTA:APPLICATION ID="PrintHta" |
This file contains 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
' Produces list of process info from a remote computer. Optionally kill a running process based on PID. | |
' Requires PsList and PsKill from PsTools http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx | |
' TheAgreeableCow 2012 | |
dim objShell : Set objShell = WScript.CreateObject ("WScript.shell") | |
dim fileSys : Set fileSys = CreateObject("Scripting.FileSystemObject") | |
dim strComputer, strCMD, strLog, intAnswer, strProcess, strBatchFile, strDate | |
strComputer = InputBox("Enter name of Server/PC to capture process list") |
This file contains 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
ForEach ($LogEntry in $EventLog) | |
{ | |
$entry = [xml]$LogEntry.ToXml() | |
$docName = $entry.Event.UserData.DocumentPrinted.Param2 | |
} |
This file contains 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
$filterxml = '<QueryList> | |
<Query Id="0" Path="Microsoft-Windows-PrintService/Operational"> | |
<Select Path="Microsoft-Windows-PrintService/Operational">*[System[(EventID=307)]]</Select> | |
</Query> | |
</QueryList>' | |
$EventLog = Get-WinEvent -Filterxml $filterXml |
This file contains 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 | |
Find assigned or unassigned numbers in Lync | |
.DESCRIPTION | |
This script uses uses the 'Unassigned Number' ranges in Lync to look number usage, including: | |
- User numbers (including Private Number) | |
- Analogue Devices | |
- Common Area Phones | |
- AutoAttendant numbers |
This file contains 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
Option Explicit | |
On Error Resume Next | |
Dim Source1, Source2, Source3, Destination1, Destination2, Destination3, BatchFile1, BatchFile2, BatchFile3 | |
'****************************************** | |
'Root Source folders to parse | |
Source1 = "\\server1\c$\folder1" | |
Source2 = "\\server1\share1" | |
Source3 = "\\server1\share2" |
This file contains 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
declare @user varchar(20) | |
set @user = '' | |
declare @ClientVer varchar(100) | |
set @ClientVer = '' | |
declare @server varchar(10) | |
This file contains 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 | |
Reports on Users whose passwords are about to expire | |
.NOTES | |
Requires Quest.ActiveRoles.ADManagementsnapin to get the AD attributes. | |
.LINK | |
http://www.theagreeablecow.com/2012/06/preventing-password-expirations-with.html | |
#> | |
# -------------------------------------------------- |
This file contains 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
# This script manages the process for a departing user, using data retrived from a CSV file | |
# Requires the Active Directory module for Windows Powershell and appropriate credentials | |
# CSV file with corresponding header and user(s) info: | |
# UserName,DisableWindows,ArchiveFiles,DisableVoice,ArchiveMailbox,MailboxAccessTo,DisableEmailAddress,AutoReplyContact,ReminderInDays | |
#LOAD POWERSHELL SESSIONS | |
#------------------------ |
OlderNewer