Never mind, looks like "profile.ps1" is just one of the possible profiles it tries to load at startup. The preferred (most specific) name is "Microsoft.PowerShell_profile.ps1"
Sounds like the file doesn't exist. That file doesn't have to be present. $PROFILE will just show you where PowerShell will attempt to load it from, assuming it exists.
What's the point of backing up an OST file? That's an offline cache copy of a server-side mailbox. If the OST is ever deleted, Outlook will just re-cache your data and make a new OST file.
You can do something similar in PowerShell. In my PS startup script I have something like this:
New-PSDrive -Name 'desk' -PSProvider FileSystem -Root "$env:USERPROFILE\Desktop"
New-PSDrive -Name 'docs' -PSProvider FileSystem -Root "$env:USERPROFILE\Documents"
This lets me do a "cd desk:" to...
We're talking about the HTTP protocol, and it's not the same as traditional file open/close calls on a regular filesystem.
With HTTP you can do a GET on a url and it will initiate the transfer. I was afraid that's when "OpenRead" might be doing. But maybe that doesn't occur until - as you...
Yeah, I understand it's an alias. But the question is if that function triggers a full download or not, just to get the last modified timestamp from the header. The HTTP HEAD command ensures you're only getting the header.
This is pretty cool! But won't this download the entire file?
$http.OpenRead('%1')
Maybe it would be better to use the HEAD method. I don't know if that is possible with WebClient, but you can do it with WebRequest:
$http = [System.Net.WebRequest]::Create('%1'); $http.Method = 'HEAD'...
I'd also compare MT/no MT when doing updates (instead of just the initial data copy). Maybe you don't actually do update "syncs" with robocopy, but I sometimes use it in that way and MT can make a huge difference (sometimes).
Its benefit depends on a lot of factors. It sometimes makes no difference. I would just time two runs, one with no MT switch and the other with /MT:2 to see if there is any difference.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.