I am working to get a better understanding how, and why the PSDrive functions work. On a side note I am very new to powershell.
I created the following:
$id = Get-Content Env:\USERNAME
And this works with one hang up get-psdrive reports the following:
Name Used (GB) Free (GB) Provider Root
Why did my new-psdrive create 2 R drives, both case sensitive?
The Second issue is now when I use remove-psdrive The drive will be removed by PS will give me the following error:
Remove-PSDrive : Cannot find drive. A drive with the name 'r' does not exist.
I am guessing it removes the first r: drive it finds and if one is removed they both are removed, and thats when Powershell error's out
The ISE sometimes displays some screwy behavior if you have it running for a while (and, usually, have executed a lot of script code). I don't know why it happens, but restarting the ISE is always a good idea if you can't explain something.
It's a feature? 😉
You must be logged in to reply to this topic.