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
#reqiures -Modules GroupPolicy | |
foreach ($gpo in (Get-GPO -All)) { | |
$xml = [Xml](Get-GPOReport -Guid $gpo.Id -ReportType Xml) | |
if (($xml.GPO.SelectNodes("//*[local-name() = 'Name']")."#text" | Where-Object { $_ -eq "Configure Automatic Updates" }).Count -gt 0) { | |
Write-Output -InputObject "The following GPO is configuring Windows Update Settings: '$($xml.GPO.Name)'." | |
} | |
} |
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
##This script will check the $email mailbox to make sure there are no emails older than 10 min. | |
## If there are messages more than 10 min old it will restart the connectwise email connector | |
## Requires Exchange Web Services Managed API 1.2 | |
$email = "[email protected]" | |
# Credentials | |
$username = 'User' | |
$password ='Password' | |
$domain = 'Domain' |
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
<# | |
These steps are required once on your computer, not every time you connect. However, you'll likely need to install newer versions of the software periodically. | |
Install the 64-bit version of the Microsoft Online Services Sign-in Assistant: Microsoft Online Services Sign-in Assistant for IT Professionals RTW. | |
URL: http://go.microsoft.com/fwlink/p/?LinkId=286152 | |
Install the 64-bit version of the Windows Azure Active Directory Module for Windows PowerShell: Windows Azure Active Directory Module for Windows PowerShell (64-bit version). | |
URL: http://go.microsoft.com/fwlink/p/?linkid=236297 | |
#> | |
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null | |
Import-Module MSOnline |
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-Module MSOnline | |
Write-host "Please enter your Microsoft Office365 Administrative credentials:" -ForegroundColor Cyan | |
Connect-MsolService -Credential (Get-Credential) | |
$username = Read-Host "Please enter the users domain username" | |
$oldemail = Read-Host "please enter the users OLD email address" | |
$msoluser = get-msoluser -UserPrincipalName $oldemail | |
$user = get-aduser -identity $username -Properties mail,proxyAddresses | |
$samaccountname = $user.SamAccountName | |
$email = $user.mail | |
$userProxyAddresses = $user.proxyAddresses |
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
<# | |
These steps are required once on your computer, not every time you connect. However, you'll likely need to install newer versions of the software periodically. | |
Install the 64-bit version of the Microsoft Online Services Sign-in Assistant: Microsoft Online Services Sign-in Assistant for IT Professionals RTW. | |
URL: http://go.microsoft.com/fwlink/p/?LinkId=286152 | |
Install the 64-bit version of the Windows Azure Active Directory Module for Windows PowerShell: Windows Azure Active Directory Module for Windows PowerShell (64-bit version). | |
URL: http://go.microsoft.com/fwlink/p/?linkid=236297 | |
#> | |
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null | |
Import-Module MSOnline |
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 Necessary modules | |
Import-Module ActiveDirectory | |
Import-Module PSSQLite | |
#Set Database information | |
$Database = "E:\ARRC\ADChangeHistory.sqlite" | |
$dbBackup = "E:\ARRC\ADChangeHistory.bak" | |
$tableslistquery = "SELECT * FROM sqlite_master WHERE type='table'" | |
$LogActionQuery = "INSERT INTO GROUPHISTORY (GroupName, Username, Action, Date) VALUES (@groupname, @username, @action, @date)" | |
$DisabledUsersLogQuery = "INSERT INTO ADUSERHISTORY (OriginalOU, DestinationOU, UserName, DateMoved) VALUES (@OriginalOU, @DestinationOU, @UserName, @date)" |
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
{ | |
"profiles": { | |
"OptiFine": { | |
"name": "OptiFine", | |
"lastVersionId": "1.10.2-OptiFine_HD_U_D2", | |
"javaArgs": "-Xmx8G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn512M" | |
}, | |
"actiontekjackson": { | |
"name": "actiontekjackson", | |
"lastVersionId": "1.10.2-OptiFine_HD_U_D2", |
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
Function New-WPFMessageBox { | |
# For examples for use, see my blog: | |
# https://smsagent.wordpress.com/2017/08/24/a-customisable-wpf-messagebox-for-powershell/ | |
# CHANGES | |
# 2017-09-11 - Added some required assemblies in the dynamic parameters to avoid errors when run from the PS console host. | |
# Define Parameters | |
[CmdletBinding()] |
OlderNewer