IDT Audio Silent Uninstall

email me

The Command

“C:\Program Files (x86)\InstallShield Installation Information\{E3A5A8AB-58F6-45FF-AFCB-C9AE18C05001}\setup.exe” -s -remove -f1c:\windows\setup.iss

 

The Setup.iss file

[InstallShield Silent]
Version=v7.00
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{E3A5A8AB-58F6-45FF-AFCB-C9AE18C05001}-DlgOrder]
Dlg0={E3A5A8AB-58F6-45FF-AFCB-C9AE18C05001}-SprintfBox-0
Count=2
Dlg1={E3A5A8AB-58F6-45FF-AFCB-C9AE18C05001}-SdFinishReboot-0
[{E3A5A8AB-58F6-45FF-AFCB-C9AE18C05001}-SprintfBox-0]
Result=1
[Application]
Name=IDT Audio
Version=1.0.6433.0
Company=IDT
Lang=0009
[{E3A5A8AB-58F6-45FF-AFCB-C9AE18C05001}-SdFinishReboot-0]
Result=1
BootOption=0

 

Notes

If you want to add this to a SCCM Task Sequence,

#1 Create a self-extracting EXE using WinRAR, extracting to C:\Windows—-the EXE will contain the setup.iss.

#2 Add the self-extracting EXE from above to the Task Sequence. Create the EXE as a package in Software, then in the TS, point to the package.

#3 Add a Run Command in the Task Sequence: cmd /c “C:\Program Files (x86)\InstallShield Installation Information\{E3A5A8AB-58F6-45FF-AFCB-C9AE18C05001}\setup.exe” -s -remove -f1c:\windows\setup.iss

 

WinRAR Usage

 

SCCM – Windows 10 Upgrade – SetupComplete.cmd

email me

WARNING: This is experimental

For any of those interested, this is the SetupComplete CMD file Microsoft uses to complete the Task Sequence during a Windows 7-8 upgrade to Windows 10.

It is located here: C:\Windows\SMSTSPostUpgrade

The importance of this file is that it manages whether or not a rollback will happen (failures in the task sequence), along with controlling some bootstrap tasks. You could add to this—-at the very end of the file—if you wanted to accomplish something post—post setup.

You can append to the file using  three methods:

#1 Just create a package that runs and overwrites the file (a copy command sorta thing).

#2 Add a Run Command into the Task Sequence and echo to the SetupComplete file; remember to use ‘>>’ and not just ‘>’

Example

echo DO THIS >> C:\Windows\SMSTSPostUpgrade\SetupComplete.cmd

#3 Create a self-extracting EXE (I like using WINRAR) to just overwrite the file (no copy command needed).

 

The Script

@ECHO OFF

REM SCCMClientPath should be set before we get here

REM This script is written by ConfigMgr Task Sequence Upgrade Operating System action
REM SetupComplete.cmd — Upgrade Complete, calling TSMBootstrap to resume task sequence
echo %DATE%-%TIME% Entering setupcomplete.cmd >> C:\Windows\setupcomplete.log

echo %DATE%-%TIME% Setting env var _SMSTSSetupRollback=FALSE >> C:\Windows\setupcomplete.log
set _SMSTSSetupRollback=FALSE

echo %DATE%-%TIME% Setting registry to resume task sequence after reboot >> C:\Windows\setupcomplete.log
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v SetupType /t REG_DWORD /d 2 /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v CmdLine /t REG_SZ /d “C:\Windows\SMSTSPostUpgrade\setupcomplete.cmd” /f

echo %DATE%-%TIME% Running C:\Windows\CCM\\TSMBootstrap.exe to resume task sequence >> C:\Windows\setupcomplete.log
C:\Windows\CCM\\TSMBootstrap.exe /env:Gina /configpath:C:\_SMSTaskSequence /bootcount:2

IF %ERRORLEVEL% EQU -2147021886 (
echo %DATE%-%TIME% ERRORLEVEL = %ERRORLEVEL% >> C:\Windows\setupcomplete.log
echo %DATE%-%TIME% TSMBootstrap requested reboot >> C:\Windows\setupcomplete.log
echo %DATE%-%TIME% Rebooting now >> C:\Windows\setupcomplete.log
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v SetupShutdownRequired /t REG_DWORD /d 1 /f
) else (
echo %DATE%-%TIME% ERRORLEVEL = %ERRORLEVEL% >> C:\Windows\setupcomplete.log
echo %DATE%-%TIME% TSMBootstrap did not request reboot, resetting registry >> C:\Windows\setupcomplete.log
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v SetupType /t REG_DWORD /d 0 /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v CmdLine /t REG_SZ /d “” /f
)
echo %DATE%-%TIME% Exiting setupcomplete.cmd >> C:\Windows\setupcomplete.log

