PowerShell script cannot find user permissions given directly (can find if permissions given in a group) - Please help.
Hi there,
I need to find ALL SharePOint sites/subsites/locations where "Domain\john" has any level of access.
Following script works if the permissions were given to Domain\john via a group - but this does not work if the permissions were given directly to the user (i.e. user is NOT part of the group).
$weburl = "http://dev"
Get-SPUser -web $weburl -Limit All | ?{$_.UserLogin -eq "Domin\john"} | select UserLogin, @{name="Url";expression={$_.ParentWeb.Url}}, @{name="Explicit given roles";expression={$_.Roles}}, @{name="Roles given via groups";expression={$_.Groups | %{$_.Roles}}},Groups | Out-String -Width 4096
Help will be appreciated.
Thank you.
I don't really understand your request. It sounds like you just want to know the permissions per-user
$weburl = "http://dev"
Get-SPUser -web $weburl -Limit All | ?{$_.UserLogin} | select UserLogin, @{name="Url";expression={$_.ParentWeb.Url}}, @{name="Explicit given roles";expression={$_.Roles}}, @{name="Roles given via groups";expression={$_.Groups | %{$_.Roles}}},Groups | Out-String -Width 4096
This will just return all the users and their permissions.
If this is helpful please mark it so. Also if this solved your problem mark as answer.
Similar Messages
-
I am trying to recover or restore my phone but it either says, error has occurred or it says they cannot find my iphone. It is stuck on the loading apple logo. Please help! I dropped it hard, maybe thats why it is not working.. and i put a new screen on it.
to doublecheck you tried everything error 3194 http://support.apple.com/kb/TS3694#error3194
-
Hello - does anyone now how to place a complain for an over charged invoice over a in-purchase game? Apple is charging 10 times more the purchase we made and I cannot find anyplace in the App store to complain online or via email? Please help if you know
Use the Report a Problem link in the iTunes email receipt you received. Also in-app purchases can be made without the password if you bought the app within the last 15min. You should enable the in-app restriction in Settings.
-
Hi, i have lost my iPhone's iCloud password and i cannot get an access to it now because i have activated " Find my Phone " , and i couldn't remember neither the emil or password, please help me if there is anyway to bypass this process please!!
Start here: https://iforgot.apple.com/password/verify/appleid
-
Hi can anyone help me. I have a apple macbook laptop OSX 10.5.8 . When i push print, it shows my printer but says cannot communicate with printer. (epson stylus nx125). Do I need new drivers? Please help . regards Cindy
Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc."
Some basic printer troubleshooting steps before worrying about a printer driver:
1. Have you tried turning the printer off and back on?
2A. Is the printer attached with a cable?
If yes, have you tried unplugging and re-plugging both ends of the printer cable?
If that does not help, can you test the printer with another cable?
2B. If your printer is not connected to the computer with a cable, have you tried restarting your printer (assuming wireless connection)?
Have you tried restarting your wireless router?
3. Have you tried restarting your MacBook? (Be sure to save your work first.)
4. Does the printer have ink? (Doesn't usually generate a 'communications error' though)
5. Have you updated OS X or the program you're trying to print from recently? -
I installed iTunes 64 on a Windows 7 (Home) HP Pavilion and received this error message. the file iTunes Library.itl cannot be read because it was created by a newer version of iTunes. Please help!
The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes".
Try the following user tip:
Empty/corrupt iTunes library after upgrade/crash -
Whenever I select iTunes It shows that it cannot open iTunes Store . What am I supposed to do for that ? Please help .
Saw this on another post.
Applecare Senior Advisor Txx Bxxx (I have his contact info in an email he just sent) just confirmed with me that the problem people are having with the App Store not loading is an apple issue with there servers, ITS NOT YOUR IPAD so don't go restoring it! It's not happening to everyone however but they are looking into it, its really hit or miss.
In the meantime ...........
The Complete Guide to Using the iTunes Store
http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
This works for some users. Not sure why.
Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
Cheers, Tom -
I just got a new iPod touch 4th generation and I'm trying to connect to my router and my iPod says, 'Cannont find network.' I don't know what to do! No other networks come up on the list so I can't 'tag' along with thier wifi. Please help. I need advice.
What type network is yu router set up for? The 4G iPod can only connect and see 2.4 GHZ networl like B, G and the 2,4 GHz N. There is also a 5 GHz N but the iPod will not even seethat network.
See:
iOS: Troubleshooting Wi-Fi networks and connections
iOS: Recommended settings for Wi-Fi routers and access points -
Cannot install windows 7 on brand new mac mini with 256 g sdd? Please help.
Cannot install windows 7 on brand new mac mini with 256 g sdd? Please help.
Have tried all tricks found on the net and followed every advice from apple support.
Still black screen with blinking curser when mini is rebooting following partitioning via bootcamp.
Very nice and fast mashine, wouldnt like to return it.
thanks allanIs that an Apple SSD?
what model is it?
Is there a firmware update if non Apple?
Lion is not server version.
Windows is ? ISO or retail?
Google macmini Windows 7 SSD Apple Boot Camp -
Updated itunes to 12.1 and can't burn playlist. Error "attempt to burn disc failed, disc cannot be read or written to" have tried every troubleshooting solution to no avail. please help!
Greetings akite2high,
If you are having an issue with being unable to burn a CD using iTunes on your Windows computer, I would suggest that you troubleshoot using the steps in this article -
Can't burn a CD in iTunes for Windows - Apple Support
Thanks for using Apple Support Communities.
Be well,
Brett L -
hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(
Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
http://support.apple.com/kb/TS3694
Solution below.
Error 9
This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software. -
I bought an audiobook on itunes on my PC and my itunes record says it was charged to my card but I can't find in all of my libraries nor in the check available downloads? Please help.
Your other music shows under the Purchased link under Quicklinks on the right-hand side of the iTunes store home page on your Mac's iTunes, and in the Purchased tab in the iTunes store app on your phone - if they do then are you signed in with the same account or is that album hidden (hiding and unhiding) ? Is the laptop the computer that you normally sync the phone to (e.g. could you sync it), and could you copy the album from the laptop to your Mac Mini e.g. via file sharing, a flash drive etc (copying music)
-
I recently purchsed Black Hawk Down but can not find it anywhere in my purchase history and have cant seem to find where i can download it again without being charged? Please Help!
Hi..
Check your debit or credit card account to see if the transaction went through, or if you purchased from the balance of a redeemed gift card, see if the amount of purchase was deducted.
Account Home - Apple Store (U.S.) -
i lost my ipod. when i went on the cp to go find it but there was no connection yet, so i waited but got bored so i pressed delete device for no reason now i can't even connect to it no more. please help me. please.
If you only deleted the device from the page (an did not wipe/erase it) it will reappear if it connects to the internet before the person restored it or tyrned off the Find feature. See:
http://support.apple.com/kb/TS4006 -
PowerShell Script to Clean User Profiles File Location
Hello,
I have been searching around to accomplish what I am trying to do. It is pretty basic so I am hoping someone can point me in the right direction. I want to write a powershell script to clean out two locations in all the user profiles on a Citrix server.
Here are the steps I'd like to accomplish.
1. Find all user profiles on the Citrix server
2. Delete all the files from these two locations; "\Local Settings\Application Data\Mozilla\*.*" and "\Local Settings\Application Data\Microsoft\OneNote\*.*"
This will run on a weekly basis via a scheduled task. A nice to have would be to add any profile over 60 days old.
I have a pretty good start, but I am still learning PowerShell, so any help would be appreciated.
Thanks in advance!
Thanks, JeremyHello mbwc,
how about showing us what you got so far and detail where you have trouble?
That way, we can help you understand your problems and find the solution yourself (= good for learning), instead of having one of us simply provide the solution (= bad for learning).
Cheers,
Fred
There's no place like 127.0.0.1
Maybe you are looking for
-
Network Shares and Missing Files on Windows 2000
Music files are stored on a Windows Server in a shared folder. iTunes 5.0 is installed on a laptop. Using the advanced preferences the iTunes Music folder location is changed to: Desktop --> My Network Places --> Music The folder location changes to:
-
This is the error message: Interval Since Last Panic Report: 40328 sec Panics Since Last Report: 1 Anonymous UUID: 5E889A13-BFD5-45E1-B98C-5F3F1FB23C33 Tue Feb 4 20:52:34 2014 panic(cpu 3 caller 0xa01c9b): NVRM[0/1:0:0]:
-
After itunes is closed i get warning saying data execution protection closed itunes
after I exit itunes I get a warning saying data execution protection cloesed itunes, this is after it has already shut down. I tried to exclude itunes from DEP but did not work. Thanks
-
Inspection lot shouldn't create for Transfer posting(311) sloc specific
Dear Expert, i need expert advice on this issue. here specific to one plant when user is doing transfer posting through movement type 311, user doesn't want inspection lot (specific to storage locations ). Here specific to that Material quality is ac
-
Mail won't see OE/OS9 identities
Getting ready to move my father-in-law from OS9 to Panther. In OS9, Outlook Express had two identities, "Main Identity" and his. Since Main didn't contain any information and OE kept switching to it when I opened it, I deleted it. In 9, OE now opens