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
set PY_URL=https://www.python.org/ftp/python/3.9.5/python-3.9.5-embed-amd64.zip | |
mkdir c:\python | |
cd /d c:\python | |
:: Download & extract python | |
curl %PY_URL% -o python-embed.zip | |
Powershell Expand-Archive -Force python-embed.zip C:\python | |
:: Install pip |
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
*://contbullceni.files.wordpress.com/* | |
*://issuu.com/* | |
*://img.meiasola.com.br/* | |
*://b2b.canecreek.com/* | |
*://server04.angrymetalguy.com/* | |
*://xqxi.stregattobb.it/* | |
*://ioia.francescobognin.it/* | |
*://goa.guideavventura.it/* | |
*://filemap411.weebly.com/* | |
*://news-coffee.hatenablog.com/* |
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
#ref: http://eddiejackson.net/wp/?p=23710 | |
# https://www.microsoft.com/en-ca/microsoft-365/onedrive/download | |
# Variables | |
$WebFile = "https://go.microsoft.com/fwlink/p/?LinkID=844652&clcid=0x1009&culture=en-ca&country=CA" | |
$PPath = "C:\TempPath\OneDriveInstaller" | |
$ProcName = "OneDriveSetup.exe" | |
# Create the folder anyway | |
New-Item -ItemType "directory" -Path $PPath | Out-Null |
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
# https://stackoverflow.com/questions/24771455/getting-the-users-documents-folder-in-powershell | |
[enum]::GetNames( [System.Environment+SpecialFolder] ) | | |
Select @{ n="Name"; e={$_}}, | |
@{ n="Path"; e={ [environment]::getfolderpath( $_ ) }} | |
# simple alternative | |
"MyDocuments: " + [environment]::getfolderpath("MyDocuments") ;` | |
"Desktop: " + [environment]::getfolderpath("Desktop") ;` | |
"Personal: " + [environment]::getfolderpath("Personal") ;` |
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
# Get-InstalledApp.ps1 | |
# Written by Bill Stewart ([email protected]) | |
# | |
# Outputs installed applications on one or more computers that match one or | |
# more criteria. | |
# | |
# Version history: | |
# | |
# Version 1 | |
# * Written for PowerShell 1.0. Lost in the mists of time. |
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
# RESET OFFICE ACTIVATION STATE | |
# https://docs.microsoft.com/en-us/office/troubleshoot/activation/reset-office-365-proplus-activation-state | |
# by: https://gist.github.com/mark05e | |
# | |
# Lines to look out for: | |
# > The four steps above can be automated using OLicenseCleanup.vbs. Simply download and run the script with elevated privileges. | |
# > To clear all WAM accounts associated with Office on the device, download and run the signoutofwamaccounts.ps1 script with elevated privileges. | |
# > To automate WPJ removal, download WPJCleanUp.zip, extract the folder, and run WPJCleanUp.cmd. | |
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
$ColRegUinst = @() | |
(Get-Item -Path 'HKLM:\software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall').GetSubKeyNames() | | |
%{ | |
if ( (Get-Item -Path "HKLM:\software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$_").GetValue("DisplayName") -ne $null) | |
{ | |
$ObjRegUinst = New-Object System.Object | |
$ObjRegUinst | Add-Member -Type NoteProperty -Name Publisher -Value (Get-Item -Path "HKLM:\software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$_").GetValue("Publisher") | |
$ObjRegUinst | Add-Member -Type NoteProperty -Name Name -Value (Get-Item -Path "HKLM:\software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$_").GetValue("DisplayName") | |
$ObjRegUinst | Add-Member -Type NoteProperty -Name Uninstall -Value (Get-Item -Path "HKLM:\software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$_").GetValue("UninstallString") | |
$ColRegUinst += $ObjRegUinst |
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 Get-InstalledSoftware | |
{ | |
<# | |
.SYNOPSIS | |
Reads installed software from registry | |
.PARAMETER DisplayName | |
Name or part of name of the software you are looking for | |
.EXAMPLE |
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
# ref: | |
# - https://rmm.datto.com/help/en/Content/4WEBPORTAL/Monitor/CustomComponentMonitor.htm | |
# - https://rmm.datto.com/help/en/Content/4WEBPORTAL/Components/InputVariables.htm | |
# - https://rmm.datto.com/help/en/Content/4WEBPORTAL/Components/Scripting.htm | |
# - https://dectur.com/datto-bitlocker/ | |
# - https://www.cyberdrain.com/dattocon-resources/ | |
# - https://rmm.datto.com/help/en/Content/4WEBPORTAL/Components/Scripting.htm?Highlight=Agent%20variables | |
# - | |
function write-DRRMAlert ($message) { |
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
$CheckPath = $env:onedrive | |
$CheckInFileName = $env:computername | |
$CheckFileExtensions = "dbf|cdx|cvw" | |
$ScriptDBFileName = "RenameDB__" + $(get-date -f yyyyMMddTHHmmss) + ".csv" | |
$ScriptDBFilePath = "C:\Temp" | |
$ScriptDBFileFullPath = "$($ScriptDBFilePath)" +"\"+ "$($ScriptDBFileName)" | |
$FileList = Get-ChildItem -Path $CheckPath\*$CheckInFileName* -Recurse | where {(! $_.PSIsContainer) -and ($_.extension -match $CheckFileExtensions)} | select-object Name, LastWriteTime, Directory, Length | |
$FilesToProcess = @() |