Open a Windows PowerShell window (must be x86 version, see below as iShare is 32 Bit).
In the PowerShell window, navigate to the Astun tools\powershell folder, which will be something like the following but could vary depending on your installation.
Code Block |
---|
cd D:\astun\tools\powershell |
Make sure that you can execute the script by running the following:
Code Block |
---|
Set-ExecutionPolicy Bypass -Scope Process |
Info |
---|
You will need to respond to the Execution Policy Change question by pressing Enter to accept the default of [Y] |
Now run the Permissions script
Code Block |
---|
.\SetPermissions.ps1 |
Results of running the script should be visible on the screen and in the log file in the same directory “permissions.log”.
Sample Session
Generic scripts are also available for setting and checking permissions. Help can be obtained on these scripts by executing the following commands within the powershell folder:
- PS: D:\Astun\tools\powershell> Import-Module .\Astun-Permissions.psm1
- PS: D:\Astun\tools\powershell> Get-Help Set-Astun-Permissions
- PS: D:\Astun\tools\powershell> Get-Help Check-Astun-Permissions