It handle the password in a secure way. Look at this as a template and do the necessary changes.
Category Archives: Windows
Allow add/remove members in an AD group
By doing this programmatically you can give multiple users or group(s) the right to add or remove users from an AD group. If you do this in ADUC you can only give the user you set as ‘Managed by’ the permissions.
Get GPO link with Powershell
There is no Get-GPLink cmdlet, but this script will help you. https://github.com/GoateePFE/GPLinkReport
Windows Commands Reference PDF
The complete list
Add BitLocker to AD after the disk has been encrypted
How you can add the recovery password to AD after the disk has been encrypted
Remove Orphaned ADMX GPO values
http://blog.jocha.se/tech/remove-orphaned-admx-gpo-values Example: 1Remove-GPRegistryValue -Name "My Group Policy" -key "HKLM\Software\Policies\Microsoft\Windows\Skydrive" -ValueName DisableFileSync
Unable to start OneDrive Windows 10
Run gpedit.msc (Local Group Policy Editor) Next navigate to Computer Configuration\Administrative Templates\Windows Components\OneDrive. In the right panel, double click Prevent the usage of OneDrive for File Storage. Set it to Disable
Start Windows programs from command line
https://www.anoopcnair.com/shortcut-to-launch-windows8/
Removing Admin Rights “Fixes” 94% of All Windows Critical Vulnerabilities
Analyzing Microsoft’s 2016 security reports reveals that 94% of critical vulnerabilities could easily be mitigated http://news.softpedia.com/news/most-of-microsoft-s-critical-vulnerabilities-solved-by-removing-admin-rights-513202.shtml
Memory leak?
Have a look at this tool from Sysinternal https://technet.microsoft.com/en-us/sysinternals/ff700229.aspx