[powershell] get list of logon/logoff of logged user or another on this computer

#get IPScope function GetScope{ Param([Parameter(Mandatory=$true)][string]$PC,[Parameter(Mandatory=$true)][string]$ip) if($ip){$ipV4 = $ip} else{$ipV4 = (Test-Connection -ComputerName $PC -Count 1 | Select IPV4Address).IPV4Address} $ipV40 = $ipV4.split(".")[1]...
#get IPScope function GetScope{ Param([Parameter(Mandatory=$true)][string]$PC,[Parameter(Mandatory=$true)][string]$ip) if($ip){$ipV4 = $ip} else{$ipV4 = (Test-Connection -ComputerName $PC -Count 1 | Select IPV4Address).IPV4Address} $ipV40 = $ipV4.split(".")[1]...
# Run as administrator function DisableActionCenter{ param($Hive) Write-Host "Disabling Action Center..." If (!(Test-Path "$Hive\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications")) {New-Item -Path "$Hive\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications"...
#Deactivate Windows 10 widget "News and interests" Once and for all: $ShellFeedsTaskbarViewMode = 2 $IsAnaheimEdgeInstalled = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "IsAnaheimEdgeInstalled").IsAnaheimEdgeInstalled...
Sometimes your DPs needs cleaning, because orphean content stay in and decrease free space on the CMCB partition. A solution is to rebuild the DP. Another solution is to use "ContentLibraryCleanup.exe" that is in the CMCB tools into the CMCB source. But...
Connect to SCCM: In admin console type it: Import-Module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1' New-PSDrive -Name