|
We'll be needing to change the ownership and permissions on a few hundred thousand folders & files.
Can it be done in PS (or other) in such a way that any errors encountered are ignored (and logged?) so the process doesn't come to a screeching halt? I fully expect for it to find folders that the creator locked down so tightly that they will require special attention on an individual basis.
I've websearched, but either I'm asking in the wrong way, or no one has ever needed to do this. (Doubtful)
For obvious reasons, I refuse to use the GUI to do it.
|
|
|
|
|
It should be possible using PS but I have not done so far.
You probably want to call Set-Acl[^] for each single file and directory within a try a catch block (about_Try_Catch_Finally | Microsoft Docs[^]). So errors will not let your script terminate and can be logged.
|
|
|
|
|
|
Thank you for the update. It is always good to find a ready-to-use solution which might be also helpful for others.
|
|
|
|
|
Good day all;
I have a Mac Mini Late 2012 with 4GB Ram and i5. The machine is upgraded to 16GB, and might change drive to SSD. I am targeting this machine to be a host machine running Virtual Box on which I will run a Win 10 machine and an Ubuntu Server 16.04. Both these VM’s will be hosting web applications and connecting to the Internet. On Win 10 I will be running IIS and hosting ASP.NET sites. On Ubuntu I have some two PHP/MySQL applications and two other web applications running on own ports (8500 & 8501).
The thinking is that I will route relevant ports to the relevant VM/Port using Virtual Box. My questions:
1. Is this doable with Mac?
2. Do I need to install MacOS Server since the machine will be connected directly to the web?
3. Will I be able to remote into the VM’s directly (eg: ssh into the Ubuntu box)?
4. Will I be able to remote into the Mac to, for example, restart the physical machine or restart Virtual Box?
Thanks
|
|
|
|
|
how to display the graphics in c language?
|
|
|
|
|
|
Simple; you don't.
Graphics aren't code, and code that is currently being executed is not directly translatable to "c language".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
I've been polite and technical. I don't understand why someone or some bot thinks I'm spamming. I'll avoid being flagged if I know what I'm doing wrong.
|
|
|
|
|
1) You've posted this in the "System Admin" forum, which is about administering systems. You should have posted it in the Bugs & Suggestions forum, or The Lounge.
2) There is an automated system which uses Bayesian probabilities to decide whether it thinks a post is spam or not. Sometimes, it will flag messages as potential spam for no obvious reason. It's nothing personal; you just have to wait for a human being to review the message and allow it to be posted.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
1. OK Bugs and Suggestions
2. TY
|
|
|
|
|
"Sometimes"?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
From what I saw of the aftermath of yesterday's Korean spam attack, "not nearly frequently enough".
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yesterday showed how speedy the algorithm learns and adapts. The robots will not be taking over any time soon.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
I have a simple test application that allows me to send an email message through an Office 365 account. When I run this application from say my home PC it works fine, but when I run it from any machine on my company's network, it doesn't work.
The application allows for two different methods of sending a message, a simple smtp server address and a webservice. When running the application I get a different error for each method:
- smtp server: Quote: No connection could be made because the target machine actively refused it
- webservice: Quote: Autodiscover service couldn't be located
Our system administrator tells me our firewall is not blocking the port, and has not been able to suggest anything else. We only recently switched from third party Exchange 2010 to Office 365 and our on-premise AD is synced to it. MS Outlook works fine. Our office scanner also cannot send scans to email anymore, which it could through Exchange 2010's smtp server.
I am at a loss, and any help with this issue will be much appreciated.
Regards,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Quote: No connection could be made because the target machine actively refused it Try to get the original error message send by the "target" (an SMTP error message or an ICMP message from a router/firewall at the target). It should be helpful.
|
|
|
|
|
Hi,
Thanks for your reply. I set the application to specifically show smtp errors, but the error remains the same:
Quote: System.Net.Mail.SmtpException: Failure sending mail. -> System.Net.WebException: Unable to connect to the remote server -> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 40.101.88.18:587
Quote: (an SMTP error message or an ICMP message from a router/firewall at the target)
The application works fine when I run it on any machine that is not on our network. Wouldn't that suggest that the error is caused by our own network, but somehow is not interpreted as a remote error?
I can ping 40.101.88.18 normally.
Regards,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Quote: No connection could be made because the target machine actively refused it That means that there is no service listening on the specified port or a firewall is blocking the request (at the target side). When you can connect from other systems (did you use the same server name and port number 587 there?), it must be a firewall that is blocking requests by the source IP (IP is black listed or not white listed).
40.101.88.18 belongs to Microsoft. Which SMTP server name have you specified?
|
|
|
|
|
My first guess was also that the problem is in our firewall, but I only asked our admin about a port being blocked. I will have to ask again about a possible black/white listing. Thanks for that suggestion.
As for the SMTP server, per MickeySoft's instructions I use smtp.office365.com and port 587 or 25. I suppose that address has its own autodiscover protocol. nslookup gives me the specific smtp server name outlook-emeaeast3.office365.com and 9 different IP addresses.
What I have been wondering about is, how MS Outlook contacts exchange online. Why is it not having any problem connecting?
My advice is free, and you may get what you paid for.
|
|
|
|
|
The error message indicates that a target / remote side refuses the connection. This is usually a system behind the first router (the first router should send a different message when he blocks outgoing attempts). I don't think that MS is blocking accesses from your company. Because it works on other sites, it is most probably sourced somewhere in your company network or your companies internet provider.
Many companies block outgoing SMTP except for white listed source IPs (e.g. only a local forwarding SMTP server is allowed to talk SMTP to the net).
The network admin in your company is the responsible person to contact. Even if he tells you that there are no filter rules, he might help better because he should know the toplogy of the company network.
|
|
|
|
|
So you have the correct SMTP Server - smtp.office365.com and correct Port - 587, what Encryption are you using?
Microsoft says to use TLS and I bet Outlook is set to use it but have you set it in your code?
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Hi Michael,
Thanks for your response. My apologies, I posted about this problem on another forum as well, and forgot to update this one.
As it turns out, our firewall wasn't blocking any ports, it was just not allowing other SMTP traffic than specified, and nothing was specified.
Anyway my code was good, including TLS, so the question remains, how come Outlook was not blocked by our firewall, when my code was.
Regards,
Johan
My advice is free, and you may get what you paid for.
modified 1-Mar-18 4:12am.
|
|
|
|
|
I hope I am in the right forum regarding the question with Internet Explorer and Proxy configuration. If not kindly let me know.
For the past few days I am witnessing the following with my IE 11 (and hence Chrome).
1) Automatically Detect Settings (checked) and a Proxy Server Entered in LAN Settings. Not able to use Internet in Corporate Network.
2) Resolution for (1) above. Uncheck Automatically Detect Settings.
3) At home, Both Automatically Detect Settings and Proxy Server to be Unchecked again to use my WiFi router.
Over the past weeks I never remember going through these manual process. Both used to be on and I was able to seamlessly use the Internet both at home and at work. What has changed over the past few days? Any Windows Update is causing IE to break?
|
|
|
|
|
Years ago, when I was eking out a subsistence living fixing and maintaining PCs and networks, every new version of Windows was accompanied by a new, grossly overpriced set of manuals called Resource Kits. I dutifully bought them, since it was impossible to learn how to fully support the product without all that insider information. I haven't looked for such a beast in a while, but I could really use one for Windows 10. I have yet to find anything equal to the old Resource Kits, but admins must use something equivalent to survive. What took the place of this invaluable reference?
Will Rogers never met me.
|
|
|
|