set SCCMClientPath=

 

Notes

To understand more about these files, look in the C:\Windows\CCM folder. There are file templates in there which are used to generate these setup cmds (SetupCompleteTemplate.cmd
SetupRollbackTemplate.cmd).

What the SetupRollback.cmd looks like (located in the same place as the SetupComplete.cmd)

@ECHO OFF

REM SCCMClientPath should be set before we get here

REM This script is written by ConfigMgr Task Sequence Upgrade Operating System action
REM SetupRollback.cmd — Upgrade Rolled back, calling TSMBootstrap to resume task sequence
echo %DATE%-%TIME% Entering setuprollback.cmd >> C:\Windows\setuprollback.log

echo %DATE%-%TIME% Setting env var _SMSTSSetupRollback=TRUE >> C:\Windows\setuprollback.log
set _SMSTSSetupRollback=TRUE

echo %DATE%-%TIME% Setting registry to resume task sequence after reboot >> C:\Windows\setuprollback.log
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v SetupType /t REG_DWORD /d 2 /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v CmdLine /t REG_SZ /d “C:\Windows\SMSTSPostUpgrade\setuprollback.cmd” /f

echo %DATE%-%TIME% Running C:\Windows\CCM\\TSMBootstrap.exe to resume task sequence >> C:\Windows\setuprollback.log
C:\Windows\CCM\\TSMBootstrap.exe /env:Gina /configpath:C:\_SMSTaskSequence /bootcount:2

IF %ERRORLEVEL% EQU -2147021886 (
echo %DATE%-%TIME% ERRORLEVEL = %ERRORLEVEL% >> C:\Windows\setuprollback.log
echo %DATE%-%TIME% TSMBootstrap requested reboot >> C:\Windows\setuprollback.log
echo %DATE%-%TIME% Rebooting now >> C:\Windows\setuprollback.log
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v SetupShutdownRequired /t REG_DWORD /d 1 /f
) else (
echo %DATE%-%TIME% ERRORLEVEL = %ERRORLEVEL% >> C:\Windows\setuprollback.log
echo %DATE%-%TIME% TSMBootstrap did not request reboot, resetting registry >> C:\Windows\setuprollback.log
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v SetupType /t REG_DWORD /d 0 /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\Setup” /v CmdLine /t REG_SZ /d “” /f
)
echo %DATE%-%TIME% Exiting setuprollback.cmd >> C:\Windows\setuprollback.log

set SCCMClientPath=

Windows 10 – 1709, 16288

email me

General changes, improvements, and fixes for PC

Windows Shell Improvements

  • We fixed an issue resulting in the Facebook Messenger app failing to accept the enter key when sending messaging in recent flights.
  • We fixed an issue where the “New” text displayed under the names of newly installed apps in Start wouldn’t go away after launching the app.
  • We fixed an issue where using the letters in Start to jump to different locations in the alphabet wasn’t consistently working in the last few flights.
  • We fixed an issue where local app search in Cortana failed to return the expected app if the user profile directory contained non-ASCII characters.
  • We fixed an issue where pressing WIN + X would sometimes not show the accelerator key underlines.
  • We fixed an issue where when the People button was present in taskbar, and toast-only banners (for example from Outlook 2016) were sent, the Action Center badge counter would become inaccurate.
  • We fixed a bug from recent flights where upon unlock you’d be bombarded with any notifications that occurred while your PC was locked. If you’d like to review notifications received while your PC was locked, they can be found in the Action Center

