Hi Azure / Microsoft365 friends, In a recent project, I was allowed to take on the following task. Search for all users (active users, not...
I use PDQ inventory to monitor Windows computers, and I have noticed that PDQ is reporting that many computers have been up for several days in a row, which I know to be false. When I check the computer, sure enough, the Task Manager and Powershell uptime command shows that the computer...
A "tail -f" equivalent command in Powershell to show real time logging A call to SSPI failed A connection to the directory on which to process the request was unavailable. This is likely a transient condition. A fast way to remove duplicated lines from an unsorted text file? a lot of c...
is empty, this means the license is assigned directly - this is the case for users who have never been licensed via groups in the past if ($license.GroupsAssigningLicense.Count -eq 0) { return $true } #If the collection contains the ID of the user object, this means the license is ...
In this step, you create a user who is the target of the admin assignments. When you make these calls, change contoso.onmicrosoft.com to the domain name of your tenant. You can find tenant information on the Microsoft Entra overview page.PowerShell 複製 ...
Before the rollout, unlicensed users who did not have a valid Teams license were displayed in the output of the Get-CsOnlineUser cmdlet for 30 days after license removal. After the rollout, Get-CsOnlineUser will show unlicensed users after the initial 30 days and also include unlicensed users...
var processes = PowerShell.Create().AddCommand(“Get-Process”). AddParameter(“Name”, “*e*”).Invoke(); Console.WriteLine(“You have “ + processes.Count + ” processes with ‘e’ in the name!”); } } }When you run it, the logged content emulates what you might have seen:...
If you want to know if you have any certificates installed on your machine that can be used for signing scripts, the following cmdlet will show you: Get-ChildItem CERT: -recurse –codeSigningCert After installing the certificate on your Windows® computer, you use the Set-AuthenticodeSignature...
it means there is another version of ADAL DLL already in the process space of your PowerShell environment.\n\n $authResult = $authContext.AcquireTokenAsync($resourceAppIdURI, $clientCredential).Result\n # If the accesstoken is valid then create the authentication header...
the object. To paraphrase Brandon Sullivan – the community is not a potted plant – it has a role to play here. You can extend any type with the data you need. We’ve done that for you for a few objects to show you the way. Let’s look at the PATH property of the Process ...