PowerShell – Return Current User from QUser

Quser.exe, short for Query User, is a utility in the Windows Command Prompt that allows administrators to view information about currently logged-on users. It’s particularly useful in environments with multiple users, such as corporate networks or shared computers. I like to use it, because it just works, and is available on all the Windows computers. Read More …

Batch – Return User Session Information

This will return the user’s session information locally, and remotely. I use this with SCCM and Intune.   Code.cmd   :: MrNetTek :: eddiejackson.net :: 7/11/2024 :: free for public use :: free to claim as your own @ECHO OFF :: Initialize SETLOCAL enabledelayedexpansion SET tstQUser=false SET tstQWin=false :: Detect Session :: Method 1 quser Read More …

Intune – Forcing PowerShell – Device Sync

This is how you would force an Intune sync for ALL devices.   Code.ps1   # MrNetTek # eddiejackson.net # 7/10/2024 # free for public use # free to claim as your own Install-Module -Name Microsoft.Graph.Intune -Force -AllowClobber Install-Module -Name Microsoft.Graph.DeviceManagement.Actions -Force -AllowClobber Install-Module -Name Microsoft.Graph.DeviceManagement -Force -AllowClobber # Connect to Graph Connect-MgGraph -scope DeviceManagementManagedDevices.PrivilegedOperations.All, Read More …