I have written several Hey, Scripting Guy! Blog posts that talk about migrating VBScript code to Windows PowerShell code. I wrote the script on J(as a matter of fact, I was in Montreal when I wrote the script).
![finding the permissions on a file mac command line finding the permissions on a file mac command line](https://www.switchingtomac.com/wp-content/uploads/2021/06/03-how-to-fix-or-repair-disk-permissions-in-macos-sharing-permissions-513x1024.jpg)
Because I used Windows Search to index the full content of both VBS files and PS1 files, it was a simple matter to find the script I sought. The script I found is a VBScript file. I wrote a script to do this in the past…yes, long ago, I used to write VBScript code. Surely, there has got to be a better way. In fact, because the account I am logged on with does not have permissions to the remote server, it took me nearly 15 minutes to finally connect to the remote server (including several minutes of watching snap-ins initialize, the event log initialize, and a whole bunch of other hour glasses). Of course, I can target the Computer Management snap-in to a remote computer, but that is really slow. I was looking around to figure out a way to find out who has permissions to a particular shared folder on a remote server. After all, when I leave the neighborhood of Windows PowerShell modules, snap-ins, cmdlets, and associated technology, an answer still may arise to a problem that involves Windows Management Instrumentation (WMI) or some other interface. Anyway, as I said earlier, it’s the weekend!Īs someone who has written several thousand VBScript scripts in my lifetime, I do not consider it bad form to recycle some of that content when it comes time to create a new Windows PowerShell script.
![finding the permissions on a file mac command line finding the permissions on a file mac command line](https://cdn.setapp.com/blog/images/how-to-open-terminal-on-mac-1920-646.png)
Ironically, considering that we had two days off this week, the time has seemed compressed, and therefore, longer. It has seemed like a rather long week, in part due to several meetings, plus I took time out to record a show for TechNet Radio. It is finally the weekend here in Charlotte, North Carolina in the United States. Microsoft Scripting Guy, Ed Wilson, is here.
Finding the permissions on a file mac command line how to#
Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to determine who has permissions to a shared folder.