Skip to content

Instantly share code, notes, and snippets.

View danjpadgett's full-sized avatar

Dan Padgett danjpadgett

View GitHub Profile
@danjpadgett
danjpadgett / iso contents
Created November 25, 2015 10:57
SW_DVD9_NTRL_Win_10_1511_64Bit_MultiLang_Feat_on_Demand_X20-75989.ISO
Microsoft-Windows-InternationalFeatures-Taiwan-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-af-za-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-ar-sa-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-as-in-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-az-latn-az-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-bg-bg-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-bn-bd-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-bn-in-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-bs-latn-ba-Package.cab
Microsoft-Windows-LanguageFeatures-Basic-ca-es-Package.cab
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<LayoutOptions StartTileGroupsColumnCount="1" />
<DefaultLayoutOverride>
<StartLayoutCollection>
#region Control Helper Functions
function Load-DataGridView
{
Param (
[ValidateNotNull()]
[Parameter(Mandatory=$true)]
[System.Windows.Forms.DataGridView]$DataGridView,
[ValidateNotNull()]
@danjpadgett
danjpadgett / Get AD user Info.ps1
Last active December 6, 2016 15:05
Get AD user Info
Get-ADGroupMember "Domain Admins" | select name,samaccountname, @{Name='Enabled';Expression={(Get-ADUser $_.samaccountname).Enabled}},@{Name='Location';Expression={(Get-ADUser $_ -Properties * ).CanonicalName}},@{Name='Groups';Expression={(Get-ADPrincipalGroupMembership $_.samaccountname).name} -join ';'}
@danjpadgett
danjpadgett / get ad user info from list.ps1
Last active December 6, 2016 15:05
get ad user info from list
ForEach ($user in $users) {
Get-ADUser -Filter{displayName -like $user} -Properties canonicalname | select name,samaccountname,enabled,canonicalname,@{Name='Groups';Expression={((Get-ADPrincipalGroupMembership $_.samaccountname).name) -join ', '}}
}
@danjpadgett
danjpadgett / get-folder sizes.ps1
Created December 6, 2016 15:03
get-folder sizes
#requires -version 2
<#
.SYNOPSIS
Gets folder sizes using COM and by default with a fallback to robocopy.exe, with the
logging only option, which makes it not actually copy or move files, but just list them, and
the end summary result is parsed to extract the relevant data.
There is a -ComOnly parameter for using only COM, and a -RoboOnly parameter for using only
@danjpadgett
danjpadgett / Repair-ACL.ps1
Created December 6, 2016 15:05
repair acl
#Repairs acl and perms for users folders
$paths = (Get-ChildItem -Path "\\company\dfs\Users\")
if ((Get-Module).name -Match "PSCX")
{}#Null
else
@danjpadgett
danjpadgett / UserMigration.ps1
Last active January 13, 2017 18:06
Copies userdata between two file servers, resets ACL and Owner to user account.
<#
.NOTES
===========================================================================
Created on: 11/01/2017 11:59
Created by: Dan Padgett (C)
Filename: UserMigration.ps1
Version: 1.0
Web: www.execmgr.net
===========================================================================
<#
.SYNOPSIS
Sets UPN to ProxyAddresses AD field for SIP entry
.DESCRIPTION
Script will search through active directory and set all users with NO SIP address to have a SIP matching the users UPN
.PARAMETER $OU
Enter full distinguised name of OU you wish to limit search to
.NOTES
Version: 1.0
Author: dpadgett
@danjpadgett
danjpadgett / W10-Start.xml
Created March 3, 2017 14:35
Windows 10 Start Menu XML
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<LayoutOptions StartTileGroupsColumnCount="1" />
<DefaultLayoutOverride>
<StartLayoutCollection>