Paul Higinbotham
e779d5dda1
Fix for issue 1528: SSH based remoting does not handle errors during connection attempt ( #1856 )
2016-08-18 16:08:58 -07:00
Mike Richmond
ef5bf5ce08
Merge pull request #1787 from PaulHigin/WorkingA
...
PowerShell remoting over SSH.
2016-08-12 18:12:53 -07:00
Mike Richmond
7cf93ba966
Merge pull request #1784 from lzybkr/format_cleanup
...
Cleanup mis-formatting of preprocessor directives
2016-08-12 17:11:15 -07:00
Mike Richmond
718ee69c06
Setting Initial OPS LocalMachine ExecutionPolicy to RemoteSigned ( #1769 )
...
* Adding PowerShellProperties.json to the build so ExecutionPolicy set to RemoteSigned at first run.
2016-08-12 17:02:52 -07:00
chunqingchen
2764b31c07
Update the job cache location on on windows platforms ( #1740 )
...
* Update the job cache location on non-windows platforms
2016-08-12 16:54:05 -07:00
PaulHigin
44ad7f9e3c
These changes implement PowerShell remoting over SSH. The changes include feedback from code review comments.
2016-08-12 15:47:46 -07:00
Jason Shirk (POWERSHELL)
231f34b472
Cleanup mis-formatting of preprocessor directives
2016-08-12 15:29:37 -07:00
Dongbo Wang
ea9694980e
Address review comments in product code
2016-08-12 11:01:23 -07:00
Dongbo Wang
8bb291896c
Change 'Platform.XDG_Type' and 'Platform.SelectProductNameForDirectory' back to 'public'
...
Add CI tests for the module path change
2016-08-11 21:45:20 -07:00
Dongbo Wang
c27b4db3ac
Change runtime check to build check because 'Platform.XDG_Type' and 'Platform.SelectProductNameForDirectory' are make unix only
2016-08-11 21:36:48 -07:00
Dongbo Wang
07f9fefee8
Add the shared module path to unix (counterpart of 'Program Files\PowerShell\Modules').
...
Also make 'Platform.XDG_Type' and 'Platform.SelectProductNameForDirectory' unix build only, as they doesn't apply to windows.
2016-08-11 21:36:48 -07:00
Dongbo Wang
3ff19e1d80
Update module path calculation logic to support side-by-side.
...
Use 'Path.PathSeparator' instead of ';' to separate paths, so that it uses ';' on windows and ':' on unix.
Also refactor some code as part of the change.
2016-08-11 21:36:48 -07:00
Andy Schwartzmeyer
ac9902cf95
Merge pull request #1711 from PowerShell/johnkord-Linux_DSC_error_message
...
Error message for Linux DSC schema directory missing
2016-08-11 14:12:38 -07:00
Dongbo Wang
76ca7e5f52
Update to depend on Newtonsoft.Json.9.0.1
2016-08-11 11:43:31 -07:00
John Kordich
4656f3c072
Adding error message letting the user know they need to install PSDSC for Linux
2016-08-10 13:53:37 -07:00
Francisco Gamino
3ed7201e21
Fixing get-help on Linux
2016-08-10 12:19:51 -07:00
Mike Richmond
6575500b79
Whitespace change to retrigger a build
2016-08-09 16:31:26 -07:00
Mike Richmond
063fd9c8f6
Removing directory creation from initialization.
2016-08-09 14:47:04 -07:00
Mike Richmond
ca307e7c95
Fixing JsonConfigFileAccessor constructor so that it doesn't throw exceptions when run as a regular user.
2016-08-09 14:47:04 -07:00
Dongbo Wang
ba2cd1d2b7
Merge pull request #1669 from andschwa/safe-hostname
...
Safe hostname
2016-08-08 11:10:53 -07:00
Andrew Schwartzmeyer
9d164ea972
Move Unix class under Platform
...
E.g. SMA.Platform.Unix, not just SMA.Unix.
2016-08-08 10:48:59 -07:00
Andrew Schwartzmeyer
a8416d7b30
Consolidate GetUserName code
...
Once .NET Core 1.1 becomes available, we can likely remove the entirety
of CorePsExtensions.cs.
2016-08-08 10:48:59 -07:00
Sergei Vorobev
b859b5ab3e
Merge pull request #1671 from lzybkr/remoting_fix
...
Fix remoting break caused by refactoring
2016-08-05 18:48:06 -07:00
Jason Shirk (POWERSHELL)
cf40937552
Fix remoting break caused by refactoring
...
Remoting apparently depends on the names of private fields
not changing between versions of PowerShell.
Because of this, these refactorings broke remoting:
* rename private fields
* convert to auto-property
2016-08-05 17:55:49 -07:00
Andrew Schwartzmeyer
3f9889d6da
Consolidate InternalGetFolderPath
...
This logic belongs in one place, not split in two.
2016-08-05 15:34:52 -07:00
Andrew Schwartzmeyer
816dac0a55
Do not throw when getting Unix domain or user name
...
If the attempt to get the name fails, throwing an exception results in
PowerShell crashing. Instead, we should simply return empty data.
"unknown" is specifically not returned because it would be ambiguous; it
is not impossible to have an actual user or domain named "unknown".
2016-08-05 15:34:43 -07:00
Dongbo Wang
dc9b326587
Fix issue #1609 - Get-PSSession -computername fails on nano
...
Root cause: Microsoft.WSMan.Management and Microsoft.PowerShell.Commands.Diagnostics are not put in the default snapin list for win-ops, and thus when a runspace is created using RunspaceConfiguration, those 2 are not loaded as snapins by default, which is a behavior change compared to Nano PS.
Fix: Replace the guard 'PORTABLE' to be 'UNIX' so that they are in the default snapin list when targeting windows platform.
2016-08-05 11:20:14 -07:00
Mike Richmond
1e4615114c
Reducing duplication of Environment variable extraction
2016-08-04 13:15:34 -07:00
Mike Richmond
d3625f7662
Resolving issue with Registry reads where values are not present.
2016-08-04 13:15:34 -07:00
Mike Richmond
6eb0f2d6c7
Addressing reader and writer synchronization to the config file within the process.
2016-08-04 13:15:34 -07:00
Mike Richmond
b291e2006c
Fixing implementation of GetModulePath to conform to the requirements of #1184 .
2016-08-04 13:15:34 -07:00
Mike Richmond
8ffb717e14
Reducing exception catching within ConfigPropertyAccessor classes to provide greater control to callers regarding the most appropriate way to handle them.
2016-08-04 13:15:34 -07:00
Mike Richmond
419db0e832
Removing dependency on JSON .Net for FullClr
2016-08-04 13:15:34 -07:00
Mike Richmond
33c1f2db23
Fixing execution policy so test automation works
2016-08-04 13:15:34 -07:00
Mike Richmond
f8b9b88986
Bug fixes and cleanup in preparation for push.
2016-08-04 13:15:34 -07:00
Mike Richmond
e6e785ec92
Added module path support. Not plumbed trhough yet.
2016-08-04 13:15:34 -07:00
Mike Richmond
2c365356b6
Adding UpdatableHelp checks.
2016-08-04 13:15:34 -07:00
Mike Richmond
73689d697a
ExecutionPolicy is now working from JSON files
2016-08-04 13:15:34 -07:00
Mike Richmond
4b8eff2817
Backing up in-progress changes to work on other stuff
2016-08-04 13:15:34 -07:00
Jason Shirk
f15e66b283
Merge pull request #1633 from PowerShell/revert_psedition_namechange
...
Revert the changes made in #1457 . Desktop and Core are the PowerShell Edition names. Remove Linux as edition name.
2016-08-04 12:21:12 -07:00
Dongbo Wang
43bda97c98
Make the assembly version of AssemblyLoadContext.dll to be 3.0.0.0, so that the ALC.dll from OPS can work with existing native hosts in NanoServer
2016-08-04 10:43:57 -07:00
Manikyam Bavandla
5eef2cacc4
Removed Linux PSEdition name
2016-08-03 15:53:31 -07:00
Manikyam Bavandla
eacfd9418c
Revert "Merge pull request #1458 from PowerShell/psedition_rename"
...
This reverts commit 042d1e99bb , reversing
changes made to 105bf9c9ff .
2016-08-03 15:53:31 -07:00
Jason Shirk
31b3d13e10
Merge pull request #1623 from PowerShell/jimtru/PSDriveFreeSpaceFix
...
Get-PSDrive should report proper free space on all platforms
2016-08-03 14:11:28 -07:00
Jason Shirk (POWERSHELL)
2b70837d98
Set remoting PSVersionTable private data in a downlevel compatible manner
2016-08-03 13:21:42 -07:00
Jason Shirk (POWERSHELL)
2b74b89f76
Add serialization support for SemanticVersion
2016-08-03 13:20:07 -07:00
PowerShell Team
c1ee6c9d6d
Refactoring - replace always null expressions with null
2016-08-03 12:14:28 -07:00
PowerShell Team
c3ce30e34a
Refactoring - use is operator instead of GetType() where possible
2016-08-03 12:14:28 -07:00
PowerShell Team
22d2273ce4
Refactoring - use ?? in more places
2016-08-03 12:14:28 -07:00
PowerShell Team
85d6e9f022
Refactoring - adjust modifiers declaration order
2016-08-03 12:14:28 -07:00