Commit graph

20 commits

Author SHA1 Message Date
xtqqczze f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
Steve Lee b7cb335f03
Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
xtqqczze 2014ce66c1
Set StrictMode version 3.0 (#11563) 2020-02-03 09:44:10 -08:00
Orca88 fc0e3bc6b8 Make Install-PowerShellRemoting.ps1 handle empty string in PowerShellHome parameter (#10526)
When PowerShellHome is not specified as a runtime parameter to Install-PowerShellRemoting.ps1, the check '-ne $null' is actually an empty string.  Properly checking with [String]::IsNullOrEmpty() solves the problem.
2019-09-16 13:16:24 -07:00
Steve Lee 29e21470d9 Port PowerShell to .NET Core 3.0 (#9597) 2019-05-21 13:43:51 +08:00
Steve Lee abcdce4e3e Don't fail if SaferPolicy API is not available on Win10 IoT or NanoServer (#7075)
* don't fail if SaferApi is not available
* fix install-powershellremoting to work on Windows PowerShell 5.1
2018-06-19 17:53:32 -07:00
Klaudia Algiz 3cd2308af9 Create the default PSSession configuration, not tied to a specific PowerShell version. (#6519)
Create the default PSSession configuration, not tied to a specific PowerShell version.

When Enable-PSRemoting command is run, it creates 2 sessions configurations:

first, the same as it was before with the name containing the current version expressed as: 'PowerShell.$PSVersionTable.GitCommitId'
second with the default name 'PowerShell.6' so that administrators wouldn't have to guess which specific version is installed on the target.
PR addresses the issue: #6470
2018-04-10 12:21:44 -07:00
Steve Lee c1c5344a88 Update copyright and license headers (#6134)
Based on standard practices, we need to have a copyright and license notice at the top of each source file. Removed existing copyrights and updated/added copyright notices for .h, .cpp, .cs, .ps1, and .psm1 files.

Updated module manifests for consistency to have Author = "PowerShell" and Company = "Microsoft Corporation". Removed multiple line breaks.

Separate PR coming to update contribution document for new source files: #6140

Manually reviewed each change.

Fix #6073
2018-02-13 09:23:53 -08:00
Steve Lee eb254280fb build: Enable building for win-arm and win-arm64 (#5524)
* enable win-arm and win-arm64 builds

* fix using arm64 tools for build
fix finding vs2017 dynamically

* change install-powershellremoting.ps1 script to use reg provider rather than reg.exe so that error doesn't show on success
fix formatting issue in cmake.defs

* add check that path being read from config file is valid
address PR feedback

* fix copying of PowerShell.Core.Instrumentation as VS2017 puts it in $HOME/source
address PR feedback
2017-12-08 15:43:53 -08:00
Steve Lee 2cc091115b Rename powershell.exe to pwsh.exe (#5101)
- Rename powershell.exe to pwsh.exe
- Fixe appveyor.psm1
- Update MSI to include 'pwsh' in path and app paths
- Revert change for hyper-v powershell direct
- Update names in packaging.psm1.
- Fix check for SxS
2017-10-17 17:25:11 -07:00
Dongbo Wang 55ce5dc86e Update script to get PSVersion from $PSVersionTable (#5045)
* Update script to get PSVersion from $PSVersionTable

* Address feedback

* Address cleanup comments

* Add back 'Remove-Item .\$fileName'

* Add the comment back too
2017-10-09 16:13:15 -07:00
Mike Richmond 71da6b6e26 Add x86 support to the remoting install script 2016-11-18 16:35:16 -08:00
Mike Richmond a659a95a00 Fixing the plugin install directory to refect the current version (#2539) 2016-10-26 15:25:09 -07:00
Jason Shirk 8b056776c0 Stop using 'Open PowerShell' and OPS in code (#1838) 2016-08-16 17:03:34 -07:00
Mike Richmond 85927cc79b Removed DefaultParameterSetName since it was unused. 2016-08-12 15:35:02 -07:00
Charu fd94e7c6f8 Fixing remoting install script so that it parses the verison number from powershell.version 2016-08-12 14:35:43 -07:00
Mike Richmond a951e1b737 Fixing compile issue for FullClr and adding restart so that the WinRM changes take effect after the registration script runs. 2016-08-10 20:48:47 -07:00
Mike Richmond afe86d6bd7 Work in progress to modify the native binary CoreCLR build. 2016-08-10 20:48:47 -07:00
Mike Richmond abb8e1ed36 Fixing capitalization of Copy-Item. 2016-08-08 09:38:43 -07:00
Mike Richmond 73ea16f23c Adding WinRM registration script and pwrshplugin publishing. 2016-08-08 09:38:43 -07:00