PowerShell script to export list of Computers in AD Server
Get-ADComputer -Filter * -Property * | Select-Object Name,OperatingSystem,OperatingSystemVersion,ipv4Address | Export-CSV C:\ADcomputerslist.csv -NoTypeInformation -Encoding UTF8
Sheik's Site
Get-ADComputer -Filter * -Property * | Select-Object Name,OperatingSystem,OperatingSystemVersion,ipv4Address | Export-CSV C:\ADcomputerslist.csv -NoTypeInformation -Encoding UTF8
Check the expiration policy for a password Get-AzureADUser -ObjectId | Select-Object @{N=”PasswordNeverExpires”;E={$_.PasswordPolicies -contains “DisablePasswordExpiration”}} Get-AzureADUser -All $true | Select-Object UserPrincipalName, @{N=”PasswordNeverExpires”;E={$_.PasswordPolicies -contains “DisablePasswordExpiration”}} Set a password to expire Get-AzureADUser -ObjectId | Select-Object @{N=”PasswordNeverExpires”;E={$_.PasswordPolicies -contains “DisablePasswordExpiration”}} Get-AzureADUser -All $true | Select-Object UserPrincipalName, @{N=”PasswordNeverExpires”;E={$_.PasswordPolicies -contains “DisablePasswordExpiration”}} Set a password to expire Set-AzureADUser -ObjectId -PasswordPolicies None Get-AzureADUser -All … Read more
Reference Link https://learn.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-nps-extension-vpn#configure-certificates-for-use-with-the-nps-extension-by-using-a-powershell-script
This article helps work around an issue where the Screensaver doesn’t start after a Group Policy is configured to enable it in Windows. Applies to: Windows 7 Service Pack 1, Windows Server 2012 R2Original KB number: 2616727 Symptoms A Group Policy is configured to enable Screensaver: User Configuration\Administrative Templates\Control Panel\Personalization\Enable screen saver But there’s no … Read more
Enter the script on the Azure CLI “PowerShell”. $VM = Get-AzVM -ResourceGroupName RGNAME -Name VMNAME$VM.TimeCreated
First Step Check the current status. Open the Command Prompt and run the following command Manage-bde -protectors -get c: *we can change the drive letter as per our requirement. Secondly Run the following command one after one as per the order. The Fix: manage-bde -protectors c: -delete -t tpm manage-bde -protectors c: -add -tpm Finally, … Read more