Input Improvements

  • We fixed an issue where pressing delete when using the full touch keyboard layout in UWP apps would input a period rather than deleting a character.
  • We fixed an issue where the Pinyin IME’s emoji picker wouldn’t load in recent flights.
  • We fixed a tablet mode issue where launching the touch keyboard in UWP apps might sometimes take multiple taps on the edit field before the keyboard would come up.
  • We fixed an issue where when using the Chinese (Simplified) handwriting panel InputPersonalization.exe could get into a state where it would unexpectedly have a continually high CPU usage.
  • We fixed an issue with the handwriting panel where the “&123” and Emoji button didn’t work when the device was in portrait orientation.
  • We fixed an issue resulting in not being able to turn on the Japanese IME after the focus was moved from a UWP (like Sticky Notes) to another app and back.
  • We fixed an issue resulting in a stutter when selecting long strings in certain single line editable text boxes (for example when naming favorites in Microsoft Edge).
  • We fixed an issue resulting in not being able to type text via the touch keyboard into Internet Explorer when using the Japanese, Chinese, or Korean keyboards.
  • We fixed an issue where the Dayi and Array IMEs couldn’t input Chinese characters in certain apps in recent flights when using the touch keyboard.

Microsoft Edge Improvements

  • We fixed an issue where the tab preview for PDFs was just black with two white stripes.
  • We fixed an issue where the first time you used Ctrl + F in a tab the search box wouldn’t get focus. We also fixed an issue where after clicking the Find on Page text box you might not be able to type in the address bar.
  • We fixed an issue where sometimes the Hub would appear to open twice when you clicked the icon.
  • We fixed an issue where typing a web address into the address bar from the New Tab and Start Page and would sometimes clear the text and not result in any page navigation.
  • We fixed an issue where Ctrl + Click on a link in a PDF wouldn’t open the link in a new tab.
  • We fixed an issue where “Open with previous pages” wouldn’t recover tabs if the tabs had been dragged between frames prior to closing Microsoft Edge.
  • We fixed an issue which could result in uploads failing on some sites, such as Behance.net.
  • We fixed an issue where website tooltips could end up displaying behind the Microsoft Edge window after opening a link in new tab in the background.
  • We fixed an issue resulting copy/paste and the print dialog not working for those using the updated Youtube.com website design.
  • We’ve updated editable fields in PDFs to now have a subtle color to help indicate that they’re editable.
  • We fixed an issue resulting in PDFs potentially rendering blank after panning down a few pages and back up.
  • We fixed an issue from recent flights where Alt + D wouldn’t bring input focus to the address bar when certain keyboards were active.

Gaming

  • We fixed an issue resulting in Ghost Recon: Wildlands not starting in recent flights since the Easy anti-cheat component wouldn’t load.
  • We fixed an issue resulting in Mod Organizer no longer load mods into Skyrim in recent flights.

Devices

  • We fixed the issue where USBhub.sys was causing spontaneous reboots due to bugchecks (GSOD).
  • We fixed an issue where your PC might not go to sleep automatically after remoting into it and signing out of the remote session.

Other fixes and improvements

  • We fixed an issue where Settings could crash if a Bluetooth device was turned off while the Bluetooth settings page was open.
  • We fixed an issue from recent flights resulting in some Insiders experiencing an issue where Store apps would begin to fail to activate after being launched a few times.
  • We fixed an issue where if the lock screen slideshow was set to a OneDrive folder containing offline-only images, these pictures would all be downloaded to the PC while the PC was locked (going through each picture). These pictures will now be skipped.
  • If you’ve encountered an issue where Spotlight appears stuck on a particular image, we’ve added logic such that it should now reset after at most 7 days.

Windows 10 – Build 1709 Features that are removed or deprecated

email me

From Microsoft…

Summary

The following features and functionalities in the Windows 10 Fall Creators Update are either removed from the product in the current release (“Removed”) or are not in active development and might be removed in future releases (“Deprecated”).

This list is intended to help customers consider these removals and deprecations for their own planning. The list is subject to change and may not include every deprecated feature or functionality.

For more information about a listed feature or functionality and its replacement, see the documentation for that feature. You can also follow the provided links in this table to see additional resources.

More Information

Removed and deprecated features

Feature

Removed

Deprecated

3D Builder app

No longer installed by default. Consider using Print 3D and Paint 3D in its place. However, 3D Builder is still available for download from the Windows Store.

X

 

Apndatabase.xml

For more information about the replacement database, see the following Hardware Dev Center articles:

MO Process to update COSA

COSA FAQ

X

 

Enhanced Mitigation Experience Toolkit (EMET)

Use will be blocked. Consider using the Exploit Protection feature of Windows Defender Exploit Guard as a replacement.

X

 

IIS 6 Management Compatibility

We recommend that users use alternative scripting tools and a newer management console.

 

X

IIS Digest Authentication

We recommend that users use alternative authentication methods.

 

