This self-answered question, which focuses on Windows[1], addresses the following aspects:
Now that there are two PowerShell editions - the legacy, Windows-only Windows PowerShell and the cross-platform PowerShell Core, both may be installed on a given Windows machine:
How can I tell which PowerShell edition will execute remote commands, such as
it1352
8
2020-07-03
I try deploy Sharepoint WSP projects using PowerShell Remoting.
See https://sharepoint.stackexchange.com/questions/44880/powershell-remoting-sharepoint-2010-error
Solution is configure CredSSP for Sharepoint.
But Microsoft says:
Caution: Credential Security Service Provider (CredSSP)
authentication, in which the user's credentials are pas
it1352
0
2020-10-11
I started looking at robocopy yesterday to try to copy and overwrite a file from one destination to many remote computers. I've tried Robocopy to copy files to a remote machine but it doesn't work. I get the same error as the person in the link. Does anybody have any suggestions or lead me in the right way ? thank you so much !
Solution You could
it1352
0
2019-05-14
I am trying to execute a program inside of a power shell script. The PS script is being called from a C# method using Runspaces. The program tries to make an update to a config file on a remote server. When I run this whole thing I get the following error:
System.UnauthorizedAccessException: Access to the path \\some path is denied.
The PS scr
it1352
0
2020-07-06
With the release of PowerShell Core, how can an application choose which version of Powershell (Powershell 5.x or PowerShell Core) is being called when it using hosting automation library (system.management.automation)? Something about the runspace that should be created? or maybe the connection info?
Solution Here's an overview of the PowerShell
it1352
1
2020-07-03
How to extend volume using powershell (I prefer WMI over powershell remoting) on remote computer ?
OS is win XP sp3.
Solution I ended up with somethin like this:
Invoke-Command -ComputerName $compName -Credential $compCred -ScriptBlock {"rescan","select volume 2","extend" | diskpart}
I'm still looking for better solution, if there is one.
it1352
0
2020-10-22
The only ways I know to connect to a remote runspace include the following parameters
WSManConnectionInfo connectionInfo =
new WSManConnectionInfo(false, "localhost", 80, "/Powershell", "http://schemas.microsoft.com/powershell/Microsoft.Exchange", credential);
or
WSManConnectionInfo connectionInfo =
new WSManConnectionIn
it1352
1
2019-05-10
Do i get it right that when i have a Profile on a RemoteServer which loads some functions, these functions should be available in a Remote PSSession?
My tests weren't successfull, is there a special trick to get this working?
I want to refer to Folder on a network share to have all Functions on a single source available.
Solution When you use
it1352
0
2020-07-04
I would love to get help on how can I see all users who have logged in to my computer (and when recently?) Via cmd command and by registry.
Solution If you are on a supported Windows system, PowerShell is available. Using it to see logged in users on another computer will require that PowerShell Remoting be competently configred.
=== Get-LoggedOnU
it1352
0
2020-10-03
Say i have cmdlet1 and cmdlet2, both are long running tasks. Normally i would have a batch file which calls the two cmdlets in order:
call powershell cmdlet1
call powershell cmdlet2
Is there anyway to set them off asynchronously?
Solution If you're on PowerShell 2, you can use background jobs.
From the help:
about_Jobs
When you
it1352
0
2019-05-08