FOG agent installation script

The following script installs the FOG agent on fixed workstations at startup. The script must be placed in a group policy (GPO), which executes the script when the computer starts. Edit lines 8 and 9 by replacing fqdn with the URL to access the FOG server.

PowerShell: Force password change of users in an OU

The following script allows you to force the password change at the next logon.   # Removing the password not expiring Get-ADUser -Filter * -SearchBase “OU=USERS_TEST,DC=lab,DC=intra” | Set-ADUser -PasswordNeverExpires $False # Removed the impossibility to change the password Get-ADUser -Filter * -SearchBase “OU=USERS_TEST,DC=lab,DC=intra” | Set-ADUser -CannotChangePassword $False # We force the change Get-ADUser -Filter * …

Read morePowerShell: Force password change of users in an OU

Google Analytics: track outgoing clicks with jQuery

The script below allows you to track clicks to external links to your website. In addition, I leave you the code to track PNG image openings and zip file downloads. jQuery(‘a’).click(function(){ var linktype = ”; // Get click href attribut var hreflink = jQuery(this).attr(‘href’); var myClass = jQuery(this).attr(“class”); // Debug console.log(‘Link clicked : ‘ + …

Read moreGoogle Analytics: track outgoing clicks with jQuery

Categories Uncategorized

Powershell: Automatically decline ARM64 Updates on WSUS

The PowerShell script below allows you to automatically decline ARM64 updates from Windows 10 into WSUS. The script can be started manually or by a scheduled task. The script must be running on the WSUS server. Works under: Windows 2012 and 2010R2 Windows 2016 Param( [string]$WsusServer = ([system.net.dns]::GetHostByName(‘localhost’)).hostname, [bool]$UseSSL = $False, [int]$PortNumber = 8530, [bool]$TrialRun …

Read morePowershell: Automatically decline ARM64 Updates on WSUS