How to run a PowerShell script

Launch Windows PowerShell, and wait a moment for the PS command prompt to appear Navigate to the directory where the script lives PS> cd C:\my_path\yada_yada\ (enter) Execute the script: PS> .\run_import_script.ps1 (enter) What am I missing?? Or: you can run the PowerShell script from cmd.exe like this: according to this blog post here Or you … Read more

What are good grep tools for Windows? [closed]

Based on recommendations in the comments, I’ve started using grepWin and it’s fantastic and free. (I’m still a fan of PowerGREP, but I don’t use it anymore.) I know you already mentioned it, but PowerGREP is awesome. Some of my favorite features are: Right-click on a folder to run PowerGREP on it Use regular expressions … Read more

Should I clean the “compress your OS drive” from disk cleanup on window 10?

I’ll suggest to not compress your data unless you’re seriously running out of space as it results in loss of power and speed. This is because after compression, each time you open a file it would need to be decompressed and re-compressed while closing, hence a major performance-hit. A detailed explanation can be found here: … Read more

A fatal error occurred while creating a TLS client credential. The internal error state is 10013

Basically we had to enable TLS 1.2 for .NET 4.x. Making this registry changed worked for me, and stopped the event log filling up with the Schannel error. More information on the answer can be found here Linked Info Summary Enable TLS 1.2 at the system (SCHANNEL) level: (equivalent keys are probably also available for … Read more

PowerShell says “execution of scripts is disabled on this system.”

If you’re using Windows Server 2008 R2 then there is an x64 and x86 version of PowerShell both of which have to have their execution policies set. Did you set the execution policy on both hosts? As an Administrator, you can set the execution policy by typing this into your PowerShell window: For more information, see Using the Set-ExecutionPolicy Cmdlet. When you are … Read more

PowerShell says “execution of scripts is disabled on this system.”

If you’re using Windows Server 2008 R2 then there is an x64 and x86 version of PowerShell both of which have to have their execution policies set. Did you set the execution policy on both hosts? As an Administrator, you can set the execution policy by typing this into your PowerShell window: For more information, see Using the Set-ExecutionPolicy Cmdlet. When you are … Read more

how to get program files x86 env variable?

On a 64-bit machine running in 64-bit mode: echo %programfiles% ==> C:\Program Files echo %programfiles(x86)% ==> C:\Program Files (x86) On a 64-bit machine running in 32-bit (WOW64) mode: echo %programfiles% ==> C:\Program Files (x86) echo %programfiles(x86)% ==> C:\Program Files (x86) On a 32-bit machine running in 32-bit mode: echo %programfiles% ==> C:\Program Files echo %programfiles(x86)% … Read more