Skip to content

Instantly share code, notes, and snippets.

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
View iso contents
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
View Start Layout 1607
<?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>
@danjpadgett
danjpadgett / get-folder sizes.ps1
Created December 6, 2016 15:03
get-folder sizes
View get-folder sizes.ps1
#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
View Repair-ACL.ps1
#Repairs acl and perms for users folders
$paths = (Get-ChildItem -Path "\\company\dfs\Users\")
if ((Get-Module).name -Match "PSCX")
{}#Null
else
@danjpadgett
danjpadgett / get ad user info from list.ps1
Last active December 6, 2016 15:05
get ad user info from list
View get ad user info from list.ps1
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 AD user Info.ps1
Last active December 6, 2016 15:05
Get AD user Info
View Get AD user Info.ps1
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 / UserMigration.ps1
Last active January 13, 2017 18:06
Copies userdata between two file servers, resets ACL and Owner to user account.
View UserMigration.ps1
<#
.NOTES
===========================================================================
Created on: 11/01/2017 11:59
Created by: Dan Padgett (C)
Filename: UserMigration.ps1
Version: 1.0
Web: www.execmgr.net
===========================================================================
View Set-SIP.ps1
<#
.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
View W10-Start.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>
@danjpadgett
danjpadgett / RemoveObjects.ps1
Created March 13, 2017 09:54
RemoveObjects.ps1
View RemoveObjects.ps1
<#
.NOTES
===========================================================================
Created by: Dan Padgett (C)
Organization: www.execmgr.net
Version: 1.0
===========================================================================
.SYNOPSIS
Removal Tool for SCCM and AD Objects