Skip to content

Instantly share code, notes, and snippets.

Avatar

Arman Castillote acast15

View GitHub Profile
@acast15
acast15 / get_unallocated.ps1
Last active Apr 26, 2021
Get Unallocated Space
View get_unallocated.ps1
$disks = Get-WmiObject win32_diskdrive ## Gets the list of disks
$partitions = Get-WmiObject win32_diskpartition ## Gets the list of partitions
## Defining Variables
$i = 0
$partitionCount = 0
$myTable = $null
## Scanning Disks and Partitions and their Sizes
foreach($disk in $disks) {
View AppLogsComplete.ps1
## Displays a Message Box
Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show('Checking App Log Files Complete','App Logs','OK','Information')
View package.psd1
@{
Root = ''
OutputPath = ''
Package = @{
Enabled = $true
Obfuscate = $false
HideConsoleWindow = $true
DotNetVersion = 'v4.6.2'
FileVersion = '1.0.0'
FileDescription = ''
@acast15
acast15 / AppLogsComplete.ps1
Last active Feb 26, 2021
Get-LatestAppLog (dot-sourcing)
View AppLogsComplete.ps1
## Displays a Message Box
Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show('Checking App Log Files Complete','App Logs','OK','Information')
View AppLogsComplete.ps1
## Displays a Message Box
[System.Windows.Forms.Messagebox]::Show('Checking App Log Files Complete.','App Logs','OK','Information')
View Get-LatestAppLog.ps1
# Get-LatestAppLog.ps1
## Define the log file
$logDir = 'c:\temp'
$logFile = "$logDir\AppLog_$(Get-Date -format 'yyyy-mm-dd_hh-mm-ss-tt').xml"
## Get the ten latest application log events and export as an xml file
Get-WinEvent -LogName application -MaxEvents 10 |
Export-CliXml $logFile -Force
@acast15
acast15 / Import Test.csv
Created Dec 4, 2020
Import2 Wizard Test CSV
View Import Test.csv
Name Description List Members Due Date Completed Is Paid Task Member Paid Link
Forest and domain configuration Documentation on how to manage Forest and Domain configuration For Review Zak Mason Oct 23, 2020 02:00 PM Yes Yes Yes https://ImportTest.com/Domain-Configuration
Password and audit policies Article explaining Password and Audit Policies For Review Kyle Ellis Oct 08, 2020 02:00 PM No Yes No https://ImportTest.com/Password-And-Audit-Policies
Create a change log for each server Ways how to Create a change log for servers In Progress Toby Johnson Nov 08, 2020 02:00 PM No Yes No https://ImportTest.com/Change-Log-For-Servers
Group Policy Objects (GPOs) How to modify GPOs For Review Trent Hampton; Jeffery Rush Oct 29, 2020 02:00 PM Yes Yes Yes https://ImportTest.com/GPOs
Create a network topology diagram All about creating network topology diagram To Do No Yes No https://ImportTest.com/Network-Topology-Diagram