PowerShell Multi-Threading POC

workflow Test-WFConnection{   param([string[]]$Computers)   foreach -parallel ($computer in $computers){     Test-Connection -ComputerName $computer -Count 1 -ErrorAction SilentlyContinue   } } workflow Get-WFADComputer{   param([string[]]$Computers)   foreach -parallel ($computer in $computers){     Get-ADComputer $computer -ErrorAction SilentlyContinue   } } $CompoutersArray = @(“Comp1″,”Comp2″,”Comp3″,”Comp4”) Test-WFConnection -Computers $CompoutersArray |FT Address,ProtocolAddress,StatusCode -AutoSize Get-WFADComputer -Computers $CompoutersArray | FT… Read More PowerShell Multi-Threading POC

Setting Keyboard Layout on Windows (7/8/10/2008/2012) QWERTY AZERTTY

In Windows If you want to change the inputtype, like from QWERTY to AZERTY layout just enter these to lines of Powershell commands New-WinUserLanguageList fr-FR Set-WinUserLanguageList fr-FR The first command New-WinUserLanguageList fr-fr will add french keyboard (which is an AZERTY keyboard layout) to availibale keybord layouts, while the second command Set-WinUserLanguageList fr-fr sets this newly added input… Read More Setting Keyboard Layout on Windows (7/8/10/2008/2012) QWERTY AZERTTY

Prevent Group Policy From Applying to Your Computer

Found this interesting (here) 1. Click Start, Run, type in ’regedit’ and click OK. 2. Navigate to: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies If there is nothing there, and of course you have temporarily access to HKLM go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies 3. Remove any policies you do not want on your computer. 4. Right-click on the Policies key and choose Permissions.… Read More Prevent Group Policy From Applying to Your Computer

PDQ Deploying using computer IP(Target Computer Offline or Network Path not found)

Using PDQ Deploy, I was getting a failed status when deploying an application on a Target server The server was on the network and I can remote connect to it But PDQ Deploy was unable to deploy the app on the target server (Windows 2012 R2 Standard Edition) PDQ Deploy says that it could be… Read More PDQ Deploying using computer IP(Target Computer Offline or Network Path not found)

Cloned VM from VMware Template boot

If you get this message when booting up a template-cloned VM: This could reset you VM characteristics (name/ip/etc.) as per personalization file when cloned from template, and this each time you boot/reboot the VM.. Quite serious don’t you think ! Do this: In Windows registry key  under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager Find variable BootExecute and edit Delete value sysprepDecrypter.exe and… Read More Cloned VM from VMware Template boot

Windows Activation (error 0x80072EE7)

To activate a Windows MSDN licence you need to have access to the Internet Execute the command from CMD window: slmgr /ato If you don’t have acces to Windows Server (Internet access) Activation will fail and throw error ” 0x80072EE7 ” Here is the list of windows error https://support.microsoft.com/en-us/kb/836941 If your organization want exlicit Windows… Read More Windows Activation (error 0x80072EE7)