-
I'm a community manager of PowerShell.com. Do you want me to delete your powershell.com account?
-
OK, I will delete your account in 30 minutes.
-
I don't understand what do you want to accomplish. Do you want to create a folder and a subfolder in one go? What is the connection between FolderName01 and FolderName02?
-
Can you give us a list of common tasks that you perform on a daily basis?
-
Do you have admin rights on a remote computer? If you do you can use the admin share: \\$serverIp\c$\somefolder
-
Sure, it's possible. Here I connect to my Azure VM from a laptop using both syntaxes (-ComputerName / -ConnectionUri): PS> Enter-PSSession -ComputerName 168.61.36.99 -Credential $cred [168.61.36.99]: PS C:\Users\Administrator\Documents> hostname DC [168.61.36.99]: PS C:\Users\Administrator\Documents> exit-pssession PS> Enter-PSSession -ConnectionUri http://168.61.36.99:5985 -Credential $cred [168.61.36.99]: PS C:\Users\Administrator\Documents> hostname DC Remoting is enabled on
-
$net = $(New-Object -comobject WScript.Network) should be $net = New-Object -comobject WScript.Network Also, I don't understand why you check for existance twice. If it exists remove it. After that you want to map it to a new letter, no matter if it existed before or not.
-
If you post some code and ask a specific question about a problem, you might get a better response to your question.
-
Cool. Thanks for reporting it.
-
I've gotten an answer from MSFT. You won't like it, and I'm with you. :( Register-PSSessionConfiguration started supporting config files (like .\v3.pssc in your example) from PowerShell version 3.0. This support is not there for 2.0 endpoints (We should probably throw an error message to inform user about that). To get Constrained Endpoint behavior for your 2.0 endpoint you will have to write a plugin assembly.