$userName = 'mmilic'
$photoPath = 'mmilic.png'
# Set photo
$photo = [byte[]](Get-Content $photoPath -Encoding byte)
Set-ADUser $userName -Replace @{ Photo = $photo }
# Get photo
$user = Get-ADUser $userName -Properties photo
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
# Check Point client automation | |
# https://www.checkpoint.com/products/remote-access-vpn | |
param ($Endpoint = "91.143.218.198") | |
if (!(Get-Module CredentialManager)) { | |
Write-Waarning "Powershell module CredentialManager not found, installing" | |
Install-Module CredentialManager | |
} |
Open %systemroot%\system32\grouppolicy\
Within this folder, there are two folders - machine
and user
. Copy these to folders to the %systemroot%\system32\grouppolicy
- folder on the target machine.
Restart the machine or run GPUPDATE /force
http://www.frickelsoft.net/blog/?p=31
- Administer: secedit