Quantcast
Viewing all articles
Browse latest Browse all 8719

Power Shell

Hi I want to be able to make life easier and create some power shell scripts so that who ever runs then, it prompts them just to in put, the variables 

eg:  set-MailboxPermission -Identity user1 -User users2 -AccessRight FullAccess -InheritanceType All -Automapping $false

basically i want it to prompt for  to enter user1 and user 2, rather than people amanding eth scripts and then copy and pasting it.
Any Ideas?
I have tried this but it doesn't work

$user = Read-Host "Mailbox That you are giving access to"
$identity = Read-Host "User who wants access"
set-MailboxPermission -Identity $identity -User $user -AccessRight FullAccess -InheritanceType All -Automapping $false


Viewing all articles
Browse latest Browse all 8719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>