u/PaidByMicrosoft
Blogs, Articles, and Posts
How to make my powershell script reference the current user account who is running it?
(reddit.com)
Part of my script involves making yourself a site admin for OneDrive data (set-spouser), then adding
By: u/PaidByMicrosoft submitted:Sep 30 2022
Part of my script involves making yourself a site admin for OneDrive data (set-spouser), then adding
the manager, then removing yourself. Since I've always been the only one using this script, I've hardcoded my username into the script. However, other people will be using this script.
By: u/PaidByMicrosoft submitted:Sep 30 2022