cancel
Showing results for 
Search instead for 
Did you mean: 
CS_HelpDesk
GoTo Contributor

Microsoft Defender - Custom Scan

Run Microsoft Defender scan on the selected file or folder.
---
$fileOrFolderToScan = $null

& "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File $FileOrFolderToScan
CS_HelpDesk
GoTo Contributor

Microsoft Defender update

Update Windows Security signatures.

---

& "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -SignatureUpdate
CS_HelpDesk
GoTo Contributor

Service - Start

Starting a service PowerShell script.

---

$service = $null

$s = Get-Service $service

if ($s.Status -eq 'stopped')
{
  Start-Service -InputObject $s -PassThru
}
CS_HelpDesk
GoTo Contributor

Service - Stop

Stopping a service PowerShell script.
---
$service = $null

$s = Get-Service $service

if ($s.Status -eq 'running')
{
  Stop-Service -InputObject $s -PassThru
}
CS_HelpDesk
GoTo Contributor

Service - Restart

Restarting a service PowerShell script.

---

$service = $null

$s = Get-Service $service
Restart-Service -InputObject $s -PassThru
CS_HelpDesk
GoTo Contributor

Registry Import

Upload a .reg file that will be silently imported.

---

$file = $resolve_Files[0];
reg import $file;
CS_HelpDesk
GoTo Contributor

Clear DNS cache

Clears the contents of the DNS client cache.
---
Clear-DnsClientCache
CS_HelpDesk
GoTo Contributor

Add Windows User Profile

This example is to add a LogMeIn Access Code as a remote access password option; It can also be used to add any Windows profile name such as “Administrator” or "First Name LastName". 

 

Many technicians use this option to create the LogMeInRemoteUser for quicker One2Many task deployment and execution.

 

Script to add a Windows Profile: 

net user LogMeInRemoteUser Test1234 /ADD  

net localgroup administrators LogMeInRemoteUser /add  

 

Test1234 is a password example, and it must be 8 characters long. You can enter whatever password you want, thus creating the "Access Code".