0
PS C:\WINDOWS\system32> Push-Location
PS C:\WINDOWS\system32> Set-Location C:\
PS C:\> Set-Location HKLM:\Software\Wow6432Node\Microsoft\jet\4.0\Engines\Excel
PS HKLM:\Software\Wow6432Node\Microsoft\jet\4.0\Engines\Excel> Set-ItemProperty . TypeGuessRows "0"
PS HKLM:\Software\Wow6432Node\Microsoft\jet\4.0\Engines\Excel>Pop-Location
PS C:\>

I am able to run the above commands on my local machine in Power shell command editor.

And looking to deploy into server, need to know the process of implementation? (should i save it as a .cmd/.bat/.ps1)?

What are the actual steps for the implementation into a server?

2 Answers 2

1

Save as .ps1

copy .ps1 file onto server

open up powershell and run set-executionpolicy RemoteSigned

Right click on ps1 file, click "Run with PowerShell"

Sign up to request clarification or add additional context in comments.

Comments

0

You can use enter-pssession or invoke-command to add registry values to a remote server. see this link as a reference: Use PowerShell to Create New Registry Keys on Remote Systems

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.