X

Microsoft Paint

Will be available through the Windows Store. Functionality integrated into Paint 3D.

 

X

Outlook Express

Removing this non-functional legacy code.

X

 

Reader app

Functionality to be integrated into Microsoft Edge.

X

 

Reading List

Functionality to be integrated into Microsoft Edge.

X

 

Resilient File System (ReFS)

Creation ability will be available in the following editions only: Windows 10 Enterprise and Windows 10 Pro for Workstations.

Creation ability will be removed from all other editions.  All other editions will have Read and Write ability.

(added: August 17, 2017)

X

 

RSA/AES Encryption for IIS

We recommend that users use CNG encryption provider.

 

X

Screen saver functionality in Themes

To be disabled in Themes (classified as “Removed” in this table). Screen saver functionality in Group Policies, Control Panel, and Sysprep is now deprecated but continues to be functional. Lockscreen features and policies are preferred.

X

 X

Sync your settings

Back-end changes: In future releases, the back-end storage for the current sync process will change. A single cloud storage system will be used for Enterprise State Roaming and all other users. The “Sync your settings” options and the Enterprise State Roaming feature will continue to work.

(updated: August 17, 2017)

 X

Syskey.exe

Removing this nonsecure security feature. We recommend that users use BitLocker instead. For more information, see the following Knowledge Base article:

4025993 Syskey.exe utility is no longer supported in Windows 10 RS3 and Windows Server 2016 RS3

X

System Image Backup (SIB) Solution

We recommend that users use full-disk backup solutions from other vendors.

X

TCP Offload Engine

Removing this legacy code. This functionality was previously transitioned to the Stack TCP Engine. For more information, see the following PFE Platform Blog article:

Why Are We Deprecating Network Performance Features (KB4014193)?

X

Tile Data Layer

To be replaced by the Tile Store.

X

TLS RC4 Ciphers

To be disabled by default. For more information, see the following Windows IT Center topic:

TLS (Schannel SSP) changes in Windows 10 and Windows Server 2016

X

Trusted Platform Module (TPM) Owner PasswordManagement

This legacy code to be removed.

 X

Trusted Platform Module (TPM): TPM.msc and TPM Remote Management

To be replaced by a new user interface in a future release.

X

Trusted Platform Module (TPM) Remote Management

This legacy code to be removed in a future release.

X

Windows Hello for Business deployment that uses System Center Configuration Manager

Windows Server 2016 Active Directory Federation Services – Registration Authority (ADFS RA) deployment is simpler and provides a better user experience and a more deterministic certificate enrollment experience.

X

Windows PowerShell 2.0

Applications and components should be migrated to PowerShell 5.0+.

X

Windows 10 – Build 1709 App IDs

email me

Batch file

:mount
echo Mounting WIM…
dism /mount-wim /wimfile:D:\WIM\install.wim /index:2 /mountdir:D:\mount
pause

:commit
echo Prepare for commit…
pause
dism /unmount-wim /mountdir:D:\mount /commit
pause

 

PowerShell

get-appxprovisionedpackage -path D:\mount

 

Remove using

dism /image:D:\mount /remove-provisionedappxpackage /packagename:Microsoft.BingWeather_4.21.2492.0_neutral_~_8wekyb3d8bbwe

 

Apps and IDs

DisplayName : Microsoft.BingWeather
Version : 4.21.2492.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.BingWeather_4.21.2492.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.DesktopAppInstaller
Version : 1.8.4001.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.DesktopAppInstaller_1.8.4001.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.GetHelp
Version : 10.1706.1811.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.GetHelp_10.1706.1811.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.Getstarted
Version : 5.11.1641.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.Getstarted_5.11.1641.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.Microsoft3DViewer
Version : 1.1707.26019.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.Microsoft3DViewer_1.1707.26019.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.MicrosoftOfficeHub
Version : 2017.715.118.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.MicrosoftOfficeHub_2017.715.118.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.MicrosoftSolitaireCollection
Version : 3.17.8162.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.MicrosoftSolitaireCollection_3.17.8162.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.MicrosoftStickyNotes
Version : 1.8.2.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.MicrosoftStickyNotes_1.8.2.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.MSPaint
Version : 2.1709.4027.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.MSPaint_2.1709.4027.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.Office.OneNote
Version : 2015.8366.57611.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.Office.OneNote_2015.8366.57611.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.OneConnect
Version : 3.1708.2224.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.OneConnect_3.1708.2224.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.People
Version : 2017.823.2207.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.People_2017.823.2207.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.Print3D
Version : 1.0.2422.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.Print3D_1.0.2422.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.StorePurchaseApp
Version : 11706.1707.7104.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.StorePurchaseApp_11706.1707.7104.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.Wallet
Version : 1.0.16328.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.Wallet_1.0.16328.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.Windows.Photos
Version : 2017.37071.16410.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.Windows.Photos_2017.37071.16410.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.WindowsAlarms
Version : 2017.828.2050.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.WindowsAlarms_2017.828.2050.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.WindowsCalculator
Version : 2017.828.2012.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.WindowsCalculator_2017.828.2012.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.WindowsCamera
Version : 2017.727.20.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.WindowsCamera_2017.727.20.0_neutral_~_8wekyb3d8bbwe

DisplayName : microsoft.windowscommunicationsapps
Version : 2015.8241.41275.0
Architecture : neutral
ResourceId : ~
PackageName : microsoft.windowscommunicationsapps_2015.8241.41275.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.WindowsFeedbackHub
Version : 1.1705.2121.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.WindowsFeedbackHub_1.1705.2121.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.WindowsMaps
Version : 2017.814.2249.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.WindowsMaps_2017.814.2249.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.WindowsStore
Version : 11706.1002.94.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.WindowsStore_11706.1002.94.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.XboxApp
Version : 31.32.16002.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.XboxApp_31.32.16002.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.XboxGameOverlay
Version : 1.20.25002.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.XboxGameOverlay_1.20.25002.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.XboxIdentityProvider
Version : 2017.605.1240.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.XboxIdentityProvider_2017.605.1240.0_neutral_~_8wekyb3d8bbwe

DisplayName : Microsoft.XboxSpeechToTextOverlay
Version : 1.17.29001.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.XboxSpeechToTextOverlay_1.17.29001.0_neutral_~_8wekyb3d8bbwe

PowerShell – Back up Product Key

email me

Function BackupKey
{
	$FileName='ProductKey.txt'
    $RegKeyNumber = 2147483650
	$ComputerName = $env:COMPUTERNAME
	$RegPath = "Software\Microsoft\Windows NT\CurrentVersion"
	$ID = "DigitalProductId"
	$objWMI = [WMIClass]"\\$ComputerName\root\default:stdRegProv"
	
    # Return Reg Value 
	$Object = $objWMI.GetBinaryValue($RegKeyNumber,$RegPath,$ID)
	[Array]$IDvalue = $Object.uValue 
	
	If($IDvalue)
	{
		# Return Product name and ID
		$ProductName = (Get-itemproperty -Path "HKLM:Software\Microsoft\Windows NT\CurrentVersion" -Name "ProductName").ProductName 
		$ProductID =  (Get-itemproperty -Path "HKLM:Software\Microsoft\Windows NT\CurrentVersion" -Name "ProductId").ProductId
		
        # Perform binary translation 
        $Result = ConvertTokey $IDvalue
		
        # Return Operating System
        $OperatingSystem = (Get-WmiObject "Win32_OperatingSystem"  | select Caption).Caption
		If($OperatingSystem -match "Microsoft Windows 8" -or $OperatingSystem -match "Microsoft Windows 10")
		{
			if($Result)
			{
				
				[string]$value ="ProductName  : $ProductName `r`n" `
				+ "ProductID    : $ProductID `r`n" `
				+ "Installed Key: $Result"
				$value 

				# Output to file 
				$Choice = GetChoice
				If( $Choice -eq 0 )
				{	
                    # back up key to user desktop
					$txtpath = "C:\Users\"+$env:USERNAME+"\Desktop"
                    
					New-Item -Path $txtpath -Name $FileName -Value $value   -ItemType File  -Force | Out-Null 
                    
                    [System.Windows.MessageBox]::Show('Great Success!')
				}
				Elseif($Choice -eq 1)
				{
					Exit 
				}
			}
			Else
			{
				Write-Warning "Please run this script on Windows 8.x or Windows 10!"
			}
		}
		Else
		{
			Write-Warning "Please run this script on Windows 8!"
		}
		
	}
	Else
	{
		Write-Warning "Failed to get Windows 8 product key!"
	}

}
 
Function GetChoice
{
    $OptionYES = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes",""
    $OptionNO = New-Object System.Management.Automation.Host.ChoiceDescription "&No",""
    $CHOICES = [System.Management.Automation.Host.ChoiceDescription[]]($OptionYES,$OptionNO)
    $CAPTION = "Product Key"
    $MESSAGE = "  Do you want to save the product key?"
    $RESULT = $Host.UI.PromptForChoice($CAPTION,$MESSAGE,$CHOICES,0)
    $RESULT
}
# Perform Binary to serial translation
Function ConvertToKey($KEY)
{
	$Keyoffset = 52 
	$isWin8 = [int]($Key[66]/6) -band 1
	$HF7 = 0xF7
	$Key[66] = ($Key[66] -band $HF7) -bOr (($isWin8 -band 2) * 4)
	$i = 24
	[String]$Chars = "BCDFGHJKMPQRTVWXY2346789"	
	do
	{
		$Cur = 0 
		$X = 14
		Do
		{
			$Cur = $Cur * 256    
			$Cur = $Key[$X + $Keyoffset] + $Cur
			$Key[$X + $Keyoffset] = [math]::Floor([double]($Cur/24))
			$Cur = $Cur % 24
			$X = $X - 1 
		}while($X -ge 0)
		$i = $i- 1
		$KEYOUTPUT = $Chars.SubString($Cur,1) + $KEYOUTPUT
		$last = $Cur
	}while($i -ge 0)
	
	$KEYPART1 = $KEYOUTPUT.SubString(1,$last)
	$KEYPART2 = $KEYOUTPUT.Substring(1,$KEYOUTPUT.length-1)
	if($last -eq 0 )
	{
		$KEYOUTPUT = "N" + $KEYPART2
	}
	else
	{
		$KEYOUTPUT = $KEYPART2.Insert($KEYPART2.IndexOf($KEYPART1)+$KEYPART1.length,"N")
	}
	$a = $KeyOutput.Substring(0,5)
	$b = $KeyOutput.substring(5,5)
	$c = $KeyOutput.substring(10,5)
	$d = $KeyOutput.substring(15,5)
	$e = $KeyOutput.substring(20,5)
	$PRODUCTKEY = $a + "-" + $b + "-"+ $c + "-"+ $d + "-"+ $e
	$PRODUCTKEY 
	
  
}

BackupKey

PowerShell – Returning Time

email me

# https://www.timeanddate.com/worldclock/

$TimeZone = New-Object -TypeName Psobject

# Your local time
$Local = (Get-Date).ToShortTimeString()

# India
$India = (Get-Date).ToUniversalTime().AddHours(8.5).ToShortTimeString()

# Dubai
$Dubai = (Get-Date).ToUniversalTime().AddHours(4).ToShortTimeString()

# Singapora
$Singapore = (Get-Date).ToUniversalTime().AddHours(8).ToShortTimeString()

# Tokyo, Japan
$Tokyo = (Get-Date).ToUniversalTime().AddHours(9).ToShortTimeString()

#London, England
$London = (Get-Date).ToUniversalTime().AddHours(1).ToShortTimeString()

$TimeZone | Add-Member -MemberType 'NoteProperty' -Name Local -Value $Local
$TimeZone | Add-Member -MemberType 'NoteProperty' -Name India -Value $India
$TimeZone | Add-Member -MemberType 'NoteProperty' -Name Dubai -Value $Dubai
$TimeZone | Add-Member -MemberType 'NoteProperty' -Name Singapore -Value $Singapore
$TimeZone | Add-Member -MemberType 'NoteProperty' -Name Tokyo -Value $Tokyo
$TimeZone | Add-Member -MemberType 'NoteProperty' -Name London -Value $London

$TimeZone | ft * -AutoSize

PowerShell – Return Inactive Computer Accounts

email me


# Return Inactive Computer Accounts from AD

# Days Inactive
$Days=180

# File for output
$OUTPUT='C:\_PowerShell\output.csv'

# Today's date for comparison
$TODAY=GET-DATE

# Quest Tools http://eddiejackson.net/apps/Quest_ActiveRolesManagementShellforActiveDirectoryx64_151.zip
GET-QADCOMPUTER -SizeLimit 0 -IncludedProperties LastLogonTimeStamp |
where { ($TODAY-$_.LastLogonTimeStamp).Days -gt $Days } |
Select-Object Name, LastLogonTimeStamp, OSName, ParentContainerDN |
Sort-Object ModificationDate, Name |
Export-CSV $OUTPUT

Microsoft Office Paths

email me

Office XP

  • Windows 64-bitC:\Program Files\Microsoft Office\Office10\
  • Windows 32-bitC:\Program Files (x86)\Microsoft Office\Office10\

Office 2003

  • Windows 64-bitC:\Program Files\Microsoft Office\Office11\
  • Windows 32-bitC:\Program Files (x86)\Microsoft Office\Office11\

Office 2007

  • Windows 64-bitC:\Program Files\Microsoft Office\Office12\
  • Windows 32-bitC:\Program Files (x86)\Microsoft Office\Office12\

Office 2010

  • Windows 64-bitC:\Program Files\Microsoft Office\Office14\
  • Windows 32-bitC:\Program Files (x86)\Microsoft Office\Office14\

Click-To-Run

  • Windows 32-bitC:\Program Files\Microsoft Office 14\ClientX86\Root\Office14\
  • Windows 64-bitC:\Program Files (x86)\Microsoft Office14\ClientX64\Root\Office14\

Office 2013

  • Windows 32-bitC:\Program Files\Microsoft Office\Office15\
  • Windows 64-bitC:\Program Files (x86)\Microsoft Office\Office15\

Click-To-Run

  • Windows 64-bitC:\Program Files\Microsoft Office 15\ClientX86\Root\Office15\
  • Windows 32-bitC:\Program Files (x86)\Microsoft Office15\ClientX64\Root\Office15\

Office 2016

  • Windows 64-bitC:\Program Files\Microsoft Office\root\Office16\
  • Windows 32-bitC:\Program Files (x86)\Microsoft Office\root\Office16\

Click-To-Run

  • Windows 64-bitC:\Program Files\Microsoft Office 16\ClientX86\Root\Office16\
  • Windows 32-bitC:\Program Files (x86)\Microsoft Office16\ClientX64\Root\Office16\

If you never heard of Click-To-Run installation mode, more here…

GUID

The installation GUIDs: https://support.microsoft.com/en-us/kb/234788:

Office XP

  • Word: {8E46FEFA-D973-6294-B305-E968CEDFFCB9}
  • Excel: {5572D282-F5E5-11D3-A8E8-0060083FD8D3}
  • PowerPoint: {FC780C4C-F066-40E0-B720-DA0F779B81A9}
  • Access: {CC29E967-7BC2-11D1-A921-00A0C91E2AA3}
  • Office: {20280409-6000-11D3-8CFE-0050048383C9}

Office 2003

  • Word: {1EBDE4BC-9A51-4630-B541-2561FA45CCC5}
  • Excel: {A2B280D4-20FB-4720-99F7-40C09FBCE10A}
  • PowerPoint: {C86C0B92-63C0-4E35-8605-281275C21F97}
  • Access: {F2D782F8-6B14-4FA4-8FBA-565CDDB9B2A8}
  • Office: {90110409-6000-11D3-8CFE-0150048383C9}

Office 2007

  • Word: {0638C49D-BB8B-4CD1-B191-051E8F325736}
  • Excel: {0638C49D-BB8B-4CD1-B191-052E8F325736}
  • PowerPoint: {0638C49D-BB8B-4CD1-B191-053E8F325736}
  • Access: {0638C49D-BB8B-4CD1-B191-054E8F325736}
  • Office: {0638C49D-BB8B-4CD1-B191-050E8F325736}

Office 2010

32-bit

  • Word: {019C826E-445A-4649-A5B0-0BF08FCC4EEE}
  • Excel: {538F6C89-2AD5-4006-8154-C6670774E980}
  • PowerPoint: {E72E0D20-0D63-438B-BC71-92AB9F9E8B54}
  • Access: {AE393348-E564-4894-B8C5-EBBC5E72EFC6}
  • Office: {398E906A-826B-48DD-9791-549C649CACE5}

64-bit

  • Word: {C0AC079D-A84B-4CBD-8DBA-F1BB44146899}
  • Excel: {8B1BF0B4-A1CA-4656-AA46-D11C50BC55A4}
  • PowerPoint: {EE8D8E0A-D905-401D-9BC3-0D20156D5E30}
  • Access: {02F5CBEC-E7B5-4FC1-BD72-6043152BD1D4}
  • Office: {E6AC97ED-6651-4C00-A8FE-790DB0485859}