This file contains 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-WmiObject -Class Win32_Product | Where-Object {$_.Name -match "WebEx Productivity Tools"}).Uninstall() | |
Powershell.exe -ExecutionPolicy Bypass -Command "(Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -match 'WebEx Productivity Tools'}).Uninstall()" |
This file contains 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
Powershell.exe -ExecutionPolicy Bypass -Command "Start 'C:\Windows\System32\Adobe\Shockwave 12\Uninstaller.exe' /S" |
This file contains 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
OperatingSystem | summarize by Device, BuildNumber |
This file contains 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
Stop-Process -Name chrome -Force | |
$users1 = (Get-ChildItem "c:\users" | Select-Object Name | Format-Table -HideTableHeaders | Out-String).Trim() | Out-File "C:\temp\Users.txt" | |
$Users = Get-Content -Path "C:\temp\Users.txt" | |
foreach ($name in $users) | |
{ | |
($name | Out-String).Trim() | Out-File "c:\temp\users1.txt" -Append | |
} |
This file contains 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 Variables | |
$find1 = 'ssoEnabled=false' | |
$replace1 = 'ssoEnabled=true' | |
$find2 = 'acsPasswordPrompt=1_useAcsSetting' | |
$replace2 = 'acsPasswordPrompt=5_kerberos' | |
#Update HOD Files in Standard Location | |
$Dir = get-childitem 'C:\Program Files\IBM_iAccess_Emulator\Emulator' -recurse |
This file contains 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
#Disable Windows Store | |
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore" -Name "RemoveWindowsStore" -Value "1" -Force | |
#Enable Windows Store | |
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore" -Name "RemoveWindowsStore" -Value "0" -Force |
This file contains 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
$acl = get-acl -path \\d-721-01\OSD_BKUP$ | |
$serverlist = Get-Content -Path "C:\RSICode\ServerACL\ServerACL.txt" | |
foreach ($server in $serverlist){ |
This file contains 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
############################################## | |
# # | |
# File: CopyMMSDE2018Files.ps1 # | |
# Author: Duncan Russell # | |
# http://www.sysadmintechnotes.com # | |
# Edited: Andrew Johnson # | |
# http://www.andrewj.net # | |
# Evan Yeung # | |
# http://www.forevanyeung.com # | |
# Chris Kibble # |
This file contains 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
<# | |
.SYNOPSIS | |
Redistribute failed packages for specified DP | |
.DESCRIPTION | |
The script will check specified DP for packages that has failed according to summarizer events and redist any failed packages. | |
.PARAMETER Sitecode | |
Enter SiteCode | |
.PARAMETER DPFQDN | |
Enter FQDN for DP with failed packages. | |
.EXAMPLE |
This file contains 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
Invoke-Command -ScriptBlock {Get-Childitem –Path C:\ -Include "<FILENAME>" -File -Recurse -ErrorAction SilentlyContinue | Remove-Item -Force} -ComputerName "<COMPUTERNAME>" |
OlderNewer