Home » Archive by category "General"

Finding Inactive or Unused Computers

dsquery user -startnode forestroot -samid <username> | dsmod user -pwd <new_password> DsQuery | HomeWorks’s Blog (wordpress.com) Share This:

Backup GPOs basing on GPO DisplayName

$invalidChars = ‘:\\/’ + [RegEx]::Escape(-join [IO.Path]::InvalidPathChars) $backupDir = ‘C:\temp\backup’ Get-GPO -All -Domain <DOmain Name>| ForEach-Object { $name = $_.DisplayName -replace “[$invalidChars]”, ‘_’ $gpoDir = Join-Path...

Activate Windows with KMS server

Activate Windows with KMS Server Step 1: KMS Client Setup Key Before activating your Microsoft product (Windows or Office) on the KMS server, you must change...

Delete files based on the list of computers

Delete Files from Remote computers The following PowerShell script recipe will help you delete a remote file based on a list of computers stored in a text file. New PowerShell function...

Useful Windows Command Prompt Tricks

Useful Windows Command Prompt Tricks 1. Command History Using this command, you can track down your command history. This will turn out to be useful when...

How To Convert Text Into Audio

How To Convert Text Into Audio STEP 1: Open Notepad. Press Win+R and type Notepad and Press Enter. STEP 2: Now, Copy following program and paste it in Notepad Dim message, sapi message...