os:windows:powershellcookbook
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | os:windows:powershellcookbook [2024-03-07 16:35] (current) – created Manuel Frei | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PowerShell Cookbook ====== | ||
+ | |||
+ | ===== EventLog ===== | ||
+ | |||
+ | ==== List all Users with a Temporary Profile ==== | ||
+ | |||
+ | Limited to the last 30 days. | ||
+ | |||
+ | < | ||
+ | Get-Eventlog Application -EntryType " | ||
+ | </ | ||
+ | |||
+ | Example: | ||
+ | |||
+ | < | ||
+ | PS C:\> Get-Eventlog Application -EntryType " | ||
+ | |||
+ | TimeGenerated | ||
+ | ------------- | ||
+ | 07.03.2024 16:02:57 MYDOMAIN\user1 Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. | ||
+ | 07.03.2024 15:34:09 MYDOMAIN\user1 Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. | ||
+ | 07.03.2024 15:32:24 MYDOMAIN\user2 Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. | ||
+ | 07.03.2024 13:40:41 MYDOMAIN\user3 Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. | ||
+ | 07.03.2024 12:36:36 MYDOMAIN\user2 Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. | ||
+ | 07.03.2024 11:25:54 MYDOMAIN\user3 Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. | ||
+ | 07.03.2024 08:57:32 MYDOMAIN\user1 Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. | ||
+ | </ | ||
os/windows/powershellcookbook.txt · Last modified: 2024-03-07 16:35 by Manuel